Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use world as a joint link programmically?

I've been using this SDF to fix linkA to the world, however I am unsure how to do this programmically.

<joint name="base_joint" type="fixed">
     <parent>world</parent>
     <child>linkA</child>
</joint>

The Joint class functions Load and Attach both take LinkPtr as parameters. How can you replicate the SDF in code? Thanks in advance!