Open TianxiaoYee opened 1 month ago
Same exact issue. Recently had to clean my catkin workspace, and while rebuilding, im getting this exact same issue. Same environment as well. Any suggestions?
Failed << rotors_hil_interface:make [ Exited with code 2 ]
Failed <<< rotors_hil_interface
Relevant portion of catkin build debug.
add this may help
That worked! Just for info, how exactly did you come across that specific solution? I know that the error says mavlink status hasn't been declared, but how did you know to specifically add this into that specific file and not somewhere else?
I am trying to install RotorS on my Ubuntu20.04+Ros noetic full desktop version. I have faced this issue for two weeks. It looks like it's about mavlink_status_t but I have absolutely no idea how to fix it.
Bug report (just a part):
~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2858, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_debug.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_debug.h:188:97: error: ‘mavlink_status_t’ has not been declared 188~~~~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2859, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_setup_signing.h:95:103: error: ‘mavlink_status_t’ has not been declared 95~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_setup_signing.h: In function ‘uint16_t mavlink_msg_setup_signing_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint8_t, const uint8_t, uint64_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_setup_signing.h:116:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status’} 116~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2859, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_setup_signing.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_setup_signing.h:194:105: error: ‘mavlink_status_t’ has not been declared 194~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2860, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_button_change.h:90:103: error: ‘mavlink_status_t’ has not been declared 90~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_button_change.h: In function ‘uint16_t mavlink_msg_button_change_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, uint32_t, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_button_change.h:111:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 111~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2860, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_button_change.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_button_change.h:188:105: error: ‘mavlink_status_t’ has not been declared 188~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2861, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_play_tune.h:96:99: error: ‘mavlink_status_t’ has not been declared 96~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_play_tune.h: In function ‘uint16_t mavlink_msg_play_tune_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint8_t, const char, const char)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_play_tune.h:117:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 117~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2861, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_play_tune.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_play_tune.h:195:101: error: ‘mavlink_status_t’ has not been declared 195~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2862, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_information.h:174:108: error: ‘mavlink_status_t’ has not been declared 174~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2862, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_information.h: In function ‘uint16_t mavlink_msg_camera_information_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, const uint8_t, const uint8_t, uint32_t, float, float, float, uint16_t, uint16_t, uint8_t, uint32_t, uint16_t, const char, uint8_t, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_information.h:217:74: error: cannot convert ‘int’ to mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status’} 217~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2862, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_information.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_information.h:328:110: error: ‘mavlink_status_t’ has not been declared 328~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2863, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_settings.h:104:105: error: ‘mavlink_status_t’ has not been declared 104~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_settings.h: In function ‘uint16_t mavlink_msg_camera_settings_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, uint8_t, float, float, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_settings.h:129:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 129~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2863, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_settings.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_settings.h:212:107: error: ‘mavlink_status_t’ has not been declared 212~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2864, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_storage_information.h:160:109: error: ‘mavlink_status_t’ has not been declared 160~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_storage_information.h: In function ‘uint16_t mavlink_msg_storage_information_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, uint8_t, uint8_t, uint8_t, float, float, float, float, float, uint8_t, const char, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_storage_information.h:197:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status’} 197~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2864, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_storage_information.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_storage_information.h:302:111: error: ‘mavlink_status_t’ has not been declared 302~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2865, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_capture_status.h:125:111: error: ‘mavlink_status_t’ has not been declared 125~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_capture_status.h: In function ‘uint16_t mavlink_msg_camera_capture_status_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, uint8_t, uint8_t, float, uint32_t, float, int32_t, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_capture_status.h:156:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 156~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2865, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_capture_status.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_capture_status.h:248:113: error: ‘mavlink_status_t’ has not been declared 248~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2866, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_image_captured.h:145:111: error: ‘mavlink_status_t’ has not been declared 145~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_image_captured.h: In function ‘uint16_t mavlink_msg_camera_image_captured_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, uint64_t, uint8_t, int32_t, int32_t, int32_t, int32_t, const float, int32_t, int8_t, const char)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_image_captured.h:180:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 180~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2866, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_image_captured.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_camera_image_captured.h:279:113: error: ‘mavlink_status_t’ has not been declared 279~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2867, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_flight_information.h:104:108: error: ‘mavlink_status_t’ has not been declared 104~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_flight_information.h: In function ‘uint16_t mavlink_msg_flight_information_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, uint64_t, uint64_t, uint64_t, uint32_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_flight_information.h:129:74: error: cannot convert ‘int’ to mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 129~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2867, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_flight_information.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_flight_information.h:212:110: error: ‘mavlink_status_t’ has not been declared 212~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2868, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_mount_orientation.h:104:107: error: ‘mavlink_status_t’ has not been declared 104~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_mount_orientation.h: In function ‘uint16_t mavlink_msg_mount_orientation_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint32_t, float, float, float, float)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_mount_orientation.h:129:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 129~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2868, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_mount_orientation.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_mount_orientation.h:212:109: error: ‘mavlink_status_t’ has not been declared 212~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2869, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data.h:109:102: error: ‘mavlink_status_t’ has not been declared 109~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data.h: In function ‘uint16_t mavlink_msg_logging_data_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint8_t, uint16_t, uint8_t, uint8_t, const uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data.h:134:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status’} 134~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2869, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data.h:218:104: error: ‘mavlink_status_t’ has not been declared 218~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2870, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data_acked.h:109:108: error: ‘mavlink_status_t’ has not been declared 109~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data_acked.h: In function ‘uint16_t mavlink_msg_logging_data_acked_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint8_t, uint16_t, uint8_t, uint8_t, const uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data_acked.h:134:74: error: cannot convert ‘int’ to mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status’} 134~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2870, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data_acked.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_data_acked.h:218:110: error: ‘mavlink_status_t’ has not been declared 218~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2871, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_ack.h:90:101: error: ‘mavlink_status_t’ has not been declared 90~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_ack.h: In function ‘uint16_t mavlink_msg_logging_ack_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint8_t, uint16_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_ack.h:111:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 111~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2871, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_ack.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_logging_ack.h:188:103: error: ‘mavlink_status_t’ has not been declared 188~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2872, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_information.h:166:114: error: ‘mavlink_status_t’ has not been declared 166~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_information.h: In function ‘uint16_t mavlink_msg_video_stream_information_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint8_t, uint8_t, uint16_t, float, uint16_t, uint16_t, uint32_t, uint16_t, uint16_t, const char, const char, uint8_t, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_information.h:207:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status’} 207~~~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2872, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_information.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_information.h:315:116: error: ‘mavlink_status_t’ has not been declared 315~~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2873, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_status.h:132:109: error: ‘mavlink_status_t’ has not been declared 132~~~/opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_status.h: In function ‘uint16_t mavlink_msg_video_stream_status_pack_status(uint8_t, uint8_t, int, mavlink_message_t, uint8_t, uint16_t, float, uint16_t, uint16_t, uint32_t, uint16_t, uint16_t, uint8_t)’: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_status.h:165:74: error: cannot convert ‘int’ to ‘mavlink::mavlink_status_t’ {aka ‘mavlink::__mavlink_status*’} 165~~In file included from /opt/ros/noetic/include/mavlink/v2.0/common/../message.hpp:33, from /opt/ros/noetic/include/mavlink/v2.0/common/common.hpp:16, from /home/ros20/Mavros_ws/src/mavros/libmavconn/include/mavconn/mavlink_dialect.h:26, from /home/ros20/Mavros_ws/src/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:18, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:23, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/../mavlink_helpers.h:224:31: note: initializing argument 4 of ‘uint16_t mavlink::mavlink_finalize_message_buffer(mavlink::mavlink_message_t, uint8_t, uint8_t, mavlink::mavlink_status_t, uint8_t, uint8_t, uint8_t)’ 224 | mavlink_status_t status, uint8_t min_length, uint8_t length, uint8_t crc_extra) |
~~~~^~~~ In file included from /opt/ros/noetic/include/mavlink/v2.0/common/common.h:2873, from /opt/ros/noetic/include/mavlink/v2.0/common/mavlink.h:32, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/include/rotors_hil_interface/hil_interface.h:27, from /home/ros20/RotorS/src/rotors_simulator/rotors_hil_interface/src/hil_sensor_level_interface.cpp:1: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_status.h: At global scope: /opt/ros/noetic/include/mavlink/v2.0/common/./mavlink_msg_video_stream_status.h:260:111: error: ‘mavlink_status_t’ has not been declared 260 | static inline uint16_t mavlink_msg_video_stream_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t _status, mavlink_message_t msg, const mavlink_video_stream_status_t video_stream_status) " Any suggestions would be highly appreciated.