A Modular Robotic Arm Control Stack for Research: Franka-Interface and FrankaPy

Kevin Zhang, Mohit Sharma, Jacky Liang, Oliver KroemerarXiv 2020

Abstract

Researchers at Carnegie Mellon University have developed Franka-Interface and FrankaPy, a modular control stack for the Franka Emika Panda robot. This framework bridges the gap between high-level Python programming and low-level 1kHz C++ control by abstracting robot behaviors into "skills" composed of interchangeable trajectory generators and feedback controllers. This architecture allows researchers to rapidly prototype complex manipulation tasks without the restrictive overhead of standard industrial interfaces.

Introduction

While commercial collaborative robots (cobots) often provide user-friendly "drag-and-drop" interfaces, these tools are typically too rigid for cutting-edge research. Researchers require the ability to incorporate real-time sensor data—such as computer vision or force feedback—and switch dynamically between control strategies like joint position or Cartesian impedance. Existing solutions, such as the standard franka_ros package, suffer from controller limitations and a lack of flexibility in injecting external sensor data into the control loop.

System Architecture and Methods

The proposed framework utilizes a decoupled Client-Server architecture to balance high-performance control with ease of use.

The Client-Server architecture of Franka-Interface and FrankaPy, showing the flow from high-level planning to 1kHz real-time control.
  • The Client (FrankaPy): A Python-based environment for high-level planners and heavy computations, such as deep neural networks for object detection. It communicates with the server via ROS Action Clients.
  • The Server (Franka-Interface): A C++ application running on a real-time Ubuntu kernel, communicating directly with the robot hardware at 1kHz.
  • The "Skill" Abstraction: The core innovation is the "skill" container, which consists of a Trajectory Generator, a Feedback Controller, a Termination Handler, and a Sensor Data Manager. This modularity allows for streaming external ROS topics directly into the low-level control loop.

To maintain high performance, the ROS action server and the real-time control loop share a common memory buffer, bypassing the latency associated with standard data serialization.

Key Insights

The framework's effectiveness stems from several design choices:

  • Shared Memory for Speed: Achieving 1kHz control while remaining accessible via ROS.
  • Mix-and-Match Modularity: Swapping trajectory generators while maintaining feedback controllers enables rapid experimentation.
  • Hardware/Software Separation: Decoupling real-time control requirements from deep learning requirements (e.g., Nvidia driver dependencies), allowing them to run on separate machines.

Experimental Results and Versatility

The system maintains a consistent 1kHz control frequency, the gold standard for smooth, reactive robotic manipulation. Its versatility has been demonstrated across a wide array of complex tasks.

A montage of tasks performed using the framework, including pipetting, vegetable cutting, and pouring.

Beyond individual tasks, the framework proved its robustness in a classroom setting at CMU, where 50 students simultaneously utilized 8 robot setups. The software has already powered multiple published research papers in fields ranging from haptic sensing to semantic embedding for manipulation.

Limitations and Future Work

Currently, the system relies on ROS for communication, which the authors plan to replace with ZeroMQ for a more lightweight implementation. Additionally, while the system supports basic collision checking, more complex automated safety features and improved public documentation are ongoing priorities for future releases.

Summary updated

BibTeX
@misc{zhang2020modular,
  author = {Kevin Zhang and Mohit Sharma and Jacky Liang and Oliver Kroemer},
  title = {{A Modular Robotic Arm Control Stack for Research: Franka-Interface and FrankaPy}},
  year = {2020},
  eprint = {2011.02398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.02398},
}
Figure