OpenSim Moco
0.4.0
|
A contact group is a single ExternalForce and a list of contact force components in the model whose forces are summed and compared to the ExternalForce.
Contact force elements that correspond to a single ExternalForce are typically attached to the same single body/frame. However, it is possible that these contact force elements are spread over multiple bodies. For example, the ground reaction force for the left foot may be modeled by contact force elements on separate calcaneus and toe body segments. The "applied_to_body" property of the associated ExternalForce will match only one of these multiple bodies (e.g., only the calcaneus), causing Moco to give an error, saying one of the contact elements does not seem to be associated with the ExternalForce. To handle this situation, specify the other body (e.g., the toes) under alternative_frame_paths. Without specifying these alternative frames, Moco does not know which force to use (the force on the sphere or the force on the half-space) when summing the contact forces across contact force elements.
#include <Moco/Moco/MocoGoal/MocoContactTrackingGoal.h>