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
ControllerAPI requires entries in theactuator_listto be the names, not paths, of actuators in the model.The fix is either:
actuator_listblank, which will cause the implementation to figure out what the actuator is from your STO file (i.e. it will automatically populatePointToPointActuatorin theactuator_listfield)actuator_listfield (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