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

Callback Problem with Multiple Subscribers

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

Ruchi Dhiman gravatar image

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

mjcarroll gravatar image


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

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

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


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

Question Tools


Asked: 2011-12-18 20:06:58 -0600

Seen: 1,400 times

Last updated: Dec 20 '11