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

catkin build error << mavros:make /home/huanyu/catkin_ws/logs/mavros/build.make.001.log #1483

Closed
huanyu-zhao opened this issue Sep 11, 2020 · 3 comments

Comments

@huanyu-zhao
Copy link

huanyu-zhao commented Sep 11, 2020

I just installed mavlink/mavros. After i finished the steps 1-5 according the official tutorial, I catkin build, then it occured an error.

Issue details

Please describe the problem, or desired feature
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_AUTOPILOT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_TYPE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note: ‘mavlink::minimal::MAV_TYPE’
enum class MAV_TYPE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_STATE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:137:12: note: ‘mavlink::minimal::MAV_STATE’
enum class MAV_STATE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_COMPONENT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:156:12: note: ‘mavlink::minimal::MAV_COMPONENT’
enum class MAV_COMPONENT
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/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/huanyu/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/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:131:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:192:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:243:21: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:244:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:280:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:137:12: note: ‘mavlink::minimal::MAV_STATE’
enum class MAV_STATE : uint8_t
^
/home/huanyu/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/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:584:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:19:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:156:12: note: ‘mavlink::minimal::MAV_COMPONENT’
enum class MAV_COMPONENT
^
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_to_string.cpp:608:1: error: ‘MAV_TYPE’ does not name a type
MAV_TYPE mav_type_from_str(const std::string &mav_type)
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_AUTOPILOT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_TYPE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note: ‘mavlink::minimal::MAV_TYPE’
enum class MAV_TYPE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_STATE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:137:12: note: ‘mavlink::minimal::MAV_STATE’
enum class MAV_STATE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_COMPONENT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:22,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:156:12: note: ‘mavlink::minimal::MAV_COMPONENT’
enum class MAV_COMPONENT
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/enum_sensor_orientation.cpp:17:0:
/home/huanyu/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/enum_to_string.cpp.o] Error 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [CMakeFiles/mavros.dir/src/lib/enum_sensor_orientation.cpp.o] Error 1
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_AUTOPILOT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:23,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_TYPE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:23,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note: ‘mavlink::minimal::MAV_TYPE’
enum class MAV_TYPE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_STATE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:23,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:137:12: note: ‘mavlink::minimal::MAV_STATE’
enum class MAV_STATE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_COMPONENT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:23,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:156:12: note: ‘mavlink::minimal::MAV_COMPONENT’
enum class MAV_COMPONENT
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:70:36: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
using MAV_TYPE = mavlink::common::MAV_TYPE;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:71:41: error: ‘MAV_AUTOPILOT’ in namespace ‘mavlink::common’ does not name a type
using MAV_AUTOPILOT = mavlink::common::MAV_AUTOPILOT;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:72:41: error: ‘MAV_MODE_FLAG’ in namespace ‘mavlink::common’ does not name a type
using MAV_MODE_FLAG = mavlink::common::MAV_MODE_FLAG;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:73:37: error: ‘MAV_STATE’ in namespace ‘mavlink::common’ does not name a type
using MAV_STATE = mavlink::common::MAV_STATE;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:123:9: error: ‘MAV_TYPE’ does not name a type
inline MAV_TYPE get_type() {
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:131:9: error: ‘MAV_AUTOPILOT’ does not name a type
inline MAV_AUTOPILOT get_autopilot() {
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:143:41: error: ‘MAV_MODE_FLAG’ has not been declared
return base_mode
& utils::enum_value(MAV_MODE_FLAG::SAFETY_ARMED);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:151: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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:25:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros.h:24,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:15:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:411:10: error: ‘MAV_AUTOPILOT’ has not been declared
return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:411:56: error: ‘get_autopilot’ was not declared in this scope
return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:418:10: error: ‘MAV_AUTOPILOT’ has not been declared
return MAV_AUTOPILOT::PX4 == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:418:46: error: ‘get_autopilot’ was not declared in this scope
return MAV_AUTOPILOT::PX4 == get_autopilot();
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_AUTOPILOT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:70:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: error: ‘MAV_TYPE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_TYPE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:71:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:62:12: note: ‘mavlink::minimal::MAV_TYPE’
enum class MAV_TYPE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: error: ‘MAV_STATE’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_STATE e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:72:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:137:12: note: ‘mavlink::minimal::MAV_STATE’
enum class MAV_STATE : uint8_t
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: error: ‘MAV_COMPONENT’ is not a member of ‘mavlink::common’
std::string to_string(mavlink::common::MAV_COMPONENT e);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/utils.h:73:23: note: suggested alternative:
In file included from /home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/common.hpp:2254:0,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26,
from /home/huanyu/catkin_ws/src/mavros/libmavconn/include/mavconn/interface.h:37,
from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:29,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/catkin_ws/devel/include/mavlink/v2.0/common/../minimal/minimal.hpp:156:12: note: ‘mavlink::minimal::MAV_COMPONENT’
enum class MAV_COMPONENT
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:30:0,
from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp: In lambda function:
/home/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp: In member function ‘void mavros::MavRos::log_connect_change(bool)’:
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/mavros.cpp:371:37: error: ‘class mavros::UAS’ has no member named ‘get_autopilot’
auto ap = utils::to_string(mav_uas.get_autopilot());
^
In file included from /home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:0:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:70:36: error: ‘MAV_TYPE’ in namespace ‘mavlink::common’ does not name a type
using MAV_TYPE = mavlink::common::MAV_TYPE;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:71:41: error: ‘MAV_AUTOPILOT’ in namespace ‘mavlink::common’ does not name a type
using MAV_AUTOPILOT = mavlink::common::MAV_AUTOPILOT;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:72:41: error: ‘MAV_MODE_FLAG’ in namespace ‘mavlink::common’ does not name a type
using MAV_MODE_FLAG = mavlink::common::MAV_MODE_FLAG;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:73:37: error: ‘MAV_STATE’ in namespace ‘mavlink::common’ does not name a type
using MAV_STATE = mavlink::common::MAV_STATE;
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:123:9: error: ‘MAV_TYPE’ does not name a type
inline MAV_TYPE get_type() {
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:131:9: error: ‘MAV_AUTOPILOT’ does not name a type
inline MAV_AUTOPILOT get_autopilot() {
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_armed()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:143:41: error: ‘MAV_MODE_FLAG’ has not been declared
return base_mode
& utils::enum_value(MAV_MODE_FLAG::SAFETY_ARMED);
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::get_hil_state()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:151: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/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:17:0:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_ardupilotmega()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:411:10: error: ‘MAV_AUTOPILOT’ has not been declared
return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:411:56: error: ‘get_autopilot’ was not declared in this scope
return MAV_AUTOPILOT::ARDUPILOTMEGA == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h: In member function ‘bool mavros::UAS::is_px4()’:
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:418:10: error: ‘MAV_AUTOPILOT’ has not been declared
return MAV_AUTOPILOT::PX4 == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/include/mavros/mavros_uas.h:418:46: error: ‘get_autopilot’ was not declared in this scope
return MAV_AUTOPILOT::PX4 == get_autopilot();
^
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp: In constructor ‘mavros::UAS::UAS()’:
/home/huanyu/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/huanyu/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/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp: At global scope:
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:91:34: error: ‘MAV_AUTOPILOT’ is not a member of ‘mavros::UAS’
static uint64_t get_default_caps(UAS::MAV_AUTOPILOT ap_type)
^
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:92:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp: In member function ‘uint64_t mavros::UAS::get_capabilities()’:
/home/huanyu/catkin_ws/src/mavros/mavros/src/lib/uas_data.cpp:104:41: error: ‘get_autopilot’ was not declared in this scope
return get_default_caps(get_autopilot());
^
/home/huanyu/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());
^
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/huanyu/catkin_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 [ 15.7 seconds ]
Abandoned <<< mavros_extras [ Unrelated job failed ]
Abandoned <<< test_mavros [ Unrelated job failed ]
[build] Summary: 3 of 6 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: 2 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 19.6 seconds total.

MAVROS version and platform

ROS: Kinetic
Ubuntu: 16.04

@vooon
Copy link
Member

vooon commented Sep 11, 2020

Duplicates: mavlink/mavlink#1474
Need to change namespaces. Mavlink become incompatible.

@Coderx7
Copy link

Coderx7 commented May 25, 2021

I'm facing the very same error. but I believe I'm using the latest version. should I be using 1.4 exclusively for kinetic ?

Update:
It seems the 1.4.0 works just fine. and I was able to build it without any issues.
Here's how its done :

git clone https://github.com/mavlink/mavros.git
cd mavros
git checkout 1.4.0
cd ../../
catkin build

@vooon
Copy link
Member

vooon commented May 25, 2021

@Coderx7 1.6 should work for Kinetic.

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

No branches or pull requests

3 participants