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

How to use ROS to control a roboclaw motor.

asked 2018-11-23 09:48:12 -0600

wmr gravatar image

Hi guys, I've been googling for ages and would really appreciate help on this, I am an absolute beginner trying to get ROS to control roboclaw which is in turn controlling maxon motors for a robot. I am running ROS Kinetic and I have a Arduino mega and a Roboclaw motor. Looking online it seems like the majority of people are using this library . I followed the instructions and installed it, unfortunately couldn't find any tutorials, but my question is how do I use it? Do I hook ROS up to an Arduino and then connect that to the motors etc?

edit retag flag offensive close merge delete


Were you able to use roboclaw with arduino mega using ros serial ??

ARGHYAJONY gravatar image ARGHYAJONY  ( 2022-03-06 08:51:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-23 14:19:38 -0600

billy gravatar image

The github page has the instructions for how to use it, but if you have no knowledge of ROS you would not even be able to recognize what parts are the instruction. You need to get familiar with ROS.

I suggest you follow the ROS getting-started tutorials and but build up the simulated turtle bot and get it running. It will only take a few hours and make your life much easier.

After using ROS and getting familiar, go back and look at the github page again. The instructions will then jump out at you.

Now I will answer your direct question.

1 - connect the roboclaw to your PC with a USB cable and power the roboclaw.

2 - Install the driver exactly as shown on github

3 - Start roscore

4 - Start the driver

5 - feed test command to cmd_vel topic - if you've gone through the ROS tutorials, you already know how to do this.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-11-23 09:48:12 -0600

Seen: 1,962 times

Last updated: Nov 23 '18