Open KaiL4eK opened 4 years ago
I found the way to separately start gz_server and spawn/delete model of a robot. I have 2 very usual files to start gazebo server and to spawn a robot model and start slam/localization. You may not look at them if it's not required. More interest in removing of a robot model - look at this very short file. To delete a robot model I use ~/delete_model gazebo service. So, at first view it's work good. In this moment there are 2 issues:
I've tested launching files with a delay using timed_roslaunch package. Model deletion and spawning works very well now with a delay of only 0.1 sec. Here is the example of launch file with delays. So, the last problem is Namespaces for each robot.