robotology / gz-sim-yarp-plugins

YARP plugins for Modern Gazebo (gz-sim).
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Handle joint position limits in controlboard #125

Open xela-95 opened 8 months ago

xela-95 commented 8 months ago

Joint limits have to managed into the control board plugin. They are specified both on the model description SDF/URDF (<limit> element) and in the LIMITS group of the controlboard yarp configuration file.

Adequate conversion should take place:

Usually the limits specified in the yarp configuration file are narrower wrt the ones specified from the model description, since the former act as software limits, while the latter as hardware ones.

Moreover, at the current state the Joint API from gz-sim does not provide a method to get joint limits, just to set them.