Drive UR Dual-Arm Robots in ROS RViz with Our Own Arms: A Better Alternative to VR Joysticks

Elephant_Robotics

The myController S570 is a werable lightweight exoskeleton with 14 joints, 2 joysticks and 2 buttons, it is well-suited for remote operation and data acquisition of unmanned tasks , making it an ideal tool for industrial automation, workstation tasks and humanoid robots control .

This article uses a UR5 dual-arm for a fast and intuitive remote control case in ROS RViz.


Steps for Building the Project

Using Exoskeleton to Quickly Control UR5 Dual-Arm in ROS

This example is built on Ubuntu 20.04 + ROS Noetic + Miniconda with a Python 3.8 virtual environment.

To avoid unresolved errors, please set up the project according to the specified requirements.

1. Create a ROS Python 3.8 Environment

2. Build the ROS Workspace then Clone the Third-Party and Main Project

bash

cd ~mkdir myController_ws && mkdir myController_ws/src && cd myController_ws/src

git clone https://github.com/THU-DA-Robotics/Universal_Robots_ROS_Driver.git

git clone -b noetic_devel https://github.com/THU-DA-Robotics/robotiq.git

git clone https://github.com/THU-DA-Robotics/dual_ur.git

git clone -b mycontroller_s570 https://github.com/elephantrobotics/mycobot_ros.git

3. Catkin_make and Open Rviz

bashcd ..  catkin_make 

source devel/setup.bash 

 roslaunch mycontroller_s570 test.launch

You will see the myController S570 exoskeleton model in rviz.

4. Connect myController S570 to PC.

Please follow the gitbook.

5. Check the Serial Name and Test Data Transmission

bash

conda activate ros_py38 
 ( you can add this line to ~/.bashrc to avoid repeated operations )

ls /dev/tty*

cd /home/u184/controller_ws/src/mycobot_ros/mycontroller_s570/scripts

gedit test.py

Close Gedit, create a new terminal to run the scripts.

bash

cd /home/u184/controller_ws/src/mycobot_ros/mycontroller_s570/scripts

python3 test.py

You will see the exoskeleton model in Rviz move with the real one.

6. Control UR5 Dual-Arm in Rviz

In this part of step, we should modify the launch file that starts Rviz for the robot, adjusting the node names, message types, etc., so that the joint transformation information of the robot model matches the messages published by the myController S570**.**

6.1 Create a New Launch File

( You can download this file from the attachment of the article.)

6.2 Modify Pyhon Script to Ensure the Pubilished Joints Name

( You can download this file from the attachment of the article.)

the names should match with ur5 dual-arm urdf model

6.3 Open 2 New Terminals to Test Dual-Arm Robotic Control

Open one terminal to launch rviz.

bash

cd ~/controller_wssource devel/setup.sh

roslaunch dual_ur_description control_dual_ur5.launch

Open another terminal to run test.py to start the exoskeleton and test motion control.

bash

conda activate ros_py38

cd /home/u204/myController_ws/src/mycobot_ros/mycontroller_s570/scripts

python3 test.py

Outlook for Secondary Development

For connecting this demo to a real robot for testing, you should refer to the wiki by another author of the dual-arm-robotq project.

In case of using other robots for simulation tasks, the same steps related to myController S570 installation and launch files modification in this project can be referenced. During development, the following points should be considered:

  • Redundant degree-of-freedom handling.
  • Joints angle mapping adjustments between the exoskeleton controller and the robot accroding to the DH models.
    new (6)

Summary

The wearable exoskeleton offers advantages in high compatibility and human motion capture . It enables high-speed data acquisition from joints J1 to J14, with real-time sensor feedback displayed on an electronic screen, contributing significantly to the development of unmanned tasks .

For inquiries regarding the development and application of the myController S570 exoskeleton, please feel free to contact us. We welcome further exploration of remote operation and development use cases.

3 Likes