Ask Your Question
-1

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

asked 2017-02-11 03:52:53 -0600

RajashekharVS gravatar image

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.

edit retag flag offensive close merge delete

Comments

@RajashekharVS have you find the answer or have you done this ?

lagankapoor gravatar imagelagankapoor ( 2018-02-08 04:56:41 -0600 )edit
1

Yes I have done. But not using ROS !

RajashekharVS gravatar imageRajashekharVS ( 2018-03-02 03:15:10 -0600 )edit

I have Done now Sir @RajashekharVS

lagankapoor gravatar imagelagankapoor ( 2018-03-04 23:47:01 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-02-11 08:30:53 -0600

ChriMo gravatar image

Easy job :-)

Use firmata firmware for your arduino ( http://firmata.org/wiki/Main_Page ) and a simple python script using https://github.com/MrYsLab/PyMata

Now you can write a small python-node for ros and enjoy rviz.

I did it the same way for testing my robots. https://github.com/mockbot/MockBot

Cheers Christian

edit flag offensive delete link more

Comments

Can you send me a package with URDF and Arduino code to control one motor ? I am actually bad in programming. Can you please help me ?

RajashekharVS gravatar imageRajashekharVS ( 2017-02-11 09:22:24 -0600 )edit

https://github.com/mockbot/MockBot

Load firmata to your UNO and try this as base for your tests: https://github.com/mockbot/MockBot/bl...

ChriMo gravatar imageChriMo ( 2017-02-12 13:41:25 -0600 )edit

I tried but couldn't. Can you send me a package so that it will ease my job ? Thanks in advance !

RajashekharVS gravatar imageRajashekharVS ( 2017-02-18 22:31:51 -0600 )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: 2017-02-11 03:52:53 -0600

Seen: 393 times

Last updated: Feb 11 '17