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

Connecting Action server, Moveit, and a 5 DOF robot arm

asked 2020-05-29 05:22:03 -0600

matthewmarkey gravatar image

updated 2020-05-29 05:24:03 -0600

I have modified, modeled, and physically built a 5DOF arm with the help of this GitHub repository:

Jmichieils

I have successfully executed Moveit Planning and Gazebo simulation.

I now would like to substitute my Gazebo model for the real thing.

My Rosserial libraries are setup on my Ubuntu 16.04 Arduino IDE, and I am running Kinetic.

I am really just struggling to find a simple example of what my Arduino Code should look like.

  1. Can this be done with one Arduino sketch?

  2. What changes do I need to make to my launch files to not launch in gazebo but only the real robot?

(All of the required files are in the GitHub: arm_control demo.launch...)

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-16 02:09:53 -0600

Hi,

if you seek to control your real robot arm by using Moveit, there are a couple of steps you need to do.

I tried this launch file

roslaunch arm_moveit demo.launch

then print the /joint_states topic

rostopic echo /joint_states

if you control the robot in Rviz by using the planning tab, you will see some changes in the content of this topic


Here is an Arduino code that subscribes to /joint_states topic and controls 5 servo motors, you need to modify according to your robot arm and the type of it motors

https://github.com/smart-methods/ardu...


After modifying the code and uploading it to Arduino board, you can control the real robot arm by launcing

roslaunch arm_moveit demo.launch
rosrun rosserial_python serial_node.py _port:=/dev/ttyUSB0 _baud:=115200
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-05-29 05:22:03 -0600

Seen: 264 times

Last updated: Nov 16 '20