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

Bundling a message stream

asked 2016-03-29 04:07:56 -0500

Felix Duvallet gravatar image

I am looking to 'bundle' a stream of ROS messages (on different topics) into a single message that contains bundles (i.e. tuples) of the individual message. Is there a package out there that does something similar?

To give a concrete example, I might have two topics A and B that publish messages at possibly different rates (horizontal space is time):

A: a_1,     a_2,      a_3, ... 
B: b_1, b_2, b_3, b_4, b_5, b_6, ...

and I want a single stream of tupled message bundles:

Bundles: (a_1, b_1), (a_2, b_3), (a_3, b_5), ....

For example, these could be stereo image pairs or pairs of sensor data measurements.

Before I write a solution, does someone know if such a bundler package exist?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-29 04:12:18 -0500

NEngelhard gravatar image

updated 2016-03-29 06:08:39 -0500

Have a look at the message filters:

and especially this one

/// now with better links

edit flag offensive delete link more



And a link to the parent message/filters page, which is slightly more generic.

gvdhoorn gravatar image gvdhoorn  ( 2016-03-29 05:34:14 -0500 )edit

Question Tools

1 follower


Asked: 2016-03-29 04:07:56 -0500

Seen: 302 times

Last updated: Mar 29 '16