Skip to content
Robotics.world

The Floor

ros2_control Drops Deprecated Handle and Export APIs in 6.12.0

ros2_control 6.12.0 removes deprecated handle and interface-export APIs from the Lyrical and Rolling development distributions. Hardware and controller packages that still trigger related deprecation warnings may fail to build after the next sync.

ros2_control Drops Deprecated Handle and Export APIs in 6.12.0

Warnings on Rolling and Lyrical point to a build break

Packages that still compile with deprecation warnings in ros2_control face a likely build failure when the next distribution sync arrives. The project’s 6.12.0 release removes the deprecated APIs from the Lyrical and Rolling development distributions; the release changelog dates the controller_interface update to October 7, and maintainer bmagyar posted a warning on October 8.

Source discourse.openrobotics.org

“If your package currently builds with deprecation warnings from hardware_interface or controller_interface, it will very likely fail to build after the sync.”

bmagyar, Open Robotics Discourse

The breaking change targets packages that implement hardware components or controllers using the retired interfaces. The code has already been released into Lyrical and Rolling, but the post says users will receive it with the next sync; it gives no sync date.

Three older interface patterns are removed

The change removes constructors that let developers create a StateInterface or CommandInterface around a raw pointer to a component’s own double variable. Handles now own their values, which code accesses through the newer getter and setter APIs.

Hardware components can no longer override the by-value export_state_interfaces() and export_command_interfaces() methods. The migration guide directs developers to declare interfaces in the robot’s ros2_control description and use framework methods such as set_state and get_command to exchange values. Components with interfaces not listed there can use the unlisted-interface description methods.

Chainable controllers also lose their older by-value export methods. The replacement is the shared-pointer-based on_export_*_interfaces_list() callback family. Together, the removals affect both hardware and controller packages, not just one kind of plugin.

The migration path predates the removal

The ros2_control migration guide says the hardware-interface migration has been possible since Jazzy. It recommends deleting the old export overrides, declaring interfaces in the robot description, and replacing reads and writes to backing variables with framework state and command accessors.

For developers triaging a codebase, the maintainer’s warning offers a practical first check: look for deprecation warnings from hardware_interface or controller_interface, then update the package and its tests before the next sync. The post says most simulators and many public drivers have already been patched, but that does not establish that every downstream package is ready.

Jazzy and Kilted retain the deprecated APIs

The removal applies to Lyrical and Rolling. Jazzy and Kilted are not affected, and the post says those distributions retain the old APIs for backward compatibility. That split gives maintainers of packages targeting the stable distributions a different immediate requirement from teams tracking the development branches.

The release changelog records the 6.12.0 removal as a breaking change for Rolling and Lyrical. For packages still building against the old handle or export methods, the next sync—not the warning itself—is the point at which the compatibility gap is expected to become a build failure.

Sources

  1. Original source Open Robotics Discourse discourse.openrobotics.org

Other pages read

  1. ros-controls/ros2_control on GitHub · page 1 github.com
  2. ros-controls/ros2_control on GitHub · page 2 github.com

Related stories

Explore

More articles