How do I add a PrescribedController
to a model?
#856
-
Students faced an issue today in class when trying to add a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The error is because OpenSim's The fix is either:
Relevant source code in OpenSim: https://github.com/opensim-org/opensim-core/blob/4.5/OpenSim/Simulation/Control/Controller.cpp#L177 |
Beta Was this translation helpful? Give feedback.
The error is because OpenSim's
Controller
API requires entries in theactuator_list
to be the names, not paths, of actuators in the model.The fix is either:
actuator_list
blank, which will cause the implementation to figure out what the actuator is from your STO file (i.e. it will automatically populatePointToPointActuator
in theactuator_list
field)actuator_list
field (i.e. just the name of the actuator)Relevant source code in OpenSim: https://github.com/opensim-org/opensim-core/blob/4.5/OpenSim/Simulation/Control/Controller.cpp#L177