LBR-Stack: ROS 2 and Python Integration of KUKA FRI for Med and IIWA Robots

Martin Huber, Christopher E. Mower, Sébastien Ourselin, Tom Vercauteren, Christos Bergeles

TL;DR

This paper introduces LBR-Stack, a new software framework that simplifies the integration of KUKA's Fast Robot Interface (FRI) with ROS 2 and Python. This makes it easier for researchers and engineers to work with KUKA's LBR Med and IIWA robots for real-time applications, addressing limitations in existing solutions.

What Problem Does This Paper Address?

Working with industrial robots like KUKA's LBR series for advanced research and development often requires a robust and flexible software interface. KUKA's Fast Robot Interface (FRI) provides a powerful way to communicate with these robots, especially for mission-critical, hard real-time applications. However, existing methods for integrating FRI with popular robotics software platforms like ROS have had limitations. These include:

  • Limited Robot Support: Some solutions only supported specific KUKA robot models (e.g., IIWA) and not others (e.g., Med).
  • Lack of Python Bindings: This hindered rapid prototyping and development, as Python is a go-to language for many robotics tasks.
  • Inflexible FRI Version Support: Existing integrations were often tightly coupled to specific FRI versions, making it difficult to adapt to updates or use different robot configurations.
  • Partial Functionality: Some integrations only offered basic hardware abstraction, missing advanced control modes like Cartesian impedance control.

This paper aims to overcome these challenges by providing a unified, flexible, and comprehensive software stack for KUKA LBR robots.

Methods

The LBR-Stack is built around a modular architecture designed for flexibility and extensibility. The core components include:

  • fri Package: This is the foundational package that integrates KUKA's original FRI client library. Crucially, it's designed to treat the FRI library as an externally provided dependency, meaning the original FRI source code remains untouched. This separation is key to supporting multiple FRI versions.
  • lbr_fri_idl: This package defines an Interface Definition Language (IDL) for KUKA's nanopb command and state protocol buffers. This allows for standardized communication of robot states and commands, bridging the gap between FRI and ROS 2.
  • lbr_fri_ros2_stack: This is the main ROS 2 integration package. It leverages lbr_fri_idl to interface with the robot and provides ROS 2 compatible components.
  • lbr_bringup: A Python library for easily launching the various components of the LBR-Stack.
  • lbr_description: Provides URDF (Unified Robot Description Format) and other description files for the supported KUKA robots (Med 7/14 and IIWA 7/14).
  • lbr_demos: Includes example demonstrations for both simulation (Gazebo) and real hardware.
  • lbr_ros2_control: Integrates with the ROS 2 ros2_control framework, enabling standard ROS 2 control interfaces.
  • lbr_moveit_config: Provides configurations for MoveIt 2, a popular motion planning framework for ROS.
  • pyfri: Python bindings for the FRI, enabling Python-based control and interaction.

The architecture is designed to be modular, allowing different downstream packages (like Python bindings or ROS 2 integrations) to easily support multiple FRI versions by interacting with the core fri package. The use of vcstool is mentioned for managing ROS 2 package dependencies.

Datasets

Not discussed in the paper. The paper focuses on software integration and does not present experiments that rely on specific datasets for training or evaluation.

Key Insights and Ideas

  • Decoupling FRI for Version Flexibility: By treating the FRI library as an external dependency, the LBR-Stack can more easily adapt to and support different versions of KUKA's FRI, a significant improvement over tightly coupled existing solutions.
  • Unified Support for Med and IIWA Robots: The stack provides a consistent interface for both the KUKA LBR Med and IIWA robot families, broadening its applicability.
  • Bridging FRI and ROS 2 with IDL: Using an IDL to define communication protocols is an effective way to create a standardized interface between the low-level FRI and the higher-level ROS 2 ecosystem, enabling richer control capabilities.
  • Enabling Python-based Robotics Development: The inclusion of Python bindings (pyfri) significantly lowers the barrier to entry for researchers and developers who prefer Python for rapid prototyping and algorithm development.

Key Results

The paper demonstrates the successful integration of KUKA's LBR Med 7/14 and IIWA 7/14 robots with ROS 2. The LBR-Stack supports:

  • Gazebo Simulation: Enables testing and development in a simulated environment.
  • Real Hardware Communication: Allows for direct interaction with physical KUKA robots.
  • Hard Real-Time Applications: The FRI's inherent capability for hard real-time communication is preserved and made accessible through the stack.
  • Key Control Modes: The stack aims to support essential FRI functionalities, including Cartesian impedance control and Cartesian control modes (for FRI version 2 and above), addressing a gap in previous work.
  • Python Bindings: Provides a Python interface for FRI, facilitating easier development.

A comparison table (Table 1) shows that the LBR-Stack offers broader support for robot models and features compared to existing frameworks like iiwa_ros, iiwa_ros2, iiwa-stack, libiiwa, and KST-KUKA.

Limitations and Future Work

  • Limitations:
    • The paper notes that existing FRI solutions have limitations, which the LBR-Stack aims to address. While the paper doesn't explicitly list its own limitations, it implies that the initial release might still be evolving.
  • The paper focuses on ROS 2, acknowledging the architectural advantages over ROS 1, but this means ROS 1 users might not directly benefit from the lbr_fri_ros2_stack component.
  • Future Work:
    • The authors suggest that the LBR-Stack is designed to be extensible. Future work could involve adding support for more advanced FRI features or control strategies.
  • Further development of demonstrations and examples for various applications would be beneficial.
  • Expanding support for other robot platforms or middleware could be a future direction.

Summary updated

Abstract

The LBR-Stack is a collection of packages that simplify the usage and extend the capabilities of KUKA's Fast Robot Interface (FRI). It is designed for mission critical hard real-time applications. Supported are the KUKA LBR Med7/14 and KUKA LBR iiwa7/14 robots in the Gazebo simulation and for communication with real hardware.
BibTeX
@misc{huber2023lbr,
  author = {Martin Huber and Christopher E. Mower and Sébastien Ourselin and Tom Vercauteren and Christos Bergeles},
  title = {{LBR-Stack: ROS 2 and Python Integration of KUKA FRI for Med and IIWA Robots}},
  year = {2023},
  eprint = {2311.12709},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.12709},
}
Figure