-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Code 1&2 gps_cpp.o ? Catkin Build : Ubuntu 20.04 Ros Neotic Mavros install #1938
Comments
I encountered the same error while building during MAVROS source installation. The code I added to GPS2_RAW with id=124 in the common.xml file is as follows:
|
After I did this change I got the following error :
How can I solve it ? |
Try to remove build dir. |
I've got the same issue and a The error message I got |
I think you should recheck your common.xml because the solution provided by bwh1270 cannot be directly copied and pasted. He provided context to facilitate locating and changing the location |
This is only bug and feature tracker, please use it
to report bugs or request features.
Issue details
When trying to install mavros I am having issues with catkin build in the catkin_ws
More specifically the issue is with the mavros_extras package relating to the gps_status.cpp
MAVROS version and platform
Mavros: 1.18.0
ROS: Noetic
Ubuntu: 20.04
Catkin build logs below:
Errors << mavros_extras:make /home/admin/catkin_ws/logs/mavros_extras/build.make.006.log
/home/admin/catkin_ws/src/mavros/mavros_extras/src/plugins/gps_status.cpp: In member function ‘void mavros::extra_plugins::GpsStatusPlugin::handle_gps2_raw(const mavlink_message_t*, mavlink::common::msg::GPS2_RAW&)’:
/home/admin/catkin_ws/src/mavros/mavros_extras/src/plugins/gps_status.cpp:107:40: error: ‘struct mavlink::common::msg::GPS2_RAW’ has no member named ‘alt_ellipsoid’
107 | ros_msg->alt_ellipsoid = mav_msg.alt_ellipsoid;
| ^~~~~~~~~~~~~
/home/admin/catkin_ws/src/mavros/mavros_extras/src/plugins/gps_status.cpp:108:40: error: ‘struct mavlink::common::msg::GPS2_RAW’ has no member named ‘h_acc’
108 | ros_msg->h_acc = mav_msg.h_acc;
| ^~~~~
/home/admin/catkin_ws/src/mavros/mavros_extras/src/plugins/gps_status.cpp:109:40: error: ‘struct mavlink::common::msg::GPS2_RAW’ has no member named ‘v_acc’
109 | ros_msg->v_acc = mav_msg.v_acc;
| ^~~~~
/home/admin/catkin_ws/src/mavros/mavros_extras/src/plugins/gps_status.cpp:110:40: error: ‘struct mavlink::common::msg::GPS2_RAW’ has no member named ‘vel_acc’
110 | ros_msg->vel_acc = mav_msg.vel_acc;
| ^~~~~~~
/home/admin/catkin_ws/src/mavros/mavros_extras/src/plugins/gps_status.cpp:111:40: error: ‘struct mavlink::common::msg::GPS2_RAW’ has no member named ‘hdg_acc’
111 | ros_msg->hdg_acc = mav_msg.hdg_acc;
| ^~~~~~~
make[2]: *** [CMakeFiles/mavros_extras.dir/build.make:232: CMakeFiles/mavros_extras.dir/src/plugins/gps_status.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:735: CMakeFiles/mavros_extras.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /home/admin/catkin_ws/build/mavros_extras; catkin build --get-env mavros_extras | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -
could anyone please help
installation I have followed: https://github.com/mavlink/mavros/tree/master/mavros#installation
The text was updated successfully, but these errors were encountered: