-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Context
I was investigating the use of service gazebo/delete_model to clean up gazebo simulation without having to restart the server every time.
In current setup, re-spawning cf1, cf2, etc. fails as there are already existing models with that name. The objective was to ask gazebo to remove them before adding them back.
My scripts are however causing a runtime_error what()=timeout in gazebo server, that terminates.
Script
#!/bin/bash
rosservice call --wait /gazebo/delete_model "model_name: 'cf1'" && # ok
rosservice call --wait /gazebo/delete_model "model_name: 'cf2'" && # ok
rosservice call --wait /gazebo/delete_model "model_name: 'handler1'" && # crashes
echo "killed all gazebo models. Killing ./cf2 instances"
killall cf2output:
arpad@APD-X3:~/dev/sp/migws/src/sp/sp_mate$ rosrun sp_mate clean_cf2.sh
success: True
status_message: "DeleteModel: successfully deleted model"
success: True
status_message: "DeleteModel: successfully deleted model"
ERROR: transport error completing service call: unable to receive data from sender, check sender's logs for details
Questions:
- is it a bug ?
- is there another way to close the handler ? This is probably related to the fact that I'm not sure I get what the handler's job is.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels