ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to make a robot immovable in Gazebo

asked 2012-06-29 05:17:08 -0600

Nan Jiang gravatar image

Hi all,

I want to fix a robot (to be specific, pr2) to a specific location in gazebo. It is going to use its arm to touch and press some other objects in the environment, but its body should not be moved by the counter force. Resetting its location frequently may be a possible solution, but I am afraid that its arm and the objects in the environment may overlap in space and bounce away.

So I want to know if there is a way to disable movement of the robot in gazebo. Thanks.

Best, Nan

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-12 14:56:04 -0600

dearl gravatar image

updated 2012-07-12 15:00:16 -0600

If you don't want the robot to move at all, I believe that in your urdf adding the entry <link name="world"/> and create a fixed joint between world and your robot will do what you want.

edit flag offensive delete link more


I am trying to fix the robot

<joint type="fixed" name="fixed_joint"> <parent>world</parent> <child>base_link</child> </joint>

but it doesn't work in sdf

sapan gravatar image sapan  ( 2018-07-21 16:48:56 -0600 )edit

Does that work in sdf file?

Alice_ly gravatar image Alice_ly  ( 2021-08-12 21:09:08 -0600 )edit

Question Tools


Asked: 2012-06-29 05:17:08 -0600

Seen: 1,617 times

Last updated: Jul 12 '12