-
Notifications
You must be signed in to change notification settings - Fork 0
KUKA LBR iiwa & OnRobot RG2 Setup
Jgocunha edited this page Apr 2, 2026
·
2 revisions
This page describes how to set up and run the KUKA LBR iiwa 14 robot with the OnRobot RG2 gripper using ROS 2 Humble and MoveIt 2.
The robot is controlled via Ethernet (KONI port) and the gripper via MARLAB Wi-Fi.
| Device | Connection | IP Address |
|---|---|---|
| KUKA Controller | Ethernet (KONI X66) | 172.31.1.147 |
| OnRobot RG2 (left) | Wi-Fi | 172.31.1.4 |
| OnRobot RG2 (right) | Wi-Fi | 172.31.1.3 |
| PC | Ethernet | 192.168.11.2 |
Important:
- Robot control → Ethernet
- Gripper control → Wi-Fi
Before running anything:
- Connect Ethernet cable → KUKA KONI (X66)
- Power OnRobot compute box
- Connect PC to Wi-Fi
- Set PC static IP
- Ping robot and gripper
- Launch LBRServer on SmartPad
- Start ROS 2 drivers
- Test gripper
sudo ip addr add 172.31.1.148/24 dev eth0
sudo ip link set eth0 upping 172.31.1.147 # Robot
ping 172.31.1.4 # OnRobotIf robot does not respond:
sudo ip link set eth0 down
sudo ip link set eth0 upOn the KUKA SmartPad, start LBRServer with:
| Setting | Value |
|---|---|
| FRI send period | 10 ms |
| FRI control mode | POSITION_CONTROL |
| Client command mode | POSITION |
| Client IP | 192.168.11.2 |
ros2 launch lbr_bringup hardware.launch.py moveit:=true model:=iiwa14ros2 launch lbr_bringup move_group.launch.py mode:=hardware model:=iiwa14 rviz:=trueros2 launch lbr_moveit_cpp hello_moveit.launch.py mode:=hardware model:=iiwa14- Ensure OnRobot compute box is powered
- Connect PC to MARLAB Wi-Fi
- Ping the gripper controller:
ping 172.31.1.4ros2 launch onrobot_driver onrobot_control.launch.py \
onrobot_type:=rg2 \
connection_type:=tcp \
ip_address:=172.31.1.4Launch gripper control:
ros2 launch kuka_lbr_iiwa14_marlab onrobot_rg2_control.launch.pySend command:
ros2 topic pub --once /onrobot/finger_width_controller/commands \
std_msgs/msg/Float64MultiArray "{data: [0.05]}"This should open or close the gripper.
When running the full system:
- Connect Ethernet to robot
- Connect to Wi-Fi
- Launch LBRServer on SmartPad
- Start robot driver
- Start MoveIt
- Start OnRobot driver
- Test gripper
- Start control nodes
- lbr_fri_ros2_stack Documentation
- MoveIt Hardware Setup
- OnRobot ROS2 Driver