Robotics StackExchange | Archived questions

How to use a Python script to set the state of a robot urdf in Gazebo so that it stays that way?

I can change the position randomly with service('/gazebo/setmodelstate) and keep it there by subscribing to (gazebo/modelstates), but when I give any other commands to robot model, it stays in the same place.If I stop subscribing (gazebo/modelstates), the robot will go back to its starting point (0,0).

Asked by tom_3997 on 2023-06-29 06:25:34 UTC

Comments

Answers