How to control a hobby servo via arduino using RViz GUI?

I am using ROS Indigo, Ubuntu 14.04LTE and Arduino UNO. I need to control a hobby servo via arduino using RViz GUI. If I move the scroll bar, the motor should rotate.

Can anyone share the files ?

yes you can shear me all file

@vsrajashekhar,

If you want to work with RViz, Arduino, RC Servo, the link below would be helpful. I have not done what you say, but in my opinion, you can to publish the rotated value of the InteractiveMarker as Topic and connect it with Arduino(rosserial).

1 Like