ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 -0500

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

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 -0500 )edit

Question Tools

1 follower


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

Seen: 677 times

Last updated: May 19 '16