weixin_39845461
2020-12-26 17:31 阅读 42

catkin build error: mavros:make

Hello,I followed the instruction in the readme ,but I have ROS Molodic on inubuntu 18.04,I got this error and can't slove it. Any suggestions on how to solve this one? thanks a lot.

Errors << mavros:make /home/luxy/catkin_ws/logs/mavros/build.make.002.log
In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/setpoint_accel.cpp:20:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:171:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_WRENCH_TARGET_BODY_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope sp.force_x = force.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin::set_tilt_angle_target(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:194:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ROTOR_TILT_TARGET sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope sp.alpha[i] = alpha[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:198:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin::set_tiltrotor_actuator_commands(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:212:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_TILTROTOR_ACTUATOR_COMMANDS sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:214:4: error: ‘sp’ was not declared in this scope sp.u_tiltangles[i] = u[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope sp.u_rotors[i] = static_cast(u[i+6]); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:219:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:235:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ATTITUDE_THRUST_VECTOR_TARGET_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope sp.acc_x = linear_acceleration.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:264:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ALLOCATION_MATRIX sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:266:4: error: ‘sp’ was not declared in this scope sp.allocation_matrix[i] = allocation_matrix(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:269:4: error: ‘sp’ was not declared in this scope sp.tilt_angles[i] = tilt_angles(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:271:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/setpoint_velocity.cpp:19:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:171:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_WRENCH_TARGET_BODY_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope sp.force_x = force.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin::set_tilt_angle_target(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:194:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ROTOR_TILT_TARGET sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope sp.alpha[i] = alpha[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:198:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin::set_tiltrotor_actuator_commands(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:212:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_TILTROTOR_ACTUATOR_COMMANDS sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:214:4: error: ‘sp’ was not declared in this scope sp.u_tiltangles[i] = u[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope sp.u_rotors[i] = static_cast(u[i+6]); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:219:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:235:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ATTITUDE_THRUST_VECTOR_TARGET_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope sp.acc_x = linear_acceleration.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:264:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ALLOCATION_MATRIX sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:266:4: error: ‘sp’ was not declared in this scope sp.allocation_matrix[i] = allocation_matrix(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:269:4: error: ‘sp’ was not declared in this scope sp.tilt_angles[i] = tilt_angles(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:271:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/setpoint_raw.cpp:18:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:171:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_WRENCH_TARGET_BODY_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope sp.force_x = force.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin::set_tilt_angle_target(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:194:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ROTOR_TILT_TARGET sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope sp.alpha[i] = alpha[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:198:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin::set_tiltrotor_actuator_commands(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:212:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_TILTROTOR_ACTUATOR_COMMANDS sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:214:4: error: ‘sp’ was not declared in this scope sp.u_tiltangles[i] = u[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope sp.u_rotors[i] = static_cast(u[i+6]); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:219:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:332:72: error: ‘mavlink::omav’ has not been declared void handle_dynamixel(const mavlink::mavlink_message_t msg, mavlink::omav::msg::DYNAMIXEL_STATUS &dyn_s) ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:332:100: error: expected ‘,’ or ‘...’ before ‘&’ token void handle_dynamixel(const mavlink::mavlink_message_t msg, mavlink::omav::msg::DYNAMIXEL_STATUS &dyn_s) ^ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:235:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ATTITUDE_THRUST_VECTOR_TARGET_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope sp.acc_x = linear_acceleration.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:264:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ALLOCATION_MATRIX sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:266:4: error: ‘sp’ was not declared in this scope sp.allocation_matrix[i] = allocation_matrix(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp: In member function ‘virtual mavros::plugin::PluginBase::Subscriptions mavros::std_plugins::IMUPlugin::get_subscriptions()’: /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:110:52: error: no matching function for call to ‘mavros::std_plugins::IMUPlugin::make_handler(void (mavros::std_plugins::IMUPlugin::)(const mavlink_message_t, int))’ make_handler(&IMUPlugin::handle_dynamixel), ^ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:19:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:88:14: note: candidate: template mavros::plugin::PluginBase::HandlerInfo mavros::plugin::PluginBase::make_handler(mavlink::msgid_t, void (C::)(const mavlink_message_t, mavconn::Framing)) HandlerInfo make_handler(const mavlink::msgid_t id, void (_C::fn)(const mavlink::mavlink_message_t msg, const mavconn::Framing framing)) { ^~~~~~~~~~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:88:14: note: template argument deduction/substitution failed: /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:110:52: note: candidate expects 2 arguments, 1 provided make_handler(&IMUPlugin::handle_dynamixel), ^ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:19:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:101:14: note: candidate: template mavros::plugin::PluginBase::HandlerInfo mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) HandlerInfo make_handler(void (_C::fn)(const mavlink::mavlink_message_t, _T&)) { ^~~~~~~~~~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/mavros_plugin.h:101:14: note: template argument deduction/substitution failed: /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:110:52: note: mismatched types ‘_T&’ and ‘int’ make_handler(&IMUPlugin::handle_dynamixel), ^ /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:111:3: error: could not convert ‘{mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) with _C = mavros::std_plugins::IMUPlugin; _T = mavlink::common::msg::ATTITUDE; mavros::plugin::PluginBase::HandlerInfo = std::tuple >; mavlink::mavlink_message_t = mavlink::__mavlink_message, mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) with _C = mavros::std_plugins::IMUPlugin; _T = mavlink::common::msg::ATTITUDE_QUATERNION; mavros::plugin::PluginBase::HandlerInfo = std::tuple >; mavlink::mavlink_message_t = mavlink::__mavlink_message, mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) with _C = mavros::std_plugins::IMUPlugin; _T = mavlink::common::msg::HIGHRES_IMU; mavros::plugin::PluginBase::HandlerInfo = std::tuple >; mavlink::mavlink_message_t = mavlink::__mavlink_message, mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) with _C = mavros::std_plugins::IMUPlugin; _T = mavlink::common::msg::RAW_IMU; mavros::plugin::PluginBase::HandlerInfo = std::tuple >; mavlink::mavlink_message_t = mavlink::__mavlink_message, mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) with _C = mavros::std_plugins::IMUPlugin; _T = mavlink::common::msg::SCALED_IMU; mavros::plugin::PluginBase::HandlerInfo = std::tuple >; mavlink::mavlink_message_t = mavlink::__mavlink_message, mavros::plugin::PluginBase::make_handler(void (_C::)(const mavlink_message_t, _T&)) with _C = mavros::std_plugins::IMUPlugin; _T = mavlink::common::msg::SCALED_PRESSURE; mavros::plugin::PluginBase::HandlerInfo = std::tuple >; mavlink::mavlink_message_t = mavlink::__mavlink_message, }’ from ‘’ to ‘mavros::plugin::PluginBase::Subscriptions {aka std::vector<:tuple int const char long unsigned std::function mavlink::__mavlink_message mavconn::framing> > >}’ }; ^ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:269:4: error: ‘sp’ was not declared in this scope sp.tilt_angles[i] = tilt_angles(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:271:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas</:tuple>)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp: In member function ‘void mavros::std_plugins::IMUPlugin::handle_dynamixel(const mavlink_message_t, int)’: /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:335:61: error: ‘dyn_s’ was not declared in this scope dynamixel_status->header.stamp = m_uas->synchronise_stamp(dyn_s.time_boot_us); ^~~~~ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/setpoint_position.cpp:18:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:171:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_WRENCH_TARGET_BODY_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope sp.force_x = force.x(); ^~ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/setpoint_trajectory.cpp:18:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:171:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_WRENCH_TARGET_BODY_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope sp.force_x = force.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin::set_tilt_angle_target(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:194:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ROTOR_TILT_TARGET sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin::set_tilt_angle_target(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:194:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ROTOR_TILT_TARGET sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope sp.alpha[i] = alpha[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope sp.alpha[i] = alpha[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:198:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:198:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin::set_tiltrotor_actuator_commands(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:212:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_TILTROTOR_ACTUATOR_COMMANDS sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:214:4: error: ‘sp’ was not declared in this scope sp.u_tiltangles[i] = u[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin::set_tiltrotor_actuator_commands(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:212:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_TILTROTOR_ACTUATOR_COMMANDS sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:214:4: error: ‘sp’ was not declared in this scope sp.u_tiltangles[i] = u[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope sp.u_rotors[i] = static_cast(u[i+6]); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope sp.u_rotors[i] = static_cast(u[i+6]); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:219:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:219:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:235:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ATTITUDE_THRUST_VECTOR_TARGET_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope sp.acc_x = linear_acceleration.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:235:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ATTITUDE_THRUST_VECTOR_TARGET_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope sp.acc_x = linear_acceleration.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:264:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ALLOCATION_MATRIX sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:266:4: error: ‘sp’ was not declared in this scope sp.allocation_matrix[i] = allocation_matrix(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:264:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ALLOCATION_MATRIX sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:266:4: error: ‘sp’ was not declared in this scope sp.allocation_matrix[i] = allocation_matrix(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:269:4: error: ‘sp’ was not declared in this scope sp.tilt_angles[i] = tilt_angles(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:271:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:269:4: error: ‘sp’ was not declared in this scope sp.tilt_angles[i] = tilt_angles(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:271:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ In file included from /home/luxy/catkin_ws/src/mavros/mavros/src/plugins/setpoint_attitude.cpp:19:0: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:171:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_WRENCH_TARGET_BODY_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope sp.force_x = force.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin::set_tilt_angle_target(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:194:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ROTOR_TILT_TARGET sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope sp.alpha[i] = alpha[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:198:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin::set_tiltrotor_actuator_commands(float)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:212:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_TILTROTOR_ACTUATOR_COMMANDS sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:214:4: error: ‘sp’ was not declared in this scope sp.u_tiltangles[i] = u[i]; ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope sp.u_rotors[i] = static_cast(u[i+6]); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:219:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:235:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ATTITUDE_THRUST_VECTOR_TARGET_NED sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope sp.acc_x = linear_acceleration.x(); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’: /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:264:12: error: ‘mavlink::omav’ has not been declared mavlink::omav::msg::SET_ALLOCATION_MATRIX sp; ^~~~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:266:4: error: ‘sp’ was not declared in this scope sp.allocation_matrix[i] = allocation_matrix(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:269:4: error: ‘sp’ was not declared in this scope sp.tilt_angles[i] = tilt_angles(i); ^~ /home/luxy/catkin_ws/src/mavros/mavros/include/mavros/setpoint_mixin.h:271:45: error: ‘sp’ was not declared in this scope UAS_FCU(m_uas_)->send_message_ignore_drop(sp); ^~ make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_velocity.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_accel.cpp.o] Error 1 make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/imu.cpp.o] Error 1 make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_trajectory.cpp.o] Error 1 make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_raw.cpp.o] Error 1 make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_position.cpp.o] Error 1 make[2]: [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_attitude.cpp.o] Error 1 make[1]: [CMakeFiles/mavros_plugins.dir/all] Error 2 make: * [all] Error 2 cd /home/luxy/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 [ 10.8 seconds ]
Abandoned <<< mavros_extras [ Unrelated job failed ]
Abandoned <<< rotors_gazebo_plugins [ Unrelated job failed ]
Abandoned <<< rotors_gazebo [ Unrelated job failed ]
Abandoned <<< rotors_hil_interface [ Unrelated job failed ]
Abandoned <<< test_mavros [ Unrelated job failed ]
[build] Summary: 13 of 19 packages succeeded.
[build] Ignored: 2 packages were skipped or are blacklisted.
[build] Warnings: None.
[build] Abandoned: 5 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 13.9 seconds total.

该提问来源于开源项目:ethz-asl/rotors_simulator

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

5条回答 默认 最新

  • weixin_39626180 weixin_39626180 2020-12-26 17:31

    I have the same problem, but I use kinetic, have you already solved it?

    点赞 评论 复制链接分享
  • weixin_39827315 weixin_39827315 2020-12-26 17:31

    I have the same issue with Ubuntu 18.04 and ROS 'melodic'. ~/catkin_ws/src/mavros/mavros/src/plugins/imu.cpp:335:61: error: 'dyn_s' was not declared in this scope

    点赞 评论 复制链接分享
  • weixin_39827315 weixin_39827315 2020-12-26 17:31

    The issue mentioned above was solved using "BebopS", the link is https://github.com/gsilano/BebopS

    点赞 评论 复制链接分享
  • weixin_39890289 weixin_39890289 2020-12-26 17:31

    The issue mentioned above was solved using "BebopS", the link is https://github.com/gsilano/BebopS

    have you installed beboops sucessful on ubuntu18.04?I always got error like following when catkin build : Failed << bebop_driver:make [ Exited with code 2 ]
    Failed <<< bebop_driver [ 17.0 seconds ]
    Abandoned <<< bebop_tools [ Unrelated job failed ]
    [build] Summary: 3 of 5 packages succeeded.
    [build] Ignored: 1 packages were skipped or are blacklisted.
    [build] Warnings: 1 packages succeeded with warnings.
    [build] Abandoned: 1 packages were abandoned.
    [build] Failed: 1 packages failed.
    [build] Runtime: 28.1 seconds total.
    [build] Note: Workspace packages have changed, please re-source setup files to use them.

    Please ! Help!

    点赞 评论 复制链接分享
  • weixin_39988677 weixin_39988677 2020-12-26 17:31

    The first issue should be fixed by #636, you'll need to remove your local clone of mavros and install the official mavros instead:

    sudo apt-get install ros-kinetic-mavros

    or for melodic:

    sudo apt-get install ros-melodic-mavros

    点赞 评论 复制链接分享

相关推荐