Error during setup tutorial, unable to build gazebo_ros package: ‘ClockQoS’ is not a member of ‘rclcpp’; did you mean ‘Clock’?

asked 2023-07-07 05:43:46 -0600

I was following the setup guide https://classic.gazebosim.org/tutoria.... On step 7. of the Installing from source section, the build failed for the package, gazebo_ros. The build output was the following: Starting >>> gazebo_dev Starting >>> gazebo_msgs Finished <<< gazebo_dev [3.68s]
[Processing: gazebo_msgs]
[Processing: gazebo_msgs]
[Processing: gazebo_msgs]
Finished <<< gazebo_msgs [1min 51s]
Starting >>> gazebo_ros [Processing: gazebo_ros]
[Processing: gazebo_ros]
--- stderr: gazebo_ros
/home/user/ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_init.cpp: In member function ‘virtual void gazebo_ros::GazeboRosInit::Load(int, char)’: /home/user/ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_init.cpp:165:13: error: ‘ClockQoS’ is not a member of ‘rclcpp’; did you mean ‘Clock’? 165 | rclcpp::ClockQoS()); | ^~~~~~~~ | Clock At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’ make[2]: [CMakeFiles/gazebo_ros_init.dir/build.make:63: CMakeFiles/gazebo_ros_init.dir/src/gazebo_ros_init.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:332: CMakeFiles/gazebo_ros_init.dir/all] Error 2 make[1]: * Waiting for unfinished jobs....

make: * [Makefile:141: all] Error 2

Failed <<< gazebo_ros [1min 5s, exited with code 2]

Summary: 2 packages finished [2min 57s] 1 package failed: gazebo_ros 1 package had stderr output: gazebo_ros 2 packages not processed

edit retag flag offensive close merge delete