Home | Tutorials | Wiki | Issues
Ask Your Question
0

SDF: How to fix a model to the world?

asked 2018-07-23 15:55:15 -0500

pbelanger gravatar image

Hello,

So I've set up an arm model in an SDF file and have input correct values for mass, CoM, and inertia tensor, but am having trouble figuring out how to fix the arm to the world. I have tried giving the base of the arm an arbitrarily high mass, but this does not seem to work well. I figure that there must be a method to hold the base of the arm static relative to the default ground_plane in the gazebo world but can't seem to figure it out. All solutions seem to be using URDF, which I am not.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-24 09:18:54 -0500

pbelanger gravatar image

I figured out what I was doing wrong here. When I tried to specify a link to the world, I didn't specify the model name.

A link like the following will prevent the link named base of a model named arm from moving relative to the world:

<link name="world_fix">
    <parent>world</parent>
    <child>arm::base</child>
</link>

Placing this in the root of your <model> will then prevent the base from moving.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-07-23 15:51:35 -0500

Seen: 37 times

Last updated: Jul 24