ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to subscribe the sensor values into ros nodes and to publish results to controll servo motors ?

asked 2016-05-18 13:23:19 -0600

dinesh gravatar image

I want to use the sensor values inside the ros node to do some operation and than after doing some operation by using them i want to send the result values to the actuaters of the robot with BBB, how can i do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-19 04:50:51 -0600

ROSkinect gravatar image

You need a package to subscribe to a topic published by the sensor's package then publish it as another topic containing the values you need. After that you can subscribe again to do your traitement..

To do that you need:

Writing a Simple Publisher and Subscriber (C++):

Or more advance tutorial where you can create your own message type:

edit flag offensive delete link more


Thank u very much for your precious feedback.

dinesh gravatar image dinesh  ( 2016-05-19 06:44:35 -0600 )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


Asked: 2016-05-18 13:23:19 -0600

Seen: 526 times

Last updated: May 19 '16