ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I am not sure why, but if you put
additional_object.reset();
object.reset();
after your ros::spin() the error goes away. Probably you have to unbind before nodehandle and everything wents out of scope. Making your shared_ptrs local objects also works. I think I'd put them in a class of which the instance goes out of scope before the end of main....
2 | No.2 Revision |
I am not sure why, but if you put
additional_object.reset();
object.reset();
after your ros::spin() the error goes away. Probably you have to unbind before nodehandle and everything wents goes out of scope. Making your shared_ptrs local objects also works. I think I'd put them in a class of which the instance goes out of scope before the end of main....