Torque actuator xml code

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

Torque actuator xml code

Post by Sina Porsa » Wed May 18, 2011 4:51 pm

Hi everyone,
I have some questions on torque actuator's xml script.
1- what does "-1.#INF" mean in min_control? can I replace it simply by -1?
2- What does "optimal_force" mean? Is it the maximum torque that the actuator can apply? Is it a force or a torque? and why is it OPTIMAL?
Regards,
Sina

<TorqueActuator>
<isDisabled>False</isDisabled>
<min_control>-1.#INF</min_control><max_control>1.#INF</max_control>
<bodyA></bodyA>
<bodyB></bodyB> <torque_is_global>True</torque_is_global>
<axis>(-1 -0 -0)</axis> <optimal_force>300</optimal_force>
</TorqueActuator>

User avatar
Ayman Habib
Posts: 2244
Joined: Fri Apr 01, 2005 12:24 pm

RE: Torque actuator xml code

Post by Ayman Habib » Thu May 19, 2011 9:54 am

Hi Sina,

1. (-1.#INF) is the way the code prints -Infinity, you should be able to use any number that you want, including +/- infinity.
2. The reason it is called optimal is historical, you can treat it as just "torque". The torque produced is the product of the control * optimal_force.

Sorry about the naming confusion and please let me know if that answers your question.

Good luck,
-Ayman

POST REPLY