Can you refresh gazebo when you load through ROS
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.
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 therobot_description
just update therobot_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.