Gazebo | Ignition | Community
Ask Your Question

"Lock" model in a position?

asked 2018-10-01 15:29:58 -0500

Mansan gravatar image

updated 2018-10-01 15:30:37 -0500


Is there a way to "lock" an element in a position, so you can't move it even if the translation/rotatio option is selected? The heigthmap and ground_plane elements have this behaviour (you can move them once you add them to the simulation), but, is there any property that you can define in the sdf file to make this possible?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-02 02:49:45 -0500

Raskkii gravatar image

As far as I know, there is no way to actually prevent the element from moving if you translate/rotate it yourself. There's the static tag which makes the model static when affected by other objects/forces but does not prevent you from moving the model yourself.

I suggest keeping the cursor in select mode at all times (unless of course you need to move something) to avoid accidentally moving your static models.

edit flag offensive delete link more


I supposed that it wans't possible. This static model act as a heigthmap, so I guess that I need to be careful when I place things on top of it.

Mansan gravatar imageMansan ( 2018-10-03 07:40:53 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-10-01 15:29:58 -0500

Seen: 675 times

Last updated: Oct 02 '18