ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Unsubscribing uisng shutdown()

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

updated 2013-03-05 05:30:03 -0600

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 178 times

Last updated: Mar 05 '13