ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
1

Subscriber ROS

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

Ros User gravatar image

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

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 -0600

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 -0600 )edit
0

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

lidiaxp gravatar image

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

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

edit flag offensive delete link more

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-04-26 13:16:10 -0600

Seen: 314 times

Last updated: Apr 08 '22