I am interested to get new sensor values (published to a topic) while in a service callback. For a single topic I was able to do this using ros::topic::waitForMessage. Unfortunately I am actually looking for a pair of images + camera information (4 topics in total) that I synchronize using message_filters::TimeSyncronizer. Is there a way to wait (block) for the next synchronized set while in a service callback?
answered 2011-09-16 14:22:27 -0500Wim
There is no 'shortcut' such as ros::topic::waitForMessage for the message time synchronizer. You'll have to construct your own mechanism where you connect to the topics from the service callback, and monitor the callback of the time synchronizer.
Asked: 2011-09-05 15:02:36 -0500
Seen: 224 times
Last updated: Sep 16 '11