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.
If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
ros-users@lists.ros.org
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <
http://lists.ros.org/mailman//options/ros-users>