mavlink / mavros

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

Errror compiling mavros - mavlink issue #1093

Closed FaboNo closed 6 years ago

FaboNo commented 6 years ago

Dear All

I tried to run a program with Gazebo using mavros_msgs::PositionTarget with local frame set to mavros_msgs::PositionTarget::FRAME_LOCAL_NED and I get a lot of messages

WARN [mc_pos_control_tests] Unknown velocity offboard coordinate frame

So I was thinking that I need to update the version of Mavros because perhaps updates have been done with frame naming...

and I am not able to compile because I have this error :

/home/fabrice/catkin_demo_ws/src/mavros/mavros/src/plugins/sys_status.cpp: In member function ‘virtual void mavros::std_plugins::SystemStatusDiag::run(diagnostic_updater::DiagnosticStatusWrapper&)’:
/home/fabrice/catkin_demo_ws/src/mavros/mavros/src/plugins/sys_status.cpp:248:60: error: ‘PROXIMITY’ is not a member of ‘STS {aka mavlink::common::MAV_SYS_STATUS_SENSOR}’
  if (last_st.onboard_control_sensors_enabled & enum_value(STS::PROXIMITY))
                                                        ^
/home/fabrice/catkin_demo_ws/src/mavros/mavros/src/plugins/sys_status.cpp:249:79: error: ‘PROXIMITY’ is not a member of ‘STS {aka mavlink::common::MAV_SYS_STATUS_SENSOR}’
    stat.add("Proximity", (last_st.onboard_control_sensors_health & enum_value(STS::PROXIMITY)) ? "Ok" : "Fail");

And I have to say I am stuck here ... Does anyone know where is the problem ?

In the installation guide there is a link to download mavlink binaries but the last updates on this repostory are from 2017...

Thank you very much

VascoSampaio commented 5 years ago

any updates? I've gone through the same. removed mavros, cloned the most recent version and I'm getting the error

In member function ‘virtual void mavros::std_plugins::SystemStatusDiag::run(diagnostic_updater::DiagnosticStatusWrapper&)’:
/home/dsor/ros/src/mavros/mavros/src/plugins/sys_status.cpp:255:60: error: ‘SATCOM’ is not a member of ‘STS {aka mavlink::common::MAV_SYS_STATUS_SENSOR}’
   if (last_st.onboard_control_sensors_enabled & enum_value(STS::SATCOM))

Same error but about a different member

FaboNo commented 5 years ago

@VascoSampaio what I did is catkin clean and redo catkin build and I did not get the error.

VascoSampaio commented 5 years ago

@FaboNo I've done that, reinstalled all dependencies, but still getting the error. I'll keep digging into that. thank you anyway