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

synchronization of two image topics (infrared stream)

asked 2016-11-16 11:52:01 -0500

timku gravatar image

Hi all,

I would like to sync the left and right infrared image topic from my Intel RealSense R200 camera. Currently, I have managed to subscribe to the individual infrared topic (left and right) with its camera info through using image_transport::CameraSubscriber. My next goal would be to sync and publish both the left and right infrared stream as well as their camera info. How do I go about achieving the goal? Is it through using image_transport::SubscriberFilter ?

edit retag flag offensive close merge delete

Comments

Question answered? Please mark it as such by ticking the checkmark to the left of the answer. Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-18 02:29:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-11-17 02:18:45 -0500

gvdhoorn gravatar image

Is it through using image_transport::SubscriberFilter ?

Yes. From the documentation you linked:

This class wraps Subscriber as a "filter" compatible with the message_filters package. It acts as a highest-level filter, simply passing messages from an image transport subscription through to the filters which have connected to it.

You should then be able to use the ExactTime or Approximate Time policies from message_filters to synchronise your topics.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-16 11:52:01 -0500

Seen: 667 times

Last updated: Nov 17 '16