turtlebot / turtlebot4

Turtlebot4 common packages.
Apache License 2.0
100 stars 45 forks source link

turtlebot4_node build failed #71

Closed lenaNzrva closed 1 year ago

lenaNzrva commented 1 year ago

I want to install packages for turtlebot4 in my environment. I'm using this tutorial: https://turtlebot.github.io/turtlebot4-user-manual/software/turtlebot4_packages.html During building with colcon build --symlink-install I have this result:

Starting >>> irobot_create_msgs Starting >>> irobot_create_toolbox Starting >>> irobot_create_description Starting >>> irobot_create_control Starting >>> irobot_create_ignition_plugins Starting >>> turtlebot4_msgs Starting >>> turtlebot4_navigation Finished <<< irobot_create_description [0.70s] Starting >>> turtlebot4_description Finished <<< irobot_create_control [0.72s] Finished <<< irobot_create_toolbox [1.37s] Finished <<< turtlebot4_description [0.80s] Finished <<< turtlebot4_navigation [1.62s] Finished <<< irobot_create_ignition_plugins [1.68s] Finished <<< turtlebot4_msgs [1.76s] Finished <<< irobot_create_msgs [4.67s] Starting >>> irobot_create_nodes Starting >>> irobot_create_gazebo_plugins Starting >>> irobot_create_ignition_toolbox Starting >>> turtlebot4_node Finished <<< irobot_create_ignition_toolbox [3.28s] Finished <<< irobot_create_nodes [3.62s] Starting >>> irobot_create_common_bringup Finished <<< irobot_create_common_bringup [0.65s] Starting >>> irobot_create_ignition_bringup --- stderr: turtlebot4_node /usr/bin/ld: libturtlebot4_node_lib.a(turtlebot4.cpp.o): in function rclcpp_action::Client<irobot_create_msgs::action::DockServo>::Client(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeGraphInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeLoggingInterface>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rcl_action_client_options_t const&)': turtlebot4.cpp:(.text._ZN13rclcpp_action6ClientIN18irobot_create_msgs6action9DockServoEEC2ESt10shared_ptrIN6rclcpp15node_interfaces17NodeBaseInterfaceEES5_INS7_18NodeGraphInterfaceEES5_INS7_20NodeLoggingInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK27rcl_action_client_options_t[_ZN13rclcpp_action6ClientIN18irobot_create_msgs6action9DockServoEEC5ESt10shared_ptrIN6rclcpp15node_interfaces17NodeBaseInterfaceEES5_INS7_18NodeGraphInterfaceEES5_INS7_20NodeLoggingInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK27rcl_action_client_options_t]+0x3b): undefined reference torosidl_action_type_support_t const* rosidl_typesupport_cpp::get_action_type_support_handle()' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/turtlebot4_node.dir/build.make:170: turtlebot4_node] Error 1 make[1]: [CMakeFiles/Makefile2:80: CMakeFiles/turtlebot4_node.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Failed <<< turtlebot4_node [4.40s, exited with code 2] Aborted <<< irobot_create_gazebo_plugins [4.52s] Aborted <<< irobot_create_ignition_bringup [0.71s]

Summary: 11 packages finished [10.0s] 1 package failed: turtlebot4_node 2 packages aborted: irobot_create_gazebo_plugins irobot_create_ignition_bringup 1 package had stderr output: turtlebot4_node 3 packages not processed

lenaNzrva commented 1 year ago

Oh, I forgot to switch to ros galactic branch

After this: vcs import src < src/turtlebot4/dependencies.repos Do this:

cd src/create3_sim/
git checkout galactic
cd ../irobot_create_msgs/
git checkout galactic

And then I build