Skip to main content
QUICK REVIEW

[Paper Review] A Modular Robotic Arm Control Stack for Research: Franka-Interface and FrankaPy

Kevin Zhang, Mohit Sharma|arXiv (Cornell University)|Nov 4, 2020
Robot Manipulation and LearningEngineering9 references25 citations
TL;DR

This paper presents Franka-Interface and FrankaPy, a modular robotic control stack enabling high-frequency, real-time control of the Franka Emika Panda robot at 1 kHz using C++ for low-level control and Python for high-level programming. The framework supports dynamic switching between 9 native robot controllers, real-time sensor feedback integration, and rapid prototyping of control strategies such as impedance and LQR control, with proven use in 5 published research papers and a university course with 50 students.

ABSTRACT

We designed a modular robotic control stack that provides a customizable and accessible interface to the Franka Emika Panda Research robot. This framework abstracts high-level robot control commands as skills, which are decomposed into combinations of trajectory generators, feedback controllers, and termination handlers. Low-level control is implemented in C++ and runs at $1$kHz, and high-level commands are exposed in Python. In addition, external sensor feedback, like estimated object poses, can be streamed to the low-level controllers in real time. This modular approach allows us to quickly prototype new control methods, which is essential for research applications. We have applied this framework across a variety of real-world robot tasks in more than $5$ published research papers. The framework is currently shared internally with other robotics labs at Carnegie Mellon University, and we plan for a public release in the near future.

Motivation & Objective

  • To address the limitations of ROS-based control stacks like franka_ros, which restrict controller access and lack real-time sensor integration.
  • To provide researchers with a modular, extensible control stack that supports rapid prototyping of advanced control strategies on the Franka Panda robot.
  • To enable seamless integration of external sensor feedback (e.g., object pose estimation) into real-time low-level controllers.
  • To support dynamic switching between all 9 native libfranka controllers without controller shutdown or latency.
  • To facilitate large-scale research deployment, as demonstrated by use in 5 published papers and a university course with 8 robots and 50 students.

Proposed method

  • The system uses a client-server architecture with a real-time server on a Linux system with a real-time kernel, handling 1 kHz control via libfranka C++ API.
  • High-level control and planning are managed on a client computer with Python, using FrankaPy to expose APIs for robot state and ROS action clients.
  • A shared memory buffer enables low-latency, efficient data transfer between client and server, including skill parameters and sensor data.
  • Skills are decomposed into configurable components: trajectory generators, feedback controllers, termination handlers, and sensor topic subscriptions.
  • The framework supports multiple controller types, including joint position, Cartesian pose, impedance, and force control, with dynamic switching between them.
  • Sensor data from ROS topics (e.g., object pose estimates) is streamed in real time to the real-time control loop via the shared memory interface.

Experimental results

Research questions

  • RQ1Can a modular control stack be designed to support real-time, high-frequency control of the Franka Panda robot while enabling dynamic switching between multiple native controllers?
  • RQ2To what extent can external sensor feedback be integrated into low-level control loops without introducing latency or breaking real-time guarantees?
  • RQ3How effectively can such a system support rapid prototyping of diverse control strategies, such as impedance control or LQR, in real-world robotic tasks?
  • RQ4Can this framework be scaled to support multiple robots and complex, multi-stage tasks in academic research settings?
  • RQ5How does this approach compare to existing ROS-based stacks in terms of controller flexibility and real-time performance?

Key findings

  • The system successfully achieves 1 kHz real-time control on the Franka Emika Panda robot using a C++-based real-time control loop.
  • The framework supports dynamic switching between all 9 native libfranka controllers, eliminating the need to stop and restart controllers.
  • Real-time sensor feedback, such as estimated object poses, can be streamed to the low-level controller without latency or serialization overhead.
  • The system has been used to implement and validate advanced control strategies, including Cartesian impedance and LQR controllers, in real-world tasks.
  • The framework enabled 5 published research papers and supported 50 students in a university course using 8 shared robots.
  • The system is being prepared for public release after resolving licensing and documentation improvements.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.