ethz-asl / mav_active_3d_planning

Modular framework for online informative path planning.
BSD 3-Clause "New" or "Revised" License
552 stars 110 forks source link

[BUILD FAILS] Error while building MAVROS, probably a version mismatch #44

Closed adbidwai closed 2 years ago

adbidwai commented 2 years ago

System Configuration Ubuntu 18.04 with ROS Melodic

I have followed all the steps in the README but MAVROS fails to build.

Error:

Errors     << mavros:make /home/adbidwai/a3dp_ws/logs/mavros/build.make.006.log                     
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: note: suggested alternative: ‘AIS_TYPE’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
                                        AIS_TYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: note: suggested alternative: ‘MAV_FRAME’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
                                        MAV_FRAME
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: note: suggested alternative: ‘MAV_MODE’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
                                        MAV_MODE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:114:18: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
 mavlink::common::MAV_TYPE mav_type_from_str(const std::string &mav_type);
                  ^~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: note: suggested alternative: ‘AIS_TYPE’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
                                        AIS_TYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: note: suggested alternative: ‘MAV_FRAME’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
                                        MAV_FRAME
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: note: suggested alternative: ‘MAV_MODE’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
                                        MAV_MODE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:114:18: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
 mavlink::common::MAV_TYPE mav_type_from_str(const std::string &mav_type);
                  ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:24:24: error: ‘mavlink::common::MAV_AUTOPILOT’ has not been declared
 using mavlink::common::MAV_AUTOPILOT;
                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:25:24: error: ‘mavlink::common::MAV_TYPE’ has not been declared
 using mavlink::common::MAV_TYPE;
                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:26:24: error: ‘mavlink::common::MAV_STATE’ has not been declared
 using mavlink::common::MAV_STATE;
                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:27:24: error: ‘mavlink::common::MAV_COMPONENT’ has not been declared
 using mavlink::common::MAV_COMPONENT;
                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:131:23: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(MAV_AUTOPILOT e)
                       ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:80:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::LANDING_TARGET_TYPE)’
 std::string to_string(mavlink::common::LANDING_TARGET_TYPE e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:131:23: error: ‘MAV_AUTOPILOT’ was not declared in this scope
 std::string to_string(MAV_AUTOPILOT e)
                       ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:131:23: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:192:23: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(MAV_TYPE e)
                       ^~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:80:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::LANDING_TARGET_TYPE)’
 std::string to_string(mavlink::common::LANDING_TARGET_TYPE e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:192:23: error: ‘MAV_TYPE’ was not declared in this scope
 std::string to_string(MAV_TYPE e)
                       ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:192:23: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note:   ‘mavlink::minimal::MAV_TYPE’
 enum class MAV_TYPE : uint8_t
            ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:243:21: error: ‘MAV_TYPE’ was not declared in this scope
 std::string to_name(MAV_TYPE e)
                     ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:243:21: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note:   ‘mavlink::minimal::MAV_TYPE’
 enum class MAV_TYPE : uint8_t
            ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:244:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:280:23: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(MAV_STATE e)
                       ^~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:80:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::LANDING_TARGET_TYPE)’
 std::string to_string(mavlink::common::LANDING_TARGET_TYPE e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:280:23: error: ‘MAV_STATE’ was not declared in this scope
 std::string to_string(MAV_STATE e)
                       ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:280:23: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:140:12: note:   ‘mavlink::minimal::MAV_STATE’
 enum class MAV_STATE : uint8_t
            ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:584:23: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(MAV_COMPONENT e)
                       ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:431:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::GPS_FIX_TYPE)’
 std::string to_string(GPS_FIX_TYPE e)
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:584:23: error: ‘MAV_COMPONENT’ was not declared in this scope
 std::string to_string(MAV_COMPONENT e)
                       ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:584:23: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:159:12: note:   ‘mavlink::minimal::MAV_COMPONENT’
 enum class MAV_COMPONENT
            ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:608:1: error: ‘MAV_TYPE’ does not name a type; did you mean ‘LC_CTYPE’?
 MAV_TYPE mav_type_from_str(const std::string &mav_type)
 ^~~~~~~~
 LC_CTYPE
make[2]: *** [CMakeFiles/mavros.dir/src/lib/enum_to_string.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/mavros.dir/src/lib/enum_sensor_orientation.cpp.o] Error 1
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:28,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: note: suggested alternative: ‘AIS_TYPE’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
                                        AIS_TYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: note: suggested alternative: ‘MAV_FRAME’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
                                        MAV_FRAME
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: note: suggested alternative: ‘MAV_MODE’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
                                        MAV_MODE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:114:18: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
 mavlink::common::MAV_TYPE mav_type_from_str(const std::string &mav_type);
                  ^~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:28,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: note: suggested alternative: ‘AIS_TYPE’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
                                        AIS_TYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: note: suggested alternative: ‘MAV_FRAME’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
                                        MAV_FRAME
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: note: suggested alternative: ‘MAV_MODE’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
                                        MAV_MODE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:114:18: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
 mavlink::common::MAV_TYPE mav_type_from_str(const std::string &mav_type);
                  ^~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:73:36: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_TYPE = mavlink::common::MAV_TYPE;
                                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:74:41: error: ‘MAV_AUTOPILOT’ in namespace ‘mavlink::common’ does not name a type
  using MAV_AUTOPILOT = mavlink::common::MAV_AUTOPILOT;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:75:41: error: ‘MAV_MODE_FLAG’ in namespace ‘mavlink::common’ does not name a type
  using MAV_MODE_FLAG = mavlink::common::MAV_MODE_FLAG;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:76:37: error: ‘MAV_STATE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_STATE = mavlink::common::MAV_STATE;
                                     ^~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:28,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: note: suggested alternative: ‘AIS_TYPE’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
                                        AIS_TYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: note: suggested alternative: ‘MAV_FRAME’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
                                        MAV_FRAME
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: note: suggested alternative: ‘MAV_MODE’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
                                        MAV_MODE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:114:18: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
 mavlink::common::MAV_TYPE mav_type_from_str(const std::string &mav_type);
                  ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:119:9: error: ‘MAV_TYPE’ does not name a type; did you mean ‘LC_CTYPE’?
  inline MAV_TYPE get_type() {
         ^~~~~~~~
         LC_CTYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:127:9: error: ‘MAV_AUTOPILOT’ does not name a type
  inline MAV_AUTOPILOT get_autopilot() {
         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:139:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::SAFETY_ARMED);
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:147:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::HIL_ENABLED);
                                         ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::PX4 == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:73:36: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_TYPE = mavlink::common::MAV_TYPE;
                                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:74:41: error: ‘MAV_AUTOPILOT’ in namespace ‘mavlink::common’ does not name a type
  using MAV_AUTOPILOT = mavlink::common::MAV_AUTOPILOT;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:75:41: error: ‘MAV_MODE_FLAG’ in namespace ‘mavlink::common’ does not name a type
  using MAV_MODE_FLAG = mavlink::common::MAV_MODE_FLAG;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:76:37: error: ‘MAV_STATE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_STATE = mavlink::common::MAV_STATE;
                                     ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:119:9: error: ‘MAV_TYPE’ does not name a type; did you mean ‘LC_CTYPE’?
  inline MAV_TYPE get_type() {
         ^~~~~~~~
         LC_CTYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:127:9: error: ‘MAV_AUTOPILOT’ does not name a type
  inline MAV_AUTOPILOT get_autopilot() {
         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:139:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::SAFETY_ARMED);
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:147:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::HIL_ENABLED);
                                         ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::PX4 == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp: In constructor ‘mavros::UAS::UAS()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:26:18: error: ‘MAV_TYPE’ has not been declared
  type(enum_value(MAV_TYPE::GENERIC)),
                  ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:27:23: error: ‘MAV_AUTOPILOT’ has not been declared
  autopilot(enum_value(MAV_AUTOPILOT::GENERIC)),
                       ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp: At global scope:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:176:39: warning: inline variables are only available with -std=c++1z or -std=gnu++1z
 static inline bool is_apm_copter(UAS::MAV_TYPE type)
                                       ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:176:39: error: ‘MAV_TYPE’ is not a member of ‘mavros::UAS’
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp: In member function ‘std::__cxx11::string mavros::UAS::str_mode_v10(uint8_t, uint32_t)’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:187:31: error: ‘MAV_MODE_FLAG’ has not been declared
  if (!(base_mode & enum_value(MAV_MODE_FLAG::CUSTOM_MODE_ENABLED)))
                               ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:190:14: error: ‘get_type’ was not declared in this scope
  auto type = get_type();
              ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:190:14: note: suggested alternative:
In file included from /usr/include/boost/parameter/parameters.hpp:44:0,
                 from /usr/include/boost/parameter.hpp:11,
                 from /usr/include/boost/signals2/signal_type.hpp:32,
                 from /usr/include/boost/signals2.hpp:20,
                 from /opt/ros/melodic/include/tf2/buffer_core.h:37,
                 from /opt/ros/melodic/include/tf2_ros/buffer_interface.h:35,
                 from /opt/ros/melodic/include/tf2_ros/buffer.h:35,
                 from /opt/ros/melodic/include/tf2_ros/transform_listener.h:40,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:24,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/usr/include/boost/parameter/aux_/unwrap_cv_reference.hpp:50:8: note:   ‘boost::parameter::aux::get_type’
 struct get_type
        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:191:12: error: ‘get_autopilot’ was not declared in this scope
  auto ap = get_autopilot();
            ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp: At global scope:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:91:39: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavros::UAS’
 static uint64_t get_default_caps(UAS::MAV_AUTOPILOT ap_type)
                                       ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp: In member function ‘uint64_t mavros::UAS::get_capabilities()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:104:27: error: ‘get_autopilot’ was not declared in this scope
   return get_default_caps(get_autopilot());
                           ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:191:12: note: suggested alternative: ‘autopilot’
  auto ap = get_autopilot();
            ^~~~~~~~~~~~~
            autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:192:6: error: ‘MAV_AUTOPILOT’ has not been declared
  if (MAV_AUTOPILOT::ARDUPILOTMEGA == ap) {
      ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:193:25: error: ‘is_apm_copter’ cannot be used as a function
   if (is_apm_copter(type))
                         ^
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:195:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::FIXED_WING)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:197:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::GROUND_ROVER)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:199:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::SURFACE_BOAT)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:201:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::SUBMARINE)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:208:11: error: ‘MAV_AUTOPILOT’ has not been declared
  else if (MAV_AUTOPILOT::PX4 == ap)
           ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp: In member function ‘bool mavros::UAS::cmode_from_str(std::__cxx11::string, uint32_t&)’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:255:14: error: ‘get_type’ was not declared in this scope
  auto type = get_type();
              ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:255:14: note: suggested alternative:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:104:27: note: suggested alternative: ‘autopilot’
   return get_default_caps(get_autopilot());
                           ^~~~~~~~~~~~~
                           autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_data.cpp:104:42: error: ‘get_default_caps’ cannot be used as a function
   return get_default_caps(get_autopilot());
                                          ^
In file included from /usr/include/boost/parameter/parameters.hpp:44:0,
                 from /usr/include/boost/parameter.hpp:11,
                 from /usr/include/boost/signals2/signal_type.hpp:32,
                 from /usr/include/boost/signals2.hpp:20,
                 from /opt/ros/melodic/include/tf2/buffer_core.h:37,
                 from /opt/ros/melodic/include/tf2_ros/buffer_interface.h:35,
                 from /opt/ros/melodic/include/tf2_ros/buffer.h:35,
                 from /opt/ros/melodic/include/tf2_ros/transform_listener.h:40,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:24,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/usr/include/boost/parameter/aux_/unwrap_cv_reference.hpp:50:8: note:   ‘boost::parameter::aux::get_type’
 struct get_type
        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:256:12: error: ‘get_autopilot’ was not declared in this scope
  auto ap = get_autopilot();
            ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:256:12: note: suggested alternative: ‘autopilot’
  auto ap = get_autopilot();
            ^~~~~~~~~~~~~
            autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:257:6: error: ‘MAV_AUTOPILOT’ has not been declared
  if (MAV_AUTOPILOT::ARDUPILOTMEGA == ap) {
      ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:258:25: error: ‘is_apm_copter’ cannot be used as a function
   if (is_apm_copter(type))
                         ^
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:260:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::FIXED_WING)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:262:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::GROUND_ROVER)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:264:20: error: ‘MAV_TYPE’ has not been declared
   else if (type == MAV_TYPE::SUBMARINE)
                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:267:11: error: ‘MAV_AUTOPILOT’ has not been declared
  else if (MAV_AUTOPILOT::PX4 == ap)
           ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:73:36: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_TYPE = mavlink::common::MAV_TYPE;
                                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:74:41: error: ‘MAV_AUTOPILOT’ in namespace ‘mavlink::common’ does not name a type
  using MAV_AUTOPILOT = mavlink::common::MAV_AUTOPILOT;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:75:41: error: ‘MAV_MODE_FLAG’ in namespace ‘mavlink::common’ does not name a type
  using MAV_MODE_FLAG = mavlink::common::MAV_MODE_FLAG;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:76:37: error: ‘MAV_STATE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_STATE = mavlink::common::MAV_STATE;
                                     ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:119:9: error: ‘MAV_TYPE’ does not name a type; did you mean ‘LC_CTYPE’?
  inline MAV_TYPE get_type() {
         ^~~~~~~~
         LC_CTYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:127:9: error: ‘MAV_AUTOPILOT’ does not name a type
  inline MAV_AUTOPILOT get_autopilot() {
         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:139:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::SAFETY_ARMED);
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:147:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::HIL_ENABLED);
                                         ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:0:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::PX4 == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_AUTOPILOT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /opt/ros/melodic/include/mavlink/v2.0/common/common.hpp:2312:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/adbidwai/a3dp_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros.h:23,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/opt/ros/melodic/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:71:40: note: suggested alternative: ‘AIS_TYPE’
 std::string to_string(mavlink::common::MAV_TYPE e);
                                        ^~~~~~~~
                                        AIS_TYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:72:40: note: suggested alternative: ‘MAV_FRAME’
 std::string to_string(mavlink::common::MAV_STATE e);
                                        ^~~~~~~~~
                                        MAV_FRAME
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘std::__cxx11::string mavros::utils::to_string’ redeclared as different kind of symbol
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:68:13: note: previous declaration ‘std::__cxx11::string mavros::utils::to_string(mavlink::common::MAV_SENSOR_ORIENTATION)’
 std::string to_string(mavlink::common::MAV_SENSOR_ORIENTATION e);
             ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:73:40: note: suggested alternative: ‘MAV_MODE’
 std::string to_string(mavlink::common::MAV_COMPONENT e);
                                        ^~~~~~~~~~~~~
                                        MAV_MODE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/utils.h:114:18: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
 mavlink::common::MAV_TYPE mav_type_from_str(const std::string &mav_type);
                  ^~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:73:36: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_TYPE = mavlink::common::MAV_TYPE;
                                    ^~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:74:41: error: ‘MAV_AUTOPILOT’ in namespace ‘mavlink::common’ does not name a type
  using MAV_AUTOPILOT = mavlink::common::MAV_AUTOPILOT;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:75:41: error: ‘MAV_MODE_FLAG’ in namespace ‘mavlink::common’ does not name a type
  using MAV_MODE_FLAG = mavlink::common::MAV_MODE_FLAG;
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:76:37: error: ‘MAV_STATE’ in namespace ‘mavlink::common’ does not name a type
  using MAV_STATE = mavlink::common::MAV_STATE;
                                     ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:119:9: error: ‘MAV_TYPE’ does not name a type; did you mean ‘LC_CTYPE’?
  inline MAV_TYPE get_type() {
         ^~~~~~~~
         LC_CTYPE
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:127:9: error: ‘MAV_AUTOPILOT’ does not name a type
  inline MAV_AUTOPILOT get_autopilot() {
         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:139:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::SAFETY_ARMED);
                                         ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:147:41: error: ‘MAV_MODE_FLAG’ has not been declared
   return base_mode_ & utils::enum_value(MAV_MODE_FLAG::HIL_ENABLED);
                                         ^~~~~~~~~~~~~
In file included from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25:0,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:10: error: ‘MAV_AUTOPILOT’ has not been declared
   return MAV_AUTOPILOT::PX4 == get_autopilot();
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: error: ‘get_autopilot’ was not declared in this scope
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp: In lambda function:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:147:68: error: ‘mavlink::common::msg::HEARTBEAT’ has not been declared
    if (this->gcs_quiet_mode && msg->msgid != mavlink::common::msg::HEARTBEAT::MSG_ID &&
                                                                    ^~~~~~~~~
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp: In member function ‘void mavros::MavRos::log_connect_change(bool)’:
/home/adbidwai/a3dp_ws/src/mavros/mavros/src/lib/mavros.cpp:371:37: error: ‘class mavros::UAS’ has no member named ‘get_autopilot’; did you mean ‘autopilot’?
  auto ap = utils::to_string(mav_uas.get_autopilot());
                                     ^~~~~~~~~~~~~
                                     autopilot
make[2]: *** [CMakeFiles/mavros.dir/src/lib/uas_stringify.cpp.o] Error 1
make[2]: *** [CMakeFiles/mavros.dir/src/lib/uas_timesync.cpp.o] Error 1
make[2]: *** [CMakeFiles/mavros.dir/src/lib/uas_data.cpp.o] Error 1
make[2]: *** [CMakeFiles/mavros.dir/src/lib/mavros.cpp.o] Error 1
make[1]: *** [CMakeFiles/mavros.dir/all] Error 2
make: *** [all] Error 2
cd /home/adbidwai/a3dp_ws/build/mavros; catkin build --get-env mavros | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
....................................................................................................
Failed     << mavros:make                                          [ Exited with code 2 ]           
Failed    <<< mavros                                               [ 11.2 seconds ]                 
Abandoned <<< rotors_gazebo_plugins                                [ Unrelated job failed ]         
Abandoned <<< rotors_gazebo                                        [ Unrelated job failed ]         
Abandoned <<< voxblox_rviz_plugin                                  [ Unrelated job failed ]         
Abandoned <<< voxblox_ros                                          [ Unrelated job failed ]         
Abandoned <<< active_3d_planning_voxblox                           [ Unrelated job failed ]         
Abandoned <<< active_3d_planning_app_reconstruction                [ Unrelated job failed ]         
____________________________________________________________________________________________________
Warnings   << voxblox:make /home/adbidwai/a3dp_ws/logs/voxblox/build.make.002.log                   
/home/adbidwai/a3dp_ws/build/voxblox/compiled_proto/voxblox/Layer.pb.cc: In member function ‘virtual google::protobuf::uint8* voxblox::LayerProto::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8*) const’:
/home/adbidwai/a3dp_ws/build/voxblox/compiled_proto/voxblox/Layer.pb.cc:298:10: warning: unused parameter ‘deterministic’ [-Wunused-parameter]
     bool deterministic, ::google::protobuf::uint8* target) const {
          ^~~~~~~~~~~~~
/home/adbidwai/a3dp_ws/build/voxblox/compiled_proto/voxblox/Block.pb.cc: In member function ‘virtual google::protobuf::uint8* voxblox::BlockProto::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8*) const’:
/home/adbidwai/a3dp_ws/build/voxblox/compiled_proto/voxblox/Block.pb.cc:404:10: warning: unused parameter ‘deterministic’ [-Wunused-parameter]
     bool deterministic, ::google::protobuf::uint8* target) const {
          ^~~~~~~~~~~~~
cd /home/adbidwai/a3dp_ws/build/voxblox; catkin build --get-env voxblox | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
....................................................................................................
Finished  <<< voxblox                                              [ 17.4 seconds ]                 
[build] Summary: 30 of 37 packages succeeded.                                                       
[build]   Ignored:   17 packages were skipped or are blacklisted.                                   
[build]   Warnings:  1 packages succeeded with warnings.                                            
[build]   Abandoned: 6 packages were abandoned.                                                     
[build]   Failed:    1 packages failed.                                                             
[build] Runtime: 20.6 seconds total.            
Jaeyoung-Lim commented 2 years ago

@adbidwai The default mavros branch is not for ROS1, therefore you need to switch to a ROS1 release. (e.g. v1.9.0)

You can still build the package without building the whole workspace, which does not depend on mavros

catkin build -j$(nproc) -l$(nproc) mav_active_3d_planning
Schmluk commented 2 years ago

Closed due to inactivity.

GAEUNYIM commented 1 year ago

Hello!

I have the same issue with @adbidwai. Actually I am using ROS1. Can you please give me an advice to successfully build this package in this case?

Best regards,

Jaeyoung-Lim commented 1 year ago

@GAEUNYIM If you have the same problem, it means it is probably not related to this package at all, since it is a build problem with mavros.

If you still can't solve the problem, please post a new issue with more information about your system, logs that show the failure