Skip to content

Build failure on kilted+rolling #8

@christophfroehlich

Description

@christophfroehlich

ros-controls/ros2_control#2528 introduced a build failure on kilted+rolling.

May be obsolete with ros-controls/ros2_controllers#1888, not sure how to proceed here?

2025-09-25T11:13:54.6047509Z In file included from /usr/include/c++/13/memory:78,
2025-09-25T11:13:54.6048448Z                  from /tmp/ws/install_isolated/controller_interface/include/controller_interface/controller_interface/controller_interface.hpp:18:
2025-09-25T11:13:54.6051026Z /usr/include/c++/13/bits/unique_ptr.h: In instantiation of ‘std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = battery_state_broadcaster::BatterySensor; _Args = {battery_state_broadcaster::BatterySensor}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<battery_state_broadcaster::BatterySensor>]’:
2025-09-25T11:13:54.6053026Z /tmp/ws2/src/battery_state_broadcaster/src/BatteryStateBroadcaster.cpp:21:52:   required from here
2025-09-25T11:13:54.6054755Z /usr/include/c++/13/bits/unique_ptr.h:1070:30: error: use of deleted function ‘battery_state_broadcaster::BatterySensor::BatterySensor(const battery_state_broadcaster::BatterySensor&)’
2025-09-25T11:13:54.6056151Z  1070 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
2025-09-25T11:13:54.6056672Z       |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-09-25T11:13:54.6058730Z /tmp/ws2/src/battery_state_broadcaster/include/battery_state_broadcaster/BatterySensor.hpp:9:7: note: ‘battery_state_broadcaster::BatterySensor::BatterySensor(const battery_state_broadcaster::BatterySensor&)’ is implicitly deleted because the default definition would be ill-formed:
2025-09-25T11:13:54.6060814Z     9 | class BatterySensor : public semantic_components::SemanticComponentInterface<sensor_msgs::msg::BatteryState>
2025-09-25T11:13:54.6061568Z       |       ^~~~~~~~~~~~~
2025-09-25T11:13:54.6064216Z /tmp/ws2/src/battery_state_broadcaster/include/battery_state_broadcaster/BatterySensor.hpp:9:7: error: use of deleted function ‘semantic_components::SemanticComponentInterface<MessageReturnType>::SemanticComponentInterface(const semantic_components::SemanticComponentInterface<MessageReturnType>&) [with MessageReturnType = sensor_msgs::msg::BatteryState_<std::allocator<void> >]’
2025-09-25T11:13:54.6067171Z In file included from /tmp/ws2/src/battery_state_broadcaster/include/battery_state_broadcaster/BatterySensor.hpp:3:
2025-09-25T11:13:54.6068648Z /tmp/ws/install_isolated/controller_interface/include/controller_interface/semantic_components/semantic_component_interface.hpp:109:3: note: declared here
2025-09-25T11:13:54.6070082Z   109 |   SemanticComponentInterface(const SemanticComponentInterface &) = delete;
2025-09-25T11:13:54.6070722Z       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-09-25T11:13:54.6071684Z gmake[2]: *** [CMakeFiles/battery_state_broadcaster.dir/build.make:76: CMakeFiles/battery_state_broadcaster.dir/src/BatteryStateBroadcaster.cpp.o] Error 1
2025-09-25T11:13:54.6073008Z gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/battery_state_broadcaster.dir/all] Error 2
2025-09-25T11:13:54.6073634Z gmake: *** [Makefile:146: all] Error 2

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