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

Is it possible to run publisher and subscriber in single node under rosserial?

asked 2015-01-28 06:59:16 -0500

Kishore Kumar gravatar image

updated 2015-01-28 07:21:57 -0500

I need to get input from an analog sensor and control the LED. In this case can i run both the publisher and subscriber under same node in rosserial because i have only one Arduino board. Guide me towards some similar codes written.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-01-28 07:18:07 -0500

Wolf gravatar image

Yep, absolutely common standard use case, possible without problems......

edit flag offensive delete link more


Can you please give me an example code where both publisher and subscriber written in same node?

Kishore Kumar gravatar image Kishore Kumar  ( 2015-01-28 07:24:24 -0500 )edit

answered 2015-01-28 10:37:40 -0500

Chrimo gravatar image

Watch this stupid sample from the past

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-01-28 06:59:16 -0500

Seen: 677 times

Last updated: Jan 28 '15