Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Please refer to Dynamic Walking Challenge: Go the Distance! for additional information about this examples.

 

Program NameDescriptionRelated Functions/Classes
AddCustomFoot.cppAdds a custom mesh object to the base model.WeldJoint, ContactMesh, ElasticFoundationForce
AddExpressionPointToPointForceMagnets.cppAdds a magnet force between the thigh and shank to add a knee extension torque.ExpressionBasedPointToPointForce
AddMillardMuscle.cppAdds a Hill-type, equilibrium muscle model (Millard 2013).Millard2012EquilibriumMuscle  
CreateWalkingModelAndEnvironment.cppCreates the basic walking model with obstacles.Body, WeldJoint, SliderJoint, PinJoint, ContactSphere, ContactHalfSpace, HuntCrossleyForce, CoordinateLimitForce
RunForwardTool.cppThis function runs a forward simulation using OpenSim's Forward Tool. In this script, we use the base model and call the forward tool with settings similar to the instructions in Section II Part A.  Here, we load an additional Analysis called a ForceReporter which outputs to a file the forces and torques applied the force on each body.ForceReporter, ForwardTool