Deleting Robot in gazebo causes segfault in gzserver
Hello,
I'm trying to implement a killrobot() function that removes a robot from gazebo. I spawn the robot in, attach gazeboroscontrol and movebase + lidar. The spawning works just fine. When I try to delete the model through the gazebo api, however (rosservice call /gazebo/deletemodel ...), I get a segfault. I tried calling the deletemodel on static models in the world, and it worked just fine. I tried to debug further by commenting out the move_base, lidar plugins - deleting the model worked fine then! When I uncomment either, however, I revert back to error land. I get either of the two errors below ..
[gazebo-2] process has died [pid 22004, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -u -e ode /home/lxu9/gazebo_ws/src/agility_cassie/cassie_delivery/worlds/neighborhood_basic.world __name:=gazebo __log:=/home/lxu9/.ros/log/4499b8d4-d5a5-11ea-b79f-e4a4715f5686/gazebo-2.log].
log file: /home/lxu9/.ros/log/4499b8d4-d5a5-11ea-b79f-e4a4715f5686/gazebo-2*.log
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)
Asked by felcjo on 2020-08-03 11:51:38 UTC
Comments
Hey, I think I'm having the same Issue :/ Did you fix it?
Asked by isiko404 on 2022-05-11 07:46:28 UTC