UR Robots
Introduction
UR robots have a unified interface for controlling them.
The robots we have in the lab are UR7e robots.
Software Setup
- Install the
urROS package for your current ROS distribution viaapt- (e.g., on lyrical
sudo apt install ros-lyrical-ur)
- (e.g., on lyrical
- Add a static ip connection
nmcli con add type ethernet con-name UR ifname <ETH0> ip4 192.168.56.1/24- Replace
<ETH0>with the name of your ethernet device (runnmclito list them)
- Replace
Mock Robot Controller
- The fake robot controller:
ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur7e robot_ip:=none use_mock_hardware:=true launch_rviz:=false - Moveit:
ros2 launch ur_moveit_config ur_moveit.launch.py ur_type:=ur7e launch_rviz:=true - We let the moveit launchfile start
rvizso that we get the fullmoveit rvizsetup.
No Robot, No Problem
Run a MoveIt kinematic simulation of the robot locally, even when not connected.
ros2 launch franka_fer_moveit_config demo.launch.py
The Robot
- Power on the robot by pressing the button on the teach pendant
- In the lower left corner of the screen press the power button and unlock and activate the robot
- Press the Play button on the bottom middle of the screen
- The program should be called ros_control
- In one terminal
ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur7e robot_ip:=none use_mock_hardware:=true launch_rviz:=false - In another terminal
ros2 launch ur_moveit_config ur_moveit.launch.py ur_type:=ur7e launch_rviz:=true