0
$\begingroup$

Rosanswers logo

Hello everyone,

How to create subscribers to multiple topics with single callback in cpp?


Originally posted by rosdino on ROS Answers with karma: 13 on 2015-08-07

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

You can look into message_filters package. This package filters messages from more than one subscribed topics and passes it to a single call back. All the subscribed topics need to have a time_stamp, for this to work.


Originally posted by Willson Amalraj with karma: 206 on 2015-08-11

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by rosdino on 2015-08-11:
Hi, just have a doubt, does it work with rosserial arduino subscribers?

Comment by Willson Amalraj on 2015-09-08:
I may not be of help here. I do not use ROS on arduino.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.