Some API changes break the free_fleet_server_ros2 build:
--- stderr: free_fleet_server_ros2
In file included from /opt/rmf/src/free_fleet/free_fleet_server_ros2/src/main.cpp:22:
/opt/rmf/src/free_fleet/free_fleet_server_ros2/src/ServerNode.hpp:110:11: error: ‘callback_group’ in namespace ‘rclcpp’ does not name a type; did you mean ‘CallbackGroup’?
110 | rclcpp::callback_group::CallbackGroup::SharedPtr update_state_callback_group;
| ^~~~~~~~~~~~~~
| CallbackGroup
/opt/rmf/src/free_fleet/free_fleet_server_ros2/src/ServerNode.hpp:123:11: error: ‘callback_group’ in namespace ‘rclcpp’ does not name a type; did you mean ‘CallbackGroup’?
123 | rclcpp::callback_group::CallbackGroup::SharedPtr
| ^~~~~~~~~~~~~~
| CallbackGroup
/opt/rmf/src/free_fleet/free_fleet_server_ros2/src/main.cpp: In function ‘int main(int, char**)’:
/opt/rmf/src/free_fleet/free_fleet_server_ros2/src/main.cpp:39:15: error: ‘rclcpp::executor’ has not been declared
39 | rclcpp::executor::ExecutorArgs(), 2};
| ^~~~~~~~
/opt/rmf/src/free_fleet/free_fleet_server_ros2/src/main.cpp:39:42: error: no matching function for call to ‘rclcpp::executors::MultiThreadedExecutor::MultiThreadedExecutor(<brace-enclosed initializer list>)’
39 | rclcpp::executor::ExecutorArgs(), 2};
| ^
In file included from /opt/ros/galactic/include/rclcpp/executors.hpp:21,
from /opt/ros/galactic/include/rclcpp/rclcpp.hpp:156,
from /opt/rmf/src/free_fleet/free_fleet_server_ros2/src/main.cpp:20:
/opt/ros/galactic/include/rclcpp/executors/multi_threaded_executor.hpp:56:3: note: candidate: ‘rclcpp::executors::MultiThreadedExecutor::MultiThreadedExecutor(const rclcpp::ExecutorOptions&, size_t, bool, std::chrono::nanoseconds)’
56 | MultiThreadedExecutor(
| ^~~~~~~~~~~~~~~~~~~~~
/opt/ros/galactic/include/rclcpp/executors/multi_threaded_executor.hpp:56:3: note: conversion of argument 1 would be ill-formed:
make[2]: *** [CMakeFiles/free_fleet_server_ros2.dir/build.make:63: CMakeFiles/free_fleet_server_ros2.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/free_fleet_server_ros2.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed <<< free_fleet_server_ros2 [3.93s, exited with code 2]
Bug report
Required information:
-ROS2 Galactic
Description of the bug
Some API changes break the free_fleet_server_ros2 build: