Skip to content

Rolling build fails due to ros2_control API change (on_init override) #40

@vincenzoorland0

Description

@vincenzoorland0

Hi,

Building topic_based_ros2_control from the main branch fails on current
ROS 2 Rolling due to a ros2_control API change.

Error:
‘TopicBasedSystem::on_init(const hardware_interface::HardwareInfo&)’
marked ‘override’, but does not override

and:
cannot convert ‘const hardware_interface::HardwareInfo’
to ‘const hardware_interface::HardwareComponentInterfaceParams&’

This appears to be caused by a change in ros2_control where
SystemInterface::on_init now takes
HardwareComponentInterfaceParams instead of HardwareInfo.

The installation docs currently state Rolling is supported, but the
current main branch does not compile against recent Rolling.

Environment:

  • ROS 2 Rolling (current apt packages)
  • Built from source with colcon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions