ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Unsubscribing uisng shutdown()

asked 2013-03-05 05:08:48 -0500

updated 2013-03-05 05:30:03 -0500

I have a vector of subscribers and each subscriber has same callback function. When i try to clear the vector , code hangs indefinitely. So is there a way to unsubscribe or a way to deallocate the alloted memory.. beside the method mentioned above. I have also tried uisng ros::Subscriber::shutdown to unsubscribe an element of vector and still my code hangs...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-05 05:39:26 -0500

dornhege gravatar image

My intuition says that this should work in principle. Can you come up with a minimal example to test? I am using unsubscribe in my code and it doesn't hang there. If it does, it's consider it a bug.

edit flag offensive delete link more

Question Tools


Asked: 2013-03-05 05:08:48 -0500

Seen: 210 times

Last updated: Mar 05 '13