Gazebo | Ignition | Community
Ask Your Question
0

How to close a four bar link?

asked 2020-11-24 14:52:21 -0500

nexus8 gravatar image

Hello friends, I am working in a robot simulation with ROS+Gazebo and I have a question concerning URDF and SDF.

In order to simulate the operation of all joints of the robot, I need a package called ROS control, which is not compatible with SDF. However, my robot model requires a four-bar mechanism, which is not supported by URDF. I am kind of blocked.

I want to try two solutions in order to keep using ROS control and closing the four-bar mechanism:
-Start from URDF, convert it to SDF for later adding manually the fourth joint for the four-bar mechanism. I would be risking to lose all ros control tags defined in the URDF in the process.

Or a more general one,

-Load the model of the robot in gazebo using URDF. I understand during the spawning process the URDF is automatically converted to SDF. Then I would like to add programatically the fourth joint of the four-bar mechanism using a gazebo plug in.

So, my question is, how can I modify a model programatically? Name, parent, child, pose etc.

Thank you in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-25 12:55:42 -0500

you could manually write the SDF and include the ros_control tags. Manually keeping a urdf and sdf in sync is not that bad, because once you write it you rarely go back and edit it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-24 14:52:21 -0500

Seen: 167 times

Last updated: Nov 25 '20