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

Subscriber ROS

asked 2016-04-26 13:16:10 -0500

Ros User gravatar image

updated 2022-03-26 11:23:49 -0500

lucasw gravatar image

Can a subscriber subscribe to two topics messages in ROS?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2016-04-26 14:03:02 -0500

jacobperron gravatar image

Just create two subscribers. They can have the same callback function assuming the message types are the same.

edit flag offensive delete link more

Comments

Thanks. It worked for me.

Ros User gravatar image Ros User  ( 2016-05-10 14:58:54 -0500 )edit
0

answered 2022-04-08 22:07:24 -0500

lidiaxp gravatar image

updated 2022-04-08 22:07:51 -0500

Yes, there are a sample here: https://answers.ros.org/question/3095...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-26 13:16:10 -0500

Seen: 396 times

Last updated: Apr 08 '22