Hi
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?
Thanks
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
Why ROS Topic should get XMLRPC address:port but ROS Service doesn't?
How to make a realtime controller get information
Subscribe from service example
What's the meaning of global in getGlobalCallbackQueue()?
Callback queues and locking in Gazebo plugins/controllers
If publishes faster than calling SpinOnce, would CallBack Queue be filled up eventually?
Which ways of communicating with a controller are real-time safe?
response of a server in python
Synchronizing image display and services between two ROS nodes
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.