Robotics StackExchange | Archived questions

Control servo with Arduino via arrow keys in ROS

Hi everybody,

I'm trying to control a servo via the arrow keys in ROS. The servo is connect to an arduino. Following the tutorial with rosserial_arduino works fine for me, but instead to send just one uint16 data via rostopic I want to control the servo with the arrow keys like the turtlesim. Unfortunately I have not very good programing skills. Anybody who can help me with this project?

Asked by Arcus on 2015-01-24 08:44:29 UTC

Comments

Answers

turtle_teleop_key node publishes a geometry_msgs/Twist so you have to write a node that transform this message into a std_msgs/UInt16 message.

Asked by rreignier on 2018-09-16 07:40:10 UTC

Comments