Ask Your Question
1

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
2

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: http://wiki.ros.org/message_filters

and especially this one

http://wiki.ros.org/message_filters/A...

/// now with better links

edit flag offensive delete link more

Comments

2

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 115 times

Last updated: Mar 29 '16