Skip to content
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

Errors from Custom MAVROS Node Install #46

Open
NickFranken opened this issue Jan 28, 2022 · 1 comment
Open

Errors from Custom MAVROS Node Install #46

NickFranken opened this issue Jan 28, 2022 · 1 comment

Comments

@NickFranken
Copy link

Hi,

I've been working to install this repository and everything has gone well up until the point of installing the modified MAVROS node. I've been able to install the RotorS simulation as well as the packages within mav_control_rw and catkin build my workspace with no issues. The MAVROS node is the point where I'm stuck. Currently I've been following the general instructions to install MAVROS (under source installation). In the rosinstall file, I've replaced the default MAVROS repository url with the one pointing to the custom node, and then specified 'master' as the version. Otherwise, I finished following the steps provided and everything ran with no errors. Though, attempting to catkin build my workspace results in the following errors:

Errors     << mavros:make /home/nick/catkin_ws/logs/mavros/build.make.008.log                       
In file included from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:
/home/nick/catkin_ws/devel/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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/nick/catkin_ws/devel/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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:131:23: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/nick/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:34:12: note:   ‘mavlink::minimal::MAV_AUTOPILOT’
 enum class MAV_AUTOPILOT : uint8_t
            ^~~~~~~~~~~~~
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:192:23: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/nick/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note:   ‘mavlink::minimal::MAV_TYPE’
 enum class MAV_TYPE : uint8_t
            ^~~~~~~~
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:243:21: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/nick/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note:   ‘mavlink::minimal::MAV_TYPE’
 enum class MAV_TYPE : uint8_t
            ^~~~~~~~
/home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:244:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:280:23: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/nick/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:139:12: note:   ‘mavlink::minimal::MAV_STATE’
 enum class MAV_STATE : uint8_t
            ^~~~~~~~~
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:584:23: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/nick/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:158:12: note:   ‘mavlink::minimal::MAV_COMPONENT’
 enum class MAV_COMPONENT
            ^~~~~~~~~~~~~
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:28,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/nick/catkin_ws/devel/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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:23,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/nick/catkin_ws/devel/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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:0:
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
/home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp: In constructor ‘mavros::UAS::UAS()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp: At global scope:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp: In member function ‘uint64_t mavros::UAS::get_capabilities()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:104:27: note: suggested alternative: ‘autopilot’
   return get_default_caps(get_autopilot());
                           ^~~~~~~~~~~~~
                           autopilot
/home/nick/catkin_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 /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
/home/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp: In lambda function:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp: In member function ‘void mavros::MavRos::log_connect_change(bool)’:
/home/nick/catkin_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
In file included from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:28,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/home/nick/catkin_ws/devel/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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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);
                  ^~~~~~~~
make[2]: *** [CMakeFiles/mavros.dir/src/lib/uas_data.cpp.o] Error 1
In file included from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:17:0:
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
/home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp: At global scope:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:176:39: error: ‘MAV_TYPE’ is not a member of ‘mavros::UAS’
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:24,
                 from /home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:191:12: note: suggested alternative: ‘autopilot’
  auto ap = get_autopilot();
            ^~~~~~~~~~~~~
            autopilot
/home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:192:6: error: ‘MAV_AUTOPILOT’ has not been declared
  if (MAV_AUTOPILOT::ARDUPILOTMEGA == ap) {
      ^~~~~~~~~~~~~
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp: In member function ‘bool mavros::UAS::cmode_from_str(std::__cxx11::string, uint32_t&)’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:255: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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:24,
                 from /home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:256:12: note: suggested alternative: ‘autopilot’
  auto ap = get_autopilot();
            ^~~~~~~~~~~~~
            autopilot
/home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:257:6: error: ‘MAV_AUTOPILOT’ has not been declared
  if (MAV_AUTOPILOT::ARDUPILOTMEGA == ap) {
      ^~~~~~~~~~~~~
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_stringify.cpp:267:11: error: ‘MAV_AUTOPILOT’ has not been declared
  else if (MAV_AUTOPILOT::PX4 == ap)
           ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/mavros.dir/src/lib/mavros.cpp.o] Error 1
make[2]: *** [CMakeFiles/mavros.dir/src/lib/uas_stringify.cpp.o] Error 1
In file included from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:40: note: suggested alternative:
In file included from /home/nick/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2290:0,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
                 from /home/nick/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
                 from /home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:28,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:
/home/nick/catkin_ws/devel/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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29:0,
                 from /home/nick/catkin_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:0:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/src/lib/uas_timesync.cpp:17:0:
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:371:42: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
                                          ^~~~~~~~~~~~~
                                          autopilot
/home/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/nick/catkin_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/nick/catkin_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/nick/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:378:32: note: suggested alternative: ‘autopilot’
   return MAV_AUTOPILOT::PX4 == get_autopilot();
                                ^~~~~~~~~~~~~
                                autopilot
make[2]: *** [CMakeFiles/mavros.dir/src/lib/uas_timesync.cpp.o] Error 1
make[1]: *** [CMakeFiles/mavros.dir/all] Error 2
make: *** [all] Error 2
cd /home/nick/catkin_ws/build/mavros; catkin build --get-env mavros | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

I'm not sure if this is the correct way to go about installing the custom node, and I'm also not sure where to go from here.

Thank you for any help,
Nick

@Mercurialzz
Copy link

Have you solved this problem?I met the same problem too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants