Calling ROS 2 C++ from Python Without Writing Bindings: The cppyy and rclcppyy Approach

A concept guide to runtime C++ bindings for ROS 2 Python code: how cppyy and Cling work, what rclcppyy swaps, what the demos showed, and the startup and memory limits.

In this article

  • Key idea
  • When to use it
  • The problem: Python is quick to write and slow to run
  • The idea: bindings generated while the program runs
  • What rclcppyy does with it
  • Four things the demos show
  • Known limits
  • Why it exists
  • When this approach makes sense
  • Our take: where this fits
  • Further reading