Closed bekirbostanci closed 2 years ago
Hello I wanted to compile the package but I got the error as below. What could have caused the error ?
Finished <<< turtlebot3 [0.39s] --- stderr: nav2_gradient_costmap_plugin /home/ieu/ros2_ws/src/navigation2_tutorials/nav2_gradient_costmap_plugin/src/gradient_layer.cpp: In member function ‘virtual void nav2_gradient_costmap_plugin::GradientLayer::onInitialize()’: /home/ieu/ros2_ws/src/navigation2_tutorials/nav2_gradient_costmap_plugin/src/gradient_layer.cpp:70:21: error: ‘using SharedPtr = class std::shared_ptr<rclcpp_lifecycle::LifecycleNode>’ {aka ‘class std::shared_ptr<rclcpp_lifecycle::LifecycleNode>’} has no member named ‘lock’ 70 | auto node = node_.lock(); | ^~~~ make[2]: *** [CMakeFiles/nav2_gradient_costmap_plugin_core.dir/build.make:63: CMakeFiles/nav2_gradient_costmap_plugin_core.dir/src/gradient_layer.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/nav2_gradient_costmap_plugin_core.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 --- Failed <<< nav2_gradient_costmap_plugin [4.81s, exited with code 2] Aborted <<< nav2_straightline_planner [5.00s] Aborted <<< nav2_sms_recovery [5.30s]
Hello I wanted to compile the package but I got the error as below. What could have caused the error ?