Error during setup tutorial, unable to build gazebo_ros package: ‘ClockQoS’ is not a member of ‘rclcpp’; did you mean ‘Clock’?
I was following the setup guide https://classic.gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros.
On step 7. of the Installing from source section, the build failed for the package, gazeboros. The build output was the following:
Starting >>> gazebodev
Starting >>> gazebomsgs
Finished <<< gazebodev [3.68s]
[Processing: gazebomsgs]
[Processing: gazebomsgs]
[Processing: gazebomsgs]
Finished <<< gazebomsgs [1min 51s]
Starting >>> gazeboros
[Processing: gazeboros]
[Processing: gazeboros]
--- stderr: gazeboros
/home/user/ws/src/gazeborospkgs/gazeboros/src/gazeborosinit.cpp: In member function ‘virtual void gazeboros::GazeboRosInit::Load(int, char*)’:
/home/user/ws/src/gazeborospkgs/gazeboros/src/gazeboros_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/gazeborosinit.dir/build.make:63: CMakeFiles/gazeborosinit.dir/src/gazeborosinit.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:332: CMakeFiles/gazeborosinit.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: gazeboros 1 package had stderr output: gazeboros 2 packages not processed
Asked by rmsimoes on 2023-07-07 05:43:46 UTC
Comments