mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
902 stars 993 forks source link

setpoint_mixin.h gives mavlink::omav not declared #1458

Open devrajPriyadarshi opened 4 years ago

devrajPriyadarshi commented 4 years ago

This is only bug and feature tracker, please use it to report bugs or request features.


Issue details

while using catkin build on mavros, setpoint_mixin.h file gives a mavlink::omav was not declared in this scope.

MAVROS version and platform

Mavros: ?0.18.4? ROS: ?Kinetic? Ubuntu: ?16.04?

Node logs

--------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/kinetic
Workspace:                   /home/devraj/wspace
--------------------------------------------------------
Build Space:        [exists] /home/devraj/wspace/build
Devel Space:        [exists] /home/devraj/wspace/devel
Install Space:      [unused] /home/devraj/wspace/install
Log Space:          [exists] /home/devraj/wspace/logs
Source Space:       [exists] /home/devraj/wspace/src
DESTDIR:            [unused] None
--------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
--------------------------------------------------------
Workspace configuration appears valid.
--------------------------------------------------------
[build] Found '11' packages in 0.0 seconds.                                                                   
[build] Package table is up to date.                                                                          
Starting  >>> mav_msgs                                                                                        
Starting  >>> mav_state_machine_msgs                                                                          
Starting  >>> mav_system_msgs                                                                                 
Starting  >>> mavlink                                                                                         
Starting  >>> mavros_msgs                                                                                     
Finished  <<< mav_state_machine_msgs                [ 0.4 seconds ]                                           
Finished  <<< mav_system_msgs                       [ 0.4 seconds ]                                           
Finished  <<< mav_msgs                              [ 0.5 seconds ]                                           
Starting  >>> mav_planning_msgs                                                                               
Finished  <<< mavlink                               [ 1.0 seconds ]                                           
Starting  >>> libmavconn                                                                                      
Finished  <<< mavros_msgs                           [ 1.1 seconds ]                                           
Finished  <<< libmavconn                            [ 0.2 seconds ]                                           
Starting  >>> mavros                                                                                          
Finished  <<< mav_planning_msgs                     [ 0.3 seconds ]                                           
______________________________________________________________________________________________________________
Errors     << mavros:make /home/devraj/wspace/logs/mavros/build.make.006.log                                  
In file included from /home/devraj/wspace/src/mavros/mavros/src/plugins/setpoint_accel.cpp:20:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin<D>::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope
   sp.force_x = force.x();
   ^
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin<D>::set_tilt_angle_target(float*)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope
    sp.alpha[i] = alpha[i];
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin<D>::set_tiltrotor_actuator_commands(float*)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope
    sp.u_rotors[i] = static_cast<int>(u[i+6]);
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin<D>::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin<D>::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/src/plugins/setpoint_raw.cpp:18:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin<D>::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope
   sp.force_x = force.x();
   ^
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin<D>::set_tilt_angle_target(float*)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope
    sp.alpha[i] = alpha[i];
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin<D>::set_tiltrotor_actuator_commands(float*)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope
    sp.u_rotors[i] = static_cast<int>(u[i+6]);
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin<D>::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin<D>::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/src/plugins/setpoint_position.cpp:18:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin<D>::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope
   sp.force_x = force.x();
   ^
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin<D>::set_tilt_angle_target(float*)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope
    sp.alpha[i] = alpha[i];
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin<D>::set_tiltrotor_actuator_commands(float*)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope
    sp.u_rotors[i] = static_cast<int>(u[i+6]);
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin<D>::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:236:3: error: ‘sp’ was not declared in this scope
   sp.acc_x = linear_acceleration.x();
   ^
In file included from /home/devraj/wspace/src/mavros/mavros/src/plugins/setpoint_trajectory.cpp:18:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin<D>::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope
   sp.force_x = force.x();
   ^
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin<D>::set_tilt_angle_target(float*)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope
    sp.alpha[i] = alpha[i];
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin<D>::set_tiltrotor_actuator_commands(float*)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope
    sp.u_rotors[i] = static_cast<int>(u[i+6]);
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin<D>::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin<D>::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’:
/home/devraj/wspace/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/devraj/wspace/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);
    ^
In file included from /home/devraj/wspace/src/mavros/mavros/src/plugins/setpoint_velocity.cpp:19:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin<D>::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope
   sp.force_x = force.x();
   ^
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin<D>::set_tilt_angle_target(float*)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope
    sp.alpha[i] = alpha[i];
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin<D>::set_tiltrotor_actuator_commands(float*)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope
    sp.u_rotors[i] = static_cast<int>(u[i+6]);
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin<D>::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin<D>::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin<D>::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/src/plugins/setpoint_attitude.cpp:19:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetWrenchTargetMixin<D>::set_wrench_target(Eigen::Vector3d, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:173:3: error: ‘sp’ was not declared in this scope
   sp.force_x = force.x();
   ^
/home/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltAngleTargetMixin<D>::set_tilt_angle_target(float*)’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:196:4: error: ‘sp’ was not declared in this scope
    sp.alpha[i] = alpha[i];
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetTiltrotorActuatorCommandsMixin<D>::set_tiltrotor_actuator_commands(float*)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h:217:4: error: ‘sp’ was not declared in this scope
    sp.u_rotors[i] = static_cast<int>(u[i+6]);
    ^
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAttitudeThrustTargetMixin<D>::set_attitude_thrust_target(Eigen::Vector3d, Eigen::Vector3d, Eigen::Quaterniond, Eigen::Vector3d)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/include/mavros/setpoint_mixin.h: In member function ‘void mavros::plugin::SetAllocationMatrixMixin<D>::set_allocation_matrix(Eigen::VectorXd, Eigen::VectorXd)’:
/home/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/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/devraj/wspace/src/mavros/mavros/src/plugins/imu.cpp: In member function ‘virtual mavros::plugin::PluginBase::Subscriptions mavros::std_plugins::IMUPlugin::get_subscriptions()’:
/home/devraj/wspace/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/devraj/wspace/src/mavros/mavros/src/plugins/imu.cpp:19:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/mavros_plugin.h:88:14: note: candidate: template<class _C> 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/devraj/wspace/src/mavros/mavros/include/mavros/mavros_plugin.h:88:14: note:   template argument deduction/substitution failed:
/home/devraj/wspace/src/mavros/mavros/src/plugins/imu.cpp:110:52: note:   cannot convert ‘&mavros::std_plugins::IMUPlugin::handle_dynamixel’ (type ‘void (mavros::std_plugins::IMUPlugin::*)(const mavlink_message_t*, int) {aka void (mavros::std_plugins::IMUPlugin::*)(const mavlink::__mavlink_message*, int)}’) to type ‘mavlink::msgid_t {aka unsigned int}’
           make_handler(&IMUPlugin::handle_dynamixel),
                                                    ^
In file included from /home/devraj/wspace/src/mavros/mavros/src/plugins/imu.cpp:19:0:
/home/devraj/wspace/src/mavros/mavros/include/mavros/mavros_plugin.h:101:14: note: candidate: template<class _C, class _T> 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/devraj/wspace/src/mavros/mavros/include/mavros/mavros_plugin.h:101:14: note:   template argument deduction/substitution failed:
/home/devraj/wspace/src/mavros/mavros/src/plugins/imu.cpp:110:52: note:   mismatched types ‘_T&’ and ‘int’
           make_handler(&IMUPlugin::handle_dynamixel),
                                                    ^
/home/devraj/wspace/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<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> >; mavlink::mavlink_message_t = mavlink::__mavlink_message](&mavros::std_plugins::IMUPlugin::handle_attitude), 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<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> >; mavlink::mavlink_message_t = mavlink::__mavlink_message](&mavros::std_plugins::IMUPlugin::handle_attitude_quaternion), 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<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> >; mavlink::mavlink_message_t = mavlink::__mavlink_message](&mavros::std_plugins::IMUPlugin::handle_highres_imu), 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<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> >; mavlink::mavlink_message_t = mavlink::__mavlink_message](&mavros::std_plugins::IMUPlugin::handle_raw_imu), 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<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> >; mavlink::mavlink_message_t = mavlink::__mavlink_message](&mavros::std_plugins::IMUPlugin::handle_scaled_imu), 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<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> >; mavlink::mavlink_message_t = mavlink::__mavlink_message](&mavros::std_plugins::IMUPlugin::handle_scaled_pressure), <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘mavros::plugin::PluginBase::Subscriptions {aka std::vector<std::tuple<unsigned int, const char*, long unsigned int, std::function<void(const mavlink::__mavlink_message*, mavconn::Framing)> > >}’
   };
   ^
/home/devraj/wspace/src/mavros/mavros/src/plugins/imu.cpp: In member function ‘void mavros::std_plugins::IMUPlugin::handle_dynamixel(const mavlink_message_t*, int)’:
/home/devraj/wspace/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);
                                                             ^
make[2]: *** [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_accel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_velocity.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/imu.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/devraj/wspace/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                                [ 13.2 seconds ]                                          
Abandoned <<< mavros_extras                         [ Unrelated job failed ]                                  
Abandoned <<< test_mavros                           [ Unrelated job failed ]                                  
[build] Summary: 7 of 10 packages succeeded.                                                                  
[build]   Ignored:   1 packages were skipped or are blacklisted.                                              
[build]   Warnings:  None.                                                                                    
[build]   Abandoned: 2 packages were abandoned.                                                               
[build]   Failed:    1 packages failed.                                                                       
[build] Runtime: 14.6 seconds total.

/*

Diagnostics

place here result of:
rostopic echo -n1 /diagnostics

Check ID

rosrun mavros checkid

*/

vooon commented 4 years ago

From error i see that you have slightly modified version of mavros. Original file have nothing with ::omav: https://github.com/mavlink/mavros/blob/master/mavros/include/mavros/setpoint_mixin.h

Also looks like you have custom dialect, so you'll have to check your deps. And please contact authors of changes.