ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

package to drive a robot

asked 2016-10-05 07:49:01 -0500

Milliau gravatar image

I have 2 maxon motor with I have intizialed with the package epos hardware, now I have two topics, one for every motor. My robot should be drive with a Gamepaf now i need a program do send the velocity to the topic, so if i but the axe just to the left side just the left motor will get velocity and so on. Is there package with can do this?

Thanks

edit retag flag offensive close merge delete

Comments

I don't know which hardware u have, but there a few packages for differential drive: http://wiki.ros.org/diff_drive_contro...

And for Arduino boards you can use this one : http://wiki.ros.org/diff_drive_contro...

anonymous userAnonymous ( 2016-10-05 10:12:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-10-05 16:08:43 -0500

Mark Rose gravatar image

You might try the differential_drive package. The twist_to_motors node might be what you are looking for. It takes an input Twist message (by default on the twist topic, which you will probably want to remap to cmd_vel) and computes and publishes motor speeds on two outgoing topics.

If you want to try that package, get it from the author's GitHub repository rather than the code.google.com location from the ROS. The GitHub location includes changes I submitted to the author to update the package for indigo and later.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-05 07:49:01 -0500

Seen: 220 times

Last updated: Oct 05 '16