Ask Your Question
0

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
0

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

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 107 times

Last updated: Mar 05 '13