question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nav2_util build error in ros2 tutorial

See original GitHub issue

ros2 tutorial error

colcon build --symlink-install

— stderr: nav2_util
~/turtlebot3_ws/src/navigation2/navigation2/nav2_util/src/node_utils.cpp: In function ‘rclcpp::Node::SharedPtr nav2_util::generate_internal_node(const string&)’: ~/turtlebot3_ws/src/navigation2/navigation2/nav2_util/src/node_utils.cpp:68:11: error: ‘NodeOptions’ is not a member of ‘rclcpp’ rclcpp::NodeOptions options; ^~~~~~~~~~~ ~/turtlebot3_ws/src/navigation2/navigation2/nav2_util/src/node_utils.cpp:68:11: note: suggested alternative: ‘InitOptions’ rclcpp::NodeOptions options; ^~~~~~~~~~~ InitOptions ~/turtlebot3_ws/src/navigation2/navigation2/nav2_util/src/node_utils.cpp:69:3: error: ‘options’ was not declared in this scope options.use_global_arguments(false); ^~~~~~~ make[2]: *** [CMakeFiles/nav2_util_core.dir/src/node_utils.cpp.o] Error 1 make[1]: *** [CMakeFiles/nav2_util_core.dir/all] Error 2 make: *** [all] Error 2

I don’t know if I need to install a dependency, the error don’t mention it

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eavelardevcommented, Mar 13, 2019

With the master branch nav2_util was compiled well, but now I get another error:

~/turtlebot3_ws/src/gazebo/camera_info_manager/image_transport/test/test_remapping.cpp:32:5: required from here /usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to ‘rclcpp::Node::Node(const char [11], const char [10], std::shared_ptrrclcpp::contexts::default_context::DefaultContext&, std::vector<std::__cxx11::basic_string<char> >&, std::vectorrclcpp::Parameter&)’ { ::new((void *)__p) _Up(std::forward<_Args>(__args)…); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ~/ros2_ws/install/rclcpp/include/rclcpp/executors/single_threaded_executor.hpp:28:0, from ~/ros2_ws/install/rclcpp/include/rclcpp/executors.hpp:22, from ~/ros2_ws/install/rclcpp/include/rclcpp/rclcpp.hpp:144, from ~/turtlebot3_ws/src/gazebo/camera_info_manager/image_transport/test/test_remapping.cpp:7: ~/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:604:3: note: candidate: rclcpp::Node::Node(const rclcpp::Node&, const string&) Node( ^~~~ ~/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:604:3: note: candidate expects 2 arguments, 5 provided ~/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:90:12: note: candidate: rclcpp::Node::Node(const string&, const string&, const rclcpp::NodeOptions&) explicit Node( ^~~~ ~/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:90:12: note: candidate expects 3 arguments, 5 provided ~/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:79:12: note: candidate: rclcpp::Node::Node(const string&, const rclcpp::NodeOptions&) explicit Node( ^~~~ ~/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:79:12: note: candidate expects 2 arguments, 5 provided make[2]: *** [CMakeFiles/image_transport-remapping.dir/test/test_remapping.cpp.o] Error 1 make[1]: *** [CMakeFiles/image_transport-remapping.dir/all] Error 2 make: *** [all] Error 2

Failed <<< image_transport [ Exited with code 2 ]

Maybe not all packages are updated to rclcpp changes

1reaction
routifulcommented, Mar 13, 2019

ros2.repos has release-latest tag don’t support NodeOptions. Please use master branch

https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colcon build failed to build nav2_util - ROS Answers
Hi, I am running on Ubuntu 20.04 ROS Foxy. Following the instruction on navigation tutorial (https://navigation.ros.org/build_inst.
Read more >
ROS2 Galactic - RoboStack
ros-galactic-ecl-errors, ❌. ros-galactic-ecl-exceptions ... ros-galactic-example-interfaces, ✓, 0.9.2 ... ros-galactic-irobot-create-ignition-bringup, ❌.
Read more >
Bridging ROS and ROS2 - Allison Thackston
ROS2 uses a different build system than ROS, so you'll need to change the ... Example: Original ROS Service. bool isActive --- int32...
Read more >
How to create a ROS2 Workspace [UPDATED] - YouTube
In this video, you will learn how to create a simple ROS2 workspace.COMMANDS TO USE:* mkdir -p my_ros2_ws/src* colcon build * source ...
Read more >
Newest 'ros2' Questions - Stack Overflow
Error running Plansys2 with Nav2 following the PlanSys2 tutorials - Ros2 Foxy ... Colcon build error in px4_ros_com package for ros2 humble on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found