Ask Your Question
1

Callback Problem with Multiple Subscribers

asked 2011-12-18 20:06:58 -0500

Ruchi Dhiman gravatar image

updated 2011-12-20 06:45:37 -0500

mjcarroll gravatar image

Hi,

I am working on a project which scans rooms and builds the complete map of the room. The ros code that I wrote requires multiple subscribers (eg for Pose and Obstacles). I want the subscription to be sequential. However with the use of spin() or spinOnce() my program gets stuck in the first callback function. How do I solve this problem ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-12-19 00:25:46 -0500

dornhege gravatar image

What do you mean sequential?

ROS data comes from the system, whenever it is published.

If you want to match arriving data message filters might be, what you need.

edit flag offensive delete link more

Comments

tfoote gravatar image tfoote  ( 2012-04-26 23:20:57 -0500 )edit

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: 2011-12-18 20:06:58 -0500

Seen: 1,316 times

Last updated: Dec 20 '11