Can you refresh gazebo when you load through ROS

asked 2020-04-17 06:33:27 -0600

here2infinity gravatar image

updated 2022-01-22 16:10:29 -0600

Evgeny gravatar image

I have a urdf model that I have loaded with:

roslaunch my_robot world.launch

I noticed that I gave the wrong color to a part of the robot. I have made changes. Is there a command to run to refresh gazebo from roslaunch? I have been quitting everything every time I make a change and I feel it is too much of RAM usage and slower.

edit retag flag offensive close merge delete


Mmm I think there is no way to do what you want, even if you manage somehow to reset Gazebo enviroment you will also need to restart ROS environment since all nodes will end up "hanged". If it is something related with the robot visuals you can just launch the robot_description and Rviz. If you want to change something from the robot_description just update the robot_description param in the parameter server and restart Rviz GUI.

You could think that maybe you can launch the gazebo spawner whenever you need to reset the model in Gazebo, deleting the old models you spawned in previus iterations but if you do that Gazebo willk throw a segmentation fault.

Weasfas gravatar image Weasfas  ( 2020-04-17 11:28:26 -0600 )edit