Skip to content

fenixkz/ros_snake_robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5 degree of freedom planar robot

Project overview

This repository contains files that control either the simulated model or the real 5-DOF planar robot. The robot consists of five dynamixel MX-28 servomotors connected with 3D printed links.

text

Everything is interconnected within Robot Operating System (ROS) Melodic distribution.

Prerequisites

The project has been implemented on Ubuntu 18.04 machine with ROS Melodic. Dynamixel motor must have Protocol 2.0 in order to work with the current library.

To be able to run the project ROS must be installed on your local machine. Also, the following libraries are required:

Running

The robot must be connected to a power source providing 12V. Also, an appropriate USB2Dynamixel/U2D2 adapter should be used to connect the robot to the PC. After that run:

roslaunch dynamixel_control snake_control.launch

After that 5 Position Controller should be spawned.

Each joint has a name: Joint#, where # is the number of the joint. Starting with 1 of the base joint to 5 of the end-effector.

After that corresponding topics will appear:

/snake/joint1_controller/command

/snake/joint2_controller/command

/snake/joint3_controller/command

/snake/joint4_controller/command

/snake/joint5_controller/command

MoveIt

It is also possible to deploy MoveIt to control the robot in Cartesian space or do trajectory planning and collision avoidance.

The neccessary package for MoveIt communication has been created: moveit_snake

roslaunch moveit_arm moveit_planning_execution.launch

Now, you can use MoveIt to control the robot in the real world.

Simulation

The same robot can be simulated in moveit and can be used by the same commands, except an additional argument needs to be specified: use_sim:=true

For example:

roslaunch moveit_arm moveit_planning_execution.launch use_sim:=true

About

New version of planar hand with short links

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published