To whom it may concern,
I am encountering an issue while attempting to add a coordinate actuator to an OpenSim3 model and converting it to an HFD model using the convert tool. Unfortunately, despite my efforts, the coordinate actuator does not appear in the resulting HFD model.
I would greatly appreciate any assistance or guidance you can provide regarding the process of adding a coordinate actuator to an HFD model.
Best
adding coordinate actuator to hfd model
- Thomas Geijtenbeek
- Posts: 432
- Joined: Wed Mar 12, 2014 8:08 am
Re: adding coordinate actuator to hfd model
In order to get a CoordinateActuator in Hyfydy, you need to add a joint_motor to the model. This will automatically actuate all Dofs of the motorized joint. For example, to actuate all Dofs in the right hip joint, add the following section to your .hfd model:
After that, the right hip Dofs become actuated in SCONE. The input of the actuators is the torque in Nm.
Unfortunately, the Model Conversion Tool does add joint_motors automatically, so you'll need to add this manually. I will try to fix this in a future version of SCONE.
Please let me know if this helps!
Code: Select all
joint_motor {
name = hip_motor_r
joint = hip_r
max_torque = 1000 # set to whatever the maximum torque should be
stiffness = 0 # set to zero if there is no target orientation
damping = 0 # set to non-zero to add joint damping
}
Unfortunately, the Model Conversion Tool does add joint_motors automatically, so you'll need to add this manually. I will try to fix this in a future version of SCONE.
Please let me know if this helps!