Robotics StackExchange | Archived questions

how to write cmd_vel subscribe

hi I am new on ro. and I am try to use teleop twist keyboard package but I don't know how to write a subscribe cmd_vel code for Arduino if any one can give an example or something I can use and if any on can explain how it will work. and I need to know if the pin slot for motor must be in the code

Asked by ghaith on 2016-05-26 16:28:31 UTC

Comments

have you figured this out?

Asked by aarontan on 2018-06-25 09:38:28 UTC

Answers

ROS Tutorial is a good reference, http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c%2B%2B). For python source code, you could refer https://github.com/ros-teleop/teleop_twist_keyboard.

Asked by Weiwei on 2016-05-28 01:37:19 UTC

Comments

thanks for the answer but I finish this part and I don't know how I can write cmd_vel subscribe this for string msg I think is there any thing for cmd_vel msg

Asked by ghaith on 2016-05-28 14:25:53 UTC