Robotics StackExchange | Archived questions

How to set a model to be static by command?

I am using gazebo2 with fetch robot under ubuntu 14.04 with ros-indigo. After I launch the gazebo world, the robot is not static. I would like to set the robot to be static later by using the command line or publishing msg to a certain topic.

Does anyone know how to do this? Thank you very much!

I already checked the

Services: State and property setters

~/setlinkproperties : gazebo_msgs/SetLinkProperties

~/setphysicsproperties : gazebo_msgs/SetPhysicsProperties

~/setmodelstate : gazebo_msgs/SetModelState

~/setmodelconfiguration : gazebo_msgs/SetModelConfiguration

~/setjointproperties : gazebo_msgs/SetJointProperties`

~/setlinkstate : gazebo_msgs/SetLinkState

~/setlinkstate : gazebo_msgs/LinkState

~/setmodelstate : gazebo_msgs/ModelState

I didn't find the solution.

Asked by ycx424 on 2018-05-01 10:20:40 UTC

Comments

Answers

In my experience, it is not possible to set an object to be static after it's been initialized as dynamic, even when using the Gazebo API.

If you elaborate on why you want to set it to static, there may be another way to achieve what you want.

Asked by chapulina on 2018-05-01 11:12:47 UTC

Comments

Thank you very much for your response. The robot keeps a slight swaying after I change its position by passing a ModelState message to 'set_model_state' service. That's why I want to set it to be static after I move it.

Asked by ycx424 on 2018-05-02 22:15:13 UTC

You could create a fixed joint from the world to the robot...

Asked by chapulina on 2018-05-02 22:21:49 UTC