[ros-users] [Discourse.ros.org] [Next Generation ROS] Syncronized callbacks in ROS2

Florian Fußeder ros.discourse at gmail.com
Thu Jun 22 15:30:13 UTC 2017



Hello,
while playing with the beta wanted to create a callback on two topics.
In ROS it is possible through the message_filters package e.g.

  message_filters::Subscriber<Image> image1_sub(nh, "image1", 1);
  message_filters::Subscriber<Image> image2_sub(nh, "image2", 1);
  TimeSynchronizer<Image, Image> sync(image1_sub, image2_sub, 10);
  sync.registerCallback(boost::bind(&callback, _1, _2));

i don't know if this is possible in ROS2 yet? I couldn't find anything in the demos.





---
[Visit Topic](https://discourse.ros.org/t/syncronized-callbacks-in-ros2/2015/1) or reply to this email to respond.




More information about the ros-users mailing list