Build of slam_toolbox fails on the new added slam_toolbox_map_and_localization target
stderr:
--- stderr: slam_toolbox
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp: In function ‘int main(int, char**)’:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [18])’
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:421:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool)’
421 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:421:3: note: template argument deduction/substitution failed:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: note: candidate expects 4 arguments, 1 provided
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:434:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const string&, const ParameterDescriptor&, bool)’
434 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:434:3: note: template argument deduction/substitution failed:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: note: couldn’t deduce template parameter ‘ParameterT’
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:366:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&, const rclcpp::ParameterValue&, const ParameterDescriptor&, bool)’
366 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:366:3: note: candidate expects 4 arguments, 1 provided
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:391:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&, rclcpp::ParameterType, const ParameterDescriptor&, bool)’
391 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:391:3: note: candidate expects 4 arguments, 1 provided
gmake[2]: *** [CMakeFiles/map_and_localization_slam_toolbox_node.dir/build.make:76: CMakeFiles/map_and_localization_slam_toolbox_node.dir/src/experimental/slam_toolbox_map_and_localization_node.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:990: CMakeFiles/map_and_localization_slam_toolbox_node.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< slam_toolbox [5min 44s, exited with code 2]
Additional information
The whole command line output:
--- output: slam_toolbox
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ament_cmake: 1.5.0 (/opt/ros/rolling/share/ament_cmake/cmake)
-- Found Python3: /usr/bin/python3.10 (found version "3.10.4") found components: Interpreter
-- Found message_filters: 4.4.1 (/opt/ros/rolling/share/message_filters/cmake)
-- Found rosidl_generator_c: 3.2.1 (/opt/ros/rolling/share/rosidl_generator_c/cmake)
-- Found rosidl_adapter: 3.2.1 (/opt/ros/rolling/share/rosidl_adapter/cmake)
-- Found rosidl_generator_cpp: 3.2.1 (/opt/ros/rolling/share/rosidl_generator_cpp/cmake)
-- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
-- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
-- Found rmw_implementation_cmake: 6.3.0 (/opt/ros/rolling/share/rmw_implementation_cmake/cmake)
-- Found rmw_fastrtps_cpp: 6.3.0 (/opt/ros/rolling/share/rmw_fastrtps_cpp/cmake)
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.2")
-- Found FastRTPS: /opt/ros/rolling/include
-- Using RMW implementation 'rmw_fastrtps_cpp' as default
-- Found nav_msgs: 4.5.0 (/opt/ros/rolling/share/nav_msgs/cmake)
-- Found sensor_msgs: 4.5.0 (/opt/ros/rolling/share/sensor_msgs/cmake)
-- Found tf2: 0.26.1 (/opt/ros/rolling/share/tf2/cmake)
-- Found tf2_ros: 0.26.1 (/opt/ros/rolling/share/tf2_ros/cmake)
-- Found visualization_msgs: 4.5.0 (/opt/ros/rolling/share/visualization_msgs/cmake)
-- Found pluginlib: 5.2.0 (/opt/ros/rolling/share/pluginlib/cmake)
-- Found tf2_geometry_msgs: 0.26.1 (/opt/ros/rolling/share/tf2_geometry_msgs/cmake)
-- Found eigen3_cmake_module: 0.2.0 (/opt/ros/rolling/share/eigen3_cmake_module/cmake)
-- Found Eigen3: TRUE (found version "3.4.0")
-- Ensuring Eigen3 include directory is part of orocos-kdl CMake target
-- Found tf2_sensor_msgs: 0.26.1 (/opt/ros/rolling/share/tf2_sensor_msgs/cmake)
-- Found std_srvs: 4.5.0 (/opt/ros/rolling/share/std_srvs/cmake)
-- Found rosidl_default_generators: 1.3.0 (/opt/ros/rolling/share/rosidl_default_generators/cmake)
-- Found rviz_common: 11.3.0 (/opt/ros/rolling/share/rviz_common/cmake)
-- Setting OGRE_DIR to: '/opt/ros/rolling/share/rviz_ogre_vendor/cmake/../../../opt/rviz_ogre_vendor/lib/OGRE/cmake'
-- Found OGRE
-- static : OFF
-- components : HLMS;MeshLodGenerator;Overlay;Paging;Property;RTShaderSystem;Terrain;Volume
-- plugins : Plugin_BSPSceneManager;Plugin_OctreeSceneManager;Plugin_PCZSceneManager;Plugin_ParticleFX;RenderSystem_GL;RenderSystem_GL3Plus;Codec_STBI
-- media : /opt/ros/rolling/opt/rviz_ogre_vendor/share/OGRE/Media
-- OGRE_LIBRARIES: OgreHLMS;OgreMeshLodGenerator;OgreOverlay;OgrePaging;OgreProperty;OgreRTShaderSystem;OgreTerrain;OgreVolume;OgreMain
-- OGRE_LIBRARY_DIRS: /opt/ros/rolling/opt/rviz_ogre_vendor/lib
-- OGRE_PLUGINS: Plugin_BSPSceneManager;Plugin_OctreeSceneManager;Plugin_PCZSceneManager;Plugin_ParticleFX;RenderSystem_GL;RenderSystem_GL3Plus;Codec_STBI
-- OGRE_PLUGIN_DIR: /opt/ros/rolling/opt/rviz_ogre_vendor/lib/OGRE
-- rviz_ogre_vendor::OgreOverlay for IMPORTED_LOCATION_RELEASE: /opt/ros/rolling/opt/rviz_ogre_vendor/lib/libOgreOverlay.so
-- rviz_ogre_vendor::OgreOverlay for IMPORTED_LOCATION_DEBUG: /opt/ros/rolling/opt/rviz_ogre_vendor/lib/libOgreOverlay.so
-- rviz_ogre_vendor::OgreMain for IMPORTED_LOCATION_RELEASE: /opt/ros/rolling/opt/rviz_ogre_vendor/lib/libOgreMain.so
-- rviz_ogre_vendor::OgreMain for IMPORTED_LOCATION_DEBUG: /opt/ros/rolling/opt/rviz_ogre_vendor/lib/libOgreMain.so
-- Could not find freeimage library
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- rviz_ogre_vendor::RenderSystem_GL for IMPORTED_LOCATION_RELEASE: _render_system_gl_static_library_abs-NOTFOUND
-- rviz_ogre_vendor::RenderSystem_GL for IMPORTED_LOCATION_DEBUG: _render_system_gl_static_library_abs-NOTFOUND
-- library: /usr/lib/x86_64-linux-gnu/libcurl.so
-- Found rviz_default_plugins: 11.3.0 (/opt/ros/rolling/share/rviz_default_plugins/cmake)
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: system serialization filesystem thread
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Found CHOLMOD: /usr/include/suitesparse
-- Found CSparse: /usr/include/suitesparse
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Found Threads: TRUE
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /usr/lib/x86_64-linux-gnu/libblas.so
-- Looking for cheev_
-- Looking for cheev_ - not found
-- Looking for cheev_
-- Looking for cheev_ - not found
-- Looking for cheev_
-- Looking for cheev_ - found
-- Found LAPACK: /usr/lib/x86_64-linux-gnu/liblapack.so;/usr/lib/x86_64-linux-gnu/libblas.so
-- Found required Ceres dependency: Eigen version 3.4.0 in /usr/include/eigen3
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 2.0.0 installed in: /usr with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, Multithreading]
-- Found ament_cmake_ros: 0.11.0 (/opt/ros/rolling/share/ament_cmake_ros/cmake)
-- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
-- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.4", minimum required is "3.6")
-- Found python_cmake_module: 0.10.0 (/opt/ros/rolling/share/python_cmake_module/cmake)
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable version "3.10.4", minimum required is "3.5")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using PYTHON_INCLUDE_DIRS: /usr/include/python3.10
-- Using PYTHON_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Found PythonExtra: .so
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/ws/build/slam_toolbox
[ 1%] Generating C++ code for ROS interfaces
[ 1%] Built target slam_toolbox__cpp
[ 1%] Building CXX object lib/karto_sdk/CMakeFiles/kartoSlamToolbox.dir/src/Karto.cpp.o
[ 2%] Building CXX object lib/karto_sdk/CMakeFiles/kartoSlamToolbox.dir/src/Mapper.cpp.o
[ 3%] Linking CXX shared library libkartoSlamToolbox.so
[ 3%] Built target kartoSlamToolbox
[ 4%] Generating C++ type support for eProsima Fast-RTPS
[ 5%] Generating C++ introspection for ROS interfaces
[ 6%] Generating C code for ROS interfaces
[ 6%] Generating C++ type support dispatch for ROS interfaces
[ 6%] Built target ament_cmake_python_copy_slam_toolbox
[ 7%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/pause__type_support.cpp.o
[ 8%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/pause__type_support.cpp.o
[ 9%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/add_submap__type_support.cpp.o
[ 9%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/pause__type_support.cpp.o
[ 9%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/merge_maps__type_support.cpp.o
[ 9%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/clear_queue__type_support.cpp.o
[ 10%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/clear_queue__type_support.cpp.o
[ 11%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/pause__functions.c.o
[ 12%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/deserialize_pose_graph__type_support.cpp.o
[ 12%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/clear_queue__functions.c.o
[ 13%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/loop_closure__type_support.cpp.o
[ 14%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/toggle_interactive__functions.c.o
[ 15%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/toggle_interactive__type_support.cpp.o
[ 16%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/clear__type_support.cpp.o
[ 17%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/clear__functions.c.o
[ 18%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/save_map__functions.c.o
[ 19%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/serialize_pose_graph__type_support.cpp.o
[ 19%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/clear__type_support.cpp.o
[ 19%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/loop_closure__functions.c.o
[ 20%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/merge_maps__functions.c.o
[ 20%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/loop_closure__type_support.cpp.o
[ 21%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/add_submap__functions.c.o
[ 22%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/save_map__type_support.cpp.o
[ 23%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/save_map__type_support.cpp.o
[ 23%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/deserialize_pose_graph__functions.c.o
[ 24%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/add_submap__type_support.cpp.o
[ 25%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_c.dir/rosidl_generator_c/slam_toolbox/srv/detail/serialize_pose_graph__functions.c.o
[ 25%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/clear__type_support.cpp.o
[ 26%] Linking C shared library libslam_toolbox__rosidl_generator_c.so
[ 26%] Built target slam_toolbox__rosidl_generator_c
[ 27%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/loop_closure__type_support.cpp.o
[ 27%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/deserialize_pose_graph__type_support.cpp.o
[ 28%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/toggle_interactive__type_support.cpp.o
[ 29%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/merge_maps__type_support.cpp.o
[ 30%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/slam_toolbox/srv/clear_queue__type_support.cpp.o
[ 31%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/serialize_pose_graph__type_support.cpp.o
[ 31%] Linking CXX shared library libslam_toolbox__rosidl_typesupport_cpp.so
[ 31%] Built target slam_toolbox__rosidl_typesupport_cpp
[ 32%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/deserialize_pose_graph__type_support.cpp.o
[ 33%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/merge_maps__type_support.cpp.o
[ 34%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/serialize_pose_graph__type_support.cpp.o
[ 35%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/save_map__type_support.cpp.o
[ 35%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/slam_toolbox/srv/detail/add_submap__type_support.cpp.o
[ 36%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/slam_toolbox/srv/detail/dds_fastrtps/toggle_interactive__type_support.cpp.o
[ 36%] Linking CXX shared library libslam_toolbox__rosidl_typesupport_introspection_cpp.so
[ 36%] Built target slam_toolbox__rosidl_typesupport_introspection_cpp
[ 37%] Linking CXX shared library libslam_toolbox__rosidl_typesupport_fastrtps_cpp.so
[ 37%] Built target slam_toolbox__rosidl_typesupport_fastrtps_cpp
[ 38%] Building CXX object CMakeFiles/toolbox_common.dir/src/slam_toolbox_common.cpp.o
[ 40%] Building CXX object CMakeFiles/toolbox_common.dir/src/slam_mapper.cpp.o
[ 40%] Building CXX object CMakeFiles/toolbox_common.dir/src/laser_utils.cpp.o
[ 41%] Building CXX object CMakeFiles/toolbox_common.dir/src/loop_closure_assistant.cpp.o
[ 41%] Building CXX object CMakeFiles/toolbox_common.dir/src/map_saver.cpp.o
[ 42%] Linking CXX shared library libtoolbox_common.so
[ 42%] Built target toolbox_common
[ 43%] Building CXX object CMakeFiles/ceres_solver_plugin.dir/solvers/ceres_solver.cpp.o
[ 44%] Linking CXX shared library libceres_solver_plugin.so
[ 44%] Built target ceres_solver_plugin
[ 44%] Generating rviz_plugin/moc_slam_toolbox_rviz_plugin.cpp
[ 44%] Generating C type support dispatch for ROS interfaces
[ 46%] Building CXX object CMakeFiles/lifelong_slam_toolbox.dir/src/experimental/slam_toolbox_lifelong.cpp.o
[ 46%] Building CXX object CMakeFiles/sync_slam_toolbox.dir/src/slam_toolbox_sync.cpp.o
[ 46%] Building CXX object CMakeFiles/localization_slam_toolbox.dir/src/slam_toolbox_localization.cpp.o
[ 47%] Building CXX object CMakeFiles/merge_maps_kinematic.dir/src/merge_maps_kinematic.cpp.o
[ 48%] Building CXX object CMakeFiles/async_slam_toolbox.dir/src/slam_toolbox_async.cpp.o
[ 50%] Building CXX object CMakeFiles/SlamToolboxPlugin.dir/rviz_plugin/slam_toolbox_rviz_plugin.cpp.o
[ 50%] Building CXX object CMakeFiles/SlamToolboxPlugin.dir/rviz_plugin/moc_slam_toolbox_rviz_plugin.cpp.o
[ 52%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/pause__type_support.cpp.o
[ 52%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/clear_queue__type_support.cpp.o
[ 53%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/toggle_interactive__type_support.cpp.o
[ 53%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/clear__type_support.cpp.o
[ 55%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/loop_closure__type_support.cpp.o
[ 55%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/save_map__type_support.cpp.o
[ 56%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/add_submap__type_support.cpp.o
[ 56%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/merge_maps__type_support.cpp.o
[ 58%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/deserialize_pose_graph__type_support.cpp.o
[ 58%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_c.dir/rosidl_typesupport_c/slam_toolbox/srv/serialize_pose_graph__type_support.cpp.o
[ 58%] Linking CXX shared library libslam_toolbox__rosidl_typesupport_c.so
[ 58%] Built target slam_toolbox__rosidl_typesupport_c
[ 59%] Generating C introspection for ROS interfaces
[ 60%] Generating C type support for eProsima Fast-RTPS
running egg_info
creating slam_toolbox.egg-info
writing slam_toolbox.egg-info/PKG-INFO
writing dependency_links to slam_toolbox.egg-info/dependency_links.txt
writing top-level names to slam_toolbox.egg-info/top_level.txt
writing manifest file 'slam_toolbox.egg-info/SOURCES.txt'
reading manifest file 'slam_toolbox.egg-info/SOURCES.txt'
writing manifest file 'slam_toolbox.egg-info/SOURCES.txt'
[ 60%] Built target ament_cmake_python_build_slam_toolbox_egg
[ 60%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/pause__type_support.c.o
[ 61%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/clear_queue__type_support.c.o
[ 62%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/toggle_interactive__type_support.c.o
[ 62%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/clear__type_support.c.o
[ 63%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/pause__type_support_c.cpp.o
[ 64%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/save_map__type_support.c.o
[ 66%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/merge_maps__type_support.c.o
[ 66%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/loop_closure__type_support.c.o
[ 66%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/add_submap__type_support.c.o
[ 67%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/deserialize_pose_graph__type_support.c.o
[ 68%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/slam_toolbox/srv/detail/serialize_pose_graph__type_support.c.o
[ 68%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/clear_queue__type_support_c.cpp.o
[ 69%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/toggle_interactive__type_support_c.cpp.o
[ 70%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/clear__type_support_c.cpp.o
[ 70%] Linking C shared library libslam_toolbox__rosidl_typesupport_introspection_c.so
[ 70%] Built target slam_toolbox__rosidl_typesupport_introspection_c
[ 71%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/save_map__type_support_c.cpp.o
[ 71%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/loop_closure__type_support_c.cpp.o
[ 72%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/merge_maps__type_support_c.cpp.o
[ 73%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/add_submap__type_support_c.cpp.o
[ 73%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/deserialize_pose_graph__type_support_c.cpp.o
[ 74%] Building CXX object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/slam_toolbox/srv/detail/serialize_pose_graph__type_support_c.cpp.o
[ 75%] Linking CXX shared library libslam_toolbox__rosidl_typesupport_fastrtps_c.so
[ 75%] Built target slam_toolbox__rosidl_typesupport_fastrtps_c
[ 75%] Built target slam_toolbox
[ 75%] Generating Python code for ROS interfaces
[ 75%] Built target slam_toolbox__py
[ 75%] Linking CXX shared library liblifelong_slam_toolbox.so
[ 76%] Linking CXX shared library libasync_slam_toolbox.so
[ 76%] Built target lifelong_slam_toolbox
[ 76%] Built target async_slam_toolbox
[ 77%] Linking CXX shared library libsync_slam_toolbox.so
[ 77%] Built target sync_slam_toolbox
[ 78%] Linking CXX executable merge_maps_kinematic
[ 78%] Built target merge_maps_kinematic
[ 79%] Linking CXX shared library liblocalization_slam_toolbox.so
[ 79%] Linking CXX shared library libSlamToolboxPlugin.so
[ 79%] Built target localization_slam_toolbox
[ 81%] Building CXX object CMakeFiles/sync_slam_toolbox_node.dir/src/slam_toolbox_sync_node.cpp.o
[ 81%] Building CXX object CMakeFiles/async_slam_toolbox_node.dir/src/slam_toolbox_async_node.cpp.o
[ 82%] Building CXX object CMakeFiles/lifelong_slam_toolbox_node.dir/src/experimental/slam_toolbox_lifelong_node.cpp.o
[ 82%] Built target SlamToolboxPlugin
[ 83%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_pause_s.c.o
[ 84%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_toggle_interactive_s.c.o
[ 84%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_clear_queue_s.c.o
[ 85%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_clear_s.c.o
[ 86%] Building CXX object CMakeFiles/localization_slam_toolbox_node.dir/src/slam_toolbox_localization_node.cpp.o
[ 86%] Building CXX object CMakeFiles/map_and_localization_slam_toolbox.dir/src/experimental/slam_toolbox_map_and_localization.cpp.o
[ 87%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_merge_maps_s.c.o
[ 88%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_add_submap_s.c.o
[ 88%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_deserialize_pose_graph_s.c.o
[ 89%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_serialize_pose_graph_s.c.o
[ 90%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_loop_closure_s.c.o
[ 90%] Building C object CMakeFiles/slam_toolbox__rosidl_generator_py.dir/rosidl_generator_py/slam_toolbox/srv/_save_map_s.c.o
[ 91%] Linking C shared library rosidl_generator_py/slam_toolbox/libslam_toolbox__rosidl_generator_py.so
[ 91%] Built target slam_toolbox__rosidl_generator_py
[ 92%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_fastrtps_c__pyext.dir/rosidl_generator_py/slam_toolbox/_slam_toolbox_s.ep.rosidl_typesupport_fastrtps_c.c.o
[ 93%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_introspection_c__pyext.dir/rosidl_generator_py/slam_toolbox/_slam_toolbox_s.ep.rosidl_typesupport_introspection_c.c.o
[ 94%] Linking C shared library rosidl_generator_py/slam_toolbox/slam_toolbox_s__rosidl_typesupport_introspection_c.cpython-310-x86_64-linux-gnu.so
[ 94%] Built target slam_toolbox__rosidl_typesupport_introspection_c__pyext
[ 95%] Building C object CMakeFiles/slam_toolbox__rosidl_typesupport_c__pyext.dir/rosidl_generator_py/slam_toolbox/_slam_toolbox_s.ep.rosidl_typesupport_c.c.o
[ 95%] Linking C shared library rosidl_generator_py/slam_toolbox/slam_toolbox_s__rosidl_typesupport_fastrtps_c.cpython-310-x86_64-linux-gnu.so
[ 95%] Built target slam_toolbox__rosidl_typesupport_fastrtps_c__pyext
[ 96%] Linking C shared library rosidl_generator_py/slam_toolbox/slam_toolbox_s__rosidl_typesupport_c.cpython-310-x86_64-linux-gnu.so
[ 96%] Built target slam_toolbox__rosidl_typesupport_c__pyext
[ 96%] Linking CXX executable async_slam_toolbox_node
[ 96%] Built target async_slam_toolbox_node
[ 97%] Linking CXX executable localization_slam_toolbox_node
[ 97%] Linking CXX executable sync_slam_toolbox_node
[ 97%] Built target localization_slam_toolbox_node
[ 97%] Built target sync_slam_toolbox_node
[ 98%] Linking CXX executable lifelong_slam_toolbox_node
[ 98%] Built target lifelong_slam_toolbox_node
[ 99%] Linking CXX shared library libmap_and_localization_slam_toolbox.so
[ 99%] Built target map_and_localization_slam_toolbox
[100%] Building CXX object CMakeFiles/map_and_localization_slam_toolbox_node.dir/src/experimental/slam_toolbox_map_and_localization_node.cpp.o
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp: In function ‘int main(int, char**)’:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [18])’
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:421:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool)’
421 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:421:3: note: template argument deduction/substitution failed:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: note: candidate expects 4 arguments, 1 provided
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:434:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const string&, const ParameterDescriptor&, bool)’
434 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:434:3: note: template argument deduction/substitution failed:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: note: couldn’t deduce template parameter ‘ParameterT’
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:366:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&, const rclcpp::ParameterValue&, const ParameterDescriptor&, bool)’
366 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:366:3: note: candidate expects 4 arguments, 1 provided
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:391:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&, rclcpp::ParameterType, const ParameterDescriptor&, bool)’
391 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:391:3: note: candidate expects 4 arguments, 1 provided
gmake[2]: *** [CMakeFiles/map_and_localization_slam_toolbox_node.dir/build.make:76: CMakeFiles/map_and_localization_slam_toolbox_node.dir/src/experimental/slam_toolbox_map_and_localization_node.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:990: CMakeFiles/map_and_localization_slam_toolbox_node.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
--- stderr: slam_toolbox
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp: In function ‘int main(int, char**)’:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [18])’
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:421:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool)’
421 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:421:3: note: template argument deduction/substitution failed:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: note: candidate expects 4 arguments, 1 provided
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:434:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const string&, const ParameterDescriptor&, bool)’
434 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:434:3: note: template argument deduction/substitution failed:
/tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:27:33: note: couldn’t deduce template parameter ‘ParameterT’
27 | temp_node->declare_parameter("stack_size_to_use");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/rolling/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_common.hpp:32,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/slam_toolbox_localization.hpp:23,
from /tmp/ws/src/slam_toolbox/include/slam_toolbox/experimental/slam_toolbox_map_and_localization.hpp:21,
from /tmp/ws/src/slam_toolbox/src/experimental/slam_toolbox_map_and_localization_node.cpp:18:
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:366:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&, const rclcpp::ParameterValue&, const ParameterDescriptor&, bool)’
366 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:366:3: note: candidate expects 4 arguments, 1 provided
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:391:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&, rclcpp::ParameterType, const ParameterDescriptor&, bool)’
391 | declare_parameter(
| ^~~~~~~~~~~~~~~~~
/opt/ros/rolling/include/rclcpp/rclcpp/node.hpp:391:3: note: candidate expects 4 arguments, 1 provided
gmake[2]: *** [CMakeFiles/map_and_localization_slam_toolbox_node.dir/build.make:76: CMakeFiles/map_and_localization_slam_toolbox_node.dir/src/experimental/slam_toolbox_map_and_localization_node.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:990: CMakeFiles/map_and_localization_slam_toolbox_node.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< slam_toolbox [5min 44s, exited with code 2]
Required Info:
Steps to reproduce issue
1) run docker image ros:rolling (https://github.com/osrf/docker_images/blob/20d40c96b426b8956dec203e236abff2ec29b188/ros/rolling/ubuntu/jammy/ros-base/Dockerfile) 2) install all dependencies via rosdep 3) run . /opt/ros/rolling/setup.sh && PYTHONIOENCODING=utf_8 PYTHONUNBUFFERED=1 colcon build --event-handlers console_cohesion+
Expected behavior
All packages build successfully
Actual behavior
Build of slam_toolbox fails on the new added slam_toolbox_map_and_localization target stderr:
Additional information
The whole command line output: