Edit on GitHub

ROBOTIS-OP2 ROS Packages

OS Install

ROBOTIS-OP2 is installed with Lubuntu 12.04 by default.
Although the Hydro Medusa ROS can be installed on Lubuntu 12.04 (Precise Pangolin), but it is recommended to use the latest version as possible.

Since Ubuntu 16.04 and 18.04 have issues with the SBC graphic driver, it is recommended to install Linux Mint 17.3 (Rosa) - Xfce (32bit) that is based on Ubuntu 14.04 (Trusty Tahr) in order to operate ROBOTIS-OP2 with ROS.
Please refer to the link below for how to install Linux Mint:

Install Guide : Linux Mint Installation Guide
Download : Linux Mint 17.3 “Rosa” - Xfce (32-bit)

CAUTION : Do NOT upgrade the kernel after installation. Upgrading the kernel can cause graphic driver problem.

ROS Install

Please refer to the link below for how to install ROS (Indigo Igloo).
In order to properly install ROS on Linux Mint, setting up the sources.list has to be modified as below.

$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'

Intsall Guide : Install of ROS Indigo

ROS packages for ROBOTIS-OP2

Once ROS is properly installed, dependent packages should be installed to operate ROBOTIS-OP2. Some ROS packages for ROBOTIS-OP3 can be used as is while other packages are required some modifications.
The packages modified for ROBOTIS-OP2 have been uploaded at separate repositories.
Download the packages with following instructions :

$ cd ~/catkin_ws/src
$ git clone https://github.com/ROBOTIS-GIT/DynamixelSDK
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Framework-msgs
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-Math
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-OP2
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-OP2-Common
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-OP3
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-OP3-msgs
$ git clone https://github.com/ROBOTIS-GIT/ROBOTIS-OP3-Tools

ROBOTIS-OP2 repository

  1. cm_740_module : Moved from the ROBOTIS-OP3 repository.
  2. op2_gui_demo : Some configuration files and launch file have been modified to run op3_gui_demo on ROBOTIS-OP2.
  3. op2_kinematics_dynamics : Only some values such as the joint direction used in the op2_walking_module were modified according to ROBOTIS-OP2.
  4. op2_manager : Applied some modifications on motion module and the configuration file for ROBOTIS-OP2. Unlike OpenCR in ROBOTIS-OP3, CM-740 in ROBOTIS-OP2 has DYNAMIXEL Power OFF as default setting. Therefore, modified source code to handle this difference.
  5. op2_walking_module : Modified code for ROBOTIS-OP2 (joint direction, balance gain, etc.)

ROBOTIS-OP2-Common repository

  1. robotis_op2_description : ROBOTIS-OP2 URDF model
  2. robotis_op2_gazebo : ROBOTIS-OP2 gazebo simulation

How to run GUI program

Build source

$ cd ~/catkin_ws
$ catkin_make

Execute op2_manager

$ roslaunch op2_manager op2_manager.launch

When the op2_manager is launched, all the joints are torque on and play standing motion first, then the play sitting motion.

Connect VNC viewer or monitor to ROBOTIS-OP2 and execute GUI demo program.

$ roslaunch op2_gui_demo op2_demo.launch

How to use GUI program

The basic operating test is identical to ROBOTIS-OP3 which is described below on the OP3 tutorial page:

Reference : http://emanual.robotis.com/docs/en/platform/op3/tutorials/#description-2

Mode Control, Walking, Head Control, Motion tab is available.
Demo, Online Walking tab is NOT available.