Ask Your Question
0

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
0

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++): http://wiki.ros.org/ROS/Tutorials/Wri...

Or more advance tutorial where you can create your own message type: http://wiki.ros.org/ROS/Tutorials/Def...

edit flag offensive delete link more

Comments

Thank u very much for your precious feedback.

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

Stats

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

Seen: 292 times

Last updated: May 19 '16