0
$\begingroup$

Rosanswers logo

Hi all,

I have a SolidWorks model of my robot which I have been able to get into RVIZ/MoveIt. This is tested and generally works well.

Now I need a more accurate model, one feature of which is to properly constrain my joint angles. In the initial model the angles were set up to move between [-pi,pi] which was arbitrary and does not represent the range of motion of the actuators. These constraints were crudely configured by setting them in the URDF exporter plugin. But now I want to limit the joints to what I have configured in SolidWorks using the mates.

In SolidWorks I have setup mates that constrains the joints to the region I want using the "Limit Angle" advanced mate. Whilst this constraint works nicely in SolidWorks, allowing me to move the joints within the correct region, i have not been able to get this same functionality into ROS/URDF.

Ideally I would like to import these mates automatically so that if/when i change the model, this is updated in the URDF upon exporting. Is there a way to do this or am i stuck with manually setting these limits each time in the exporter tool?

Regards and thanks in advance,

Chris.


Originally posted by anonymous8676 on ROS Answers with karma: 327 on 2014-06-13

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Is there a way to do this or am i stuck with manually setting these limits each time in the exporter tool?

I'm not sure whether the plug-in can base the urdf limits on the limits of the mates, but as long as you save the export configuration after you've set it up, you should not need to re-set any of those limits again. Re-opening the exporter should pick up on the saved limits.

One thing I've been doing in the past is to write a simple Python script that updates the joint limits in the urdf based on a text file. This makes it very easy to update them, without needing to redo the export in SolidWorks every time you change something (it becomes even easier if you generate the text file from data gathered from your control system fi).


Originally posted by gvdhoorn with karma: 86574 on 2014-06-19

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by fergs on 2014-06-19:
+1 to the idea of python script to update -- I do that too, and to add missing things like velocity and effort limits.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.