root@tomoyafujita-B760M-Pro-RS-D4:~/ros2_ws/nav2_ws# colcon build --symlink-install
...
Finished <<< nav2_waypoint_follower [1min 7s]
Finished <<< nav2_planner [1min 12s]
Finished <<< nav2_behaviors [1min 15s]
--- stderr: nav2_smoother
/root/ros2_ws/nav2_ws/src/navigation2/nav2_smoother/test/test_smoother_server.cpp:95:43: error: template-id ‘createUniqueInstance<>’ for ‘pluginlib::UniquePtr<nav2_core::Smoother> pluginlib::ClassLoader<nav2_core::Smoother>::createUniqueInstance(const std::string&)’ does not match any template declaration
95 | pluginlib::UniquePtr<nav2_core::Smoother> pluginlib::ClassLoader<nav2_core::Smoother>::
| ^~~~~~~~~
/root/ros2_ws/nav2_ws/src/navigation2/nav2_smoother/test/test_smoother_server.cpp:95:43: note: saw 1 ‘template<>’, need 2 for specializing a member function template
In file included from /root/ros2_ws/nav2_ws/src/navigation2/nav2_core/include/nav2_core/smoother.hpp:26,
from /root/ros2_ws/nav2_ws/src/navigation2/nav2_smoother/test/test_smoother_server.cpp:25:
/root/ros2_ws/colcon_ws/install/pluginlib/include/pluginlib/pluginlib/class_loader.hpp:112:16: note: candidate is: ‘template<class ... Args, typename std::enable_if<is_interface_constructible_v<nav2_core::Smoother, Args ...>, bool>::type <anonymous> > pluginlib::UniquePtr<T> pluginlib::ClassLoader<T>::createUniqueInstance(const std::string&, Args&& ...) [with Args = {Args ...}; typename std::enable_if<is_interface_constructible_v<T, Args ...>, bool>::type <anonymous> = <anonymous>; T = nav2_core::Smoother]’
112 | UniquePtr<T> createUniqueInstance(const std::string & lookup_name, Args && ... args);
| ^~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [test/CMakeFiles/test_smoother_server.dir/build.make:76: test/CMakeFiles/test_smoother_server.dir/test_smoother_server.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:341: test/CMakeFiles/test_smoother_server.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< nav2_smoother [1min 16s, exited with code 2]
Aborted <<< dwb_plugins [25.2s]
Aborted <<< nav2_controller [1min 39s]
Aborted <<< dwb_critics [58.2s]
Aborted <<< nav2_route [1min 59s]
Aborted <<< nav2_collision_monitor [2min 0s]
Aborted <<< nav2_mppi_controller [2min 1s]
Aborted <<< nav2_smac_planner [2min 4s]
Summary: 31 packages finished [4min 31s]
1 package failed: nav2_smoother
7 packages aborted: dwb_critics dwb_plugins nav2_collision_monitor nav2_controller nav2_mppi_controller nav2_route nav2_smac_planner
3 packages had stderr output: nav2_loopback_sim nav2_simple_commander nav2_smoother
10 packages not processed
full source build succeeds.
failed.
Bug report
Required Info:
Linux tomoyafujita-B760M-Pro-RS-D4 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/LinuxSteps to reproduce issue
https://docs.nav2.org/development_guides/build_docs/index.html#build
Expected behavior
full source build succeeds.
Actual behavior
failed.
Reproduction instructions
Additional information