From 7158e9548ae9e166804da417f6fc8fc913ad36fe Mon Sep 17 00:00:00 2001 From: Chiyu Chen Date: Mon, 1 Dec 2025 18:14:42 +0800 Subject: [PATCH] Add external package geographic_info and angles and mavros_msgs --- .gitmodules | 6 + README.md | 31 +- src/external/angles | 1 + src/external/geographic_info | 1 + src/external/mavros_msgs/CHANGELOG.rst | 1009 +++++++++++++++++ src/external/mavros_msgs/CMakeLists.txt | 208 ++++ .../include/mavros_msgs/mavlink_convert.hpp | 145 +++ .../mavros_msgs/mavros_msgs_mapping_rule.yaml | 8 + src/external/mavros_msgs/msg/ADSBVehicle.msg | 66 ++ .../mavros_msgs/msg/ActuatorControl.msg | 16 + src/external/mavros_msgs/msg/Altitude.msg | 12 + .../mavros_msgs/msg/AttitudeTarget.msg | 17 + src/external/mavros_msgs/msg/CamIMUStamp.msg | 4 + .../mavros_msgs/msg/CameraImageCaptured.msg | 11 + .../mavros_msgs/msg/CellularStatus.msg | 9 + src/external/mavros_msgs/msg/CommandCode.msg | 200 ++++ .../msg/CompanionProcessStatus.msg | 19 + src/external/mavros_msgs/msg/DebugValue.msg | 26 + src/external/mavros_msgs/msg/ESCInfo.msg | 14 + src/external/mavros_msgs/msg/ESCInfoItem.msg | 12 + src/external/mavros_msgs/msg/ESCStatus.msg | 9 + .../mavros_msgs/msg/ESCStatusItem.msg | 11 + src/external/mavros_msgs/msg/ESCTelemetry.msg | 10 + .../mavros_msgs/msg/ESCTelemetryItem.msg | 15 + .../mavros_msgs/msg/EstimatorStatus.msg | 23 + .../mavros_msgs/msg/ExtendedState.msg | 19 + src/external/mavros_msgs/msg/FileEntry.msg | 12 + src/external/mavros_msgs/msg/GPSINPUT.msg | 37 + src/external/mavros_msgs/msg/GPSRAW.msg | 37 + src/external/mavros_msgs/msg/GPSRTK.msg | 18 + .../msg/GimbalDeviceAttitudeStatus.msg | 32 + .../msg/GimbalDeviceInformation.msg | 34 + .../msg/GimbalDeviceSetAttitude.msg | 18 + .../msg/GimbalManagerInformation.msg | 29 + .../msg/GimbalManagerSetAttitude.msg | 24 + .../msg/GimbalManagerSetPitchyaw.msg | 27 + .../mavros_msgs/msg/GimbalManagerStatus.msg | 19 + .../mavros_msgs/msg/GlobalPositionTarget.msg | 34 + .../mavros_msgs/msg/HilActuatorControls.msg | 10 + src/external/mavros_msgs/msg/HilControls.msg | 18 + src/external/mavros_msgs/msg/HilGPS.msg | 17 + src/external/mavros_msgs/msg/HilSensor.msg | 16 + .../mavros_msgs/msg/HilStateQuaternion.msg | 15 + src/external/mavros_msgs/msg/HomePosition.msg | 10 + .../mavros_msgs/msg/LandingTarget.msg | 32 + src/external/mavros_msgs/msg/LogData.msg | 11 + src/external/mavros_msgs/msg/LogEntry.msg | 15 + .../mavros_msgs/msg/MagnetometerReporter.msg | 4 + .../mavros_msgs/msg/ManualControl.msg | 7 + src/external/mavros_msgs/msg/Mavlink.msg | 38 + src/external/mavros_msgs/msg/MountControl.msg | 18 + .../mavros_msgs/msg/NavControllerOutput.msg | 12 + .../mavros_msgs/msg/OnboardComputerStatus.msg | 25 + src/external/mavros_msgs/msg/OpticalFlow.msg | 9 + .../mavros_msgs/msg/OpticalFlowRad.msg | 14 + src/external/mavros_msgs/msg/OverrideRCIn.msg | 9 + src/external/mavros_msgs/msg/Param.msg | 11 + src/external/mavros_msgs/msg/ParamEvent.msg | 14 + src/external/mavros_msgs/msg/ParamValue.msg | 12 + src/external/mavros_msgs/msg/PlayTuneV2.msg | 10 + .../mavros_msgs/msg/PositionTarget.msg | 32 + src/external/mavros_msgs/msg/RCIn.msg | 5 + src/external/mavros_msgs/msg/RCOut.msg | 4 + src/external/mavros_msgs/msg/RTCM.msg | 6 + src/external/mavros_msgs/msg/RTKBaseline.msg | 23 + src/external/mavros_msgs/msg/RadioStatus.msg | 16 + src/external/mavros_msgs/msg/State.msg | 82 ++ src/external/mavros_msgs/msg/StatusEvent.msg | 19 + src/external/mavros_msgs/msg/StatusText.msg | 17 + src/external/mavros_msgs/msg/SysStatus.msg | 15 + .../mavros_msgs/msg/TerrainReport.msg | 12 + src/external/mavros_msgs/msg/Thrust.msg | 5 + .../mavros_msgs/msg/TimesyncStatus.msg | 7 + src/external/mavros_msgs/msg/Trajectory.msg | 19 + src/external/mavros_msgs/msg/Tunnel.msg | 27 + src/external/mavros_msgs/msg/VehicleInfo.msg | 31 + src/external/mavros_msgs/msg/VfrHud.msg | 11 + src/external/mavros_msgs/msg/Vibration.msg | 7 + src/external/mavros_msgs/msg/Waypoint.msg | 45 + src/external/mavros_msgs/msg/WaypointList.msg | 9 + .../mavros_msgs/msg/WaypointReached.msg | 7 + .../mavros_msgs/msg/WheelOdomStamped.msg | 6 + src/external/mavros_msgs/package.xml | 46 + src/external/mavros_msgs/srv/CommandAck.srv | 11 + src/external/mavros_msgs/srv/CommandBool.srv | 6 + src/external/mavros_msgs/srv/CommandHome.srv | 10 + src/external/mavros_msgs/srv/CommandInt.srv | 19 + src/external/mavros_msgs/srv/CommandLong.srv | 17 + src/external/mavros_msgs/srv/CommandTOL.srv | 10 + .../mavros_msgs/srv/CommandTOLLocal.srv | 10 + .../mavros_msgs/srv/CommandTriggerControl.srv | 8 + .../srv/CommandTriggerInterval.srv | 7 + .../mavros_msgs/srv/CommandVtolTransition.srv | 16 + src/external/mavros_msgs/srv/EndpointAdd.srv | 14 + src/external/mavros_msgs/srv/EndpointDel.srv | 17 + src/external/mavros_msgs/srv/FileChecksum.srv | 12 + src/external/mavros_msgs/srv/FileClose.srv | 10 + src/external/mavros_msgs/srv/FileList.srv | 10 + src/external/mavros_msgs/srv/FileMakeDir.srv | 9 + src/external/mavros_msgs/srv/FileOpen.srv | 17 + src/external/mavros_msgs/srv/FileRead.srv | 13 + src/external/mavros_msgs/srv/FileRemove.srv | 9 + .../mavros_msgs/srv/FileRemoveDir.srv | 9 + src/external/mavros_msgs/srv/FileRename.srv | 10 + src/external/mavros_msgs/srv/FileTruncate.srv | 10 + src/external/mavros_msgs/srv/FileWrite.srv | 12 + .../mavros_msgs/srv/GimbalGetInformation.srv | 10 + .../srv/GimbalManagerCameraTrack.srv | 28 + .../srv/GimbalManagerConfigure.srv | 32 + .../mavros_msgs/srv/GimbalManagerPitchyaw.srv | 27 + .../mavros_msgs/srv/GimbalManagerSetRoi.srv | 38 + .../mavros_msgs/srv/LogRequestData.srv | 11 + .../mavros_msgs/srv/LogRequestEnd.srv | 4 + .../mavros_msgs/srv/LogRequestList.srv | 9 + .../mavros_msgs/srv/MessageInterval.srv | 7 + .../mavros_msgs/srv/MountConfigure.srv | 28 + src/external/mavros_msgs/srv/ParamGet.srv | 8 + src/external/mavros_msgs/srv/ParamPull.srv | 8 + src/external/mavros_msgs/srv/ParamPush.srv | 9 + src/external/mavros_msgs/srv/ParamSet.srv | 9 + src/external/mavros_msgs/srv/ParamSetV2.srv | 14 + src/external/mavros_msgs/srv/SetMavFrame.srv | 36 + src/external/mavros_msgs/srv/SetMode.srv | 22 + src/external/mavros_msgs/srv/StreamRate.srv | 17 + .../mavros_msgs/srv/VehicleInfoGet.srv | 14 + .../mavros_msgs/srv/WaypointClear.srv | 4 + src/external/mavros_msgs/srv/WaypointPull.srv | 7 + src/external/mavros_msgs/srv/WaypointPush.srv | 11 + .../mavros_msgs/srv/WaypointSetCurrent.srv | 7 + 129 files changed, 3622 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 src/external/angles create mode 160000 src/external/geographic_info create mode 100644 src/external/mavros_msgs/CHANGELOG.rst create mode 100644 src/external/mavros_msgs/CMakeLists.txt create mode 100644 src/external/mavros_msgs/include/mavros_msgs/mavlink_convert.hpp create mode 100644 src/external/mavros_msgs/mavros_msgs_mapping_rule.yaml create mode 100644 src/external/mavros_msgs/msg/ADSBVehicle.msg create mode 100644 src/external/mavros_msgs/msg/ActuatorControl.msg create mode 100644 src/external/mavros_msgs/msg/Altitude.msg create mode 100644 src/external/mavros_msgs/msg/AttitudeTarget.msg create mode 100644 src/external/mavros_msgs/msg/CamIMUStamp.msg create mode 100644 src/external/mavros_msgs/msg/CameraImageCaptured.msg create mode 100644 src/external/mavros_msgs/msg/CellularStatus.msg create mode 100644 src/external/mavros_msgs/msg/CommandCode.msg create mode 100644 src/external/mavros_msgs/msg/CompanionProcessStatus.msg create mode 100644 src/external/mavros_msgs/msg/DebugValue.msg create mode 100644 src/external/mavros_msgs/msg/ESCInfo.msg create mode 100644 src/external/mavros_msgs/msg/ESCInfoItem.msg create mode 100644 src/external/mavros_msgs/msg/ESCStatus.msg create mode 100644 src/external/mavros_msgs/msg/ESCStatusItem.msg create mode 100644 src/external/mavros_msgs/msg/ESCTelemetry.msg create mode 100644 src/external/mavros_msgs/msg/ESCTelemetryItem.msg create mode 100644 src/external/mavros_msgs/msg/EstimatorStatus.msg create mode 100644 src/external/mavros_msgs/msg/ExtendedState.msg create mode 100644 src/external/mavros_msgs/msg/FileEntry.msg create mode 100644 src/external/mavros_msgs/msg/GPSINPUT.msg create mode 100644 src/external/mavros_msgs/msg/GPSRAW.msg create mode 100644 src/external/mavros_msgs/msg/GPSRTK.msg create mode 100644 src/external/mavros_msgs/msg/GimbalDeviceAttitudeStatus.msg create mode 100644 src/external/mavros_msgs/msg/GimbalDeviceInformation.msg create mode 100644 src/external/mavros_msgs/msg/GimbalDeviceSetAttitude.msg create mode 100644 src/external/mavros_msgs/msg/GimbalManagerInformation.msg create mode 100644 src/external/mavros_msgs/msg/GimbalManagerSetAttitude.msg create mode 100644 src/external/mavros_msgs/msg/GimbalManagerSetPitchyaw.msg create mode 100644 src/external/mavros_msgs/msg/GimbalManagerStatus.msg create mode 100644 src/external/mavros_msgs/msg/GlobalPositionTarget.msg create mode 100644 src/external/mavros_msgs/msg/HilActuatorControls.msg create mode 100644 src/external/mavros_msgs/msg/HilControls.msg create mode 100644 src/external/mavros_msgs/msg/HilGPS.msg create mode 100644 src/external/mavros_msgs/msg/HilSensor.msg create mode 100644 src/external/mavros_msgs/msg/HilStateQuaternion.msg create mode 100644 src/external/mavros_msgs/msg/HomePosition.msg create mode 100644 src/external/mavros_msgs/msg/LandingTarget.msg create mode 100644 src/external/mavros_msgs/msg/LogData.msg create mode 100644 src/external/mavros_msgs/msg/LogEntry.msg create mode 100644 src/external/mavros_msgs/msg/MagnetometerReporter.msg create mode 100644 src/external/mavros_msgs/msg/ManualControl.msg create mode 100644 src/external/mavros_msgs/msg/Mavlink.msg create mode 100644 src/external/mavros_msgs/msg/MountControl.msg create mode 100644 src/external/mavros_msgs/msg/NavControllerOutput.msg create mode 100644 src/external/mavros_msgs/msg/OnboardComputerStatus.msg create mode 100644 src/external/mavros_msgs/msg/OpticalFlow.msg create mode 100644 src/external/mavros_msgs/msg/OpticalFlowRad.msg create mode 100644 src/external/mavros_msgs/msg/OverrideRCIn.msg create mode 100644 src/external/mavros_msgs/msg/Param.msg create mode 100644 src/external/mavros_msgs/msg/ParamEvent.msg create mode 100644 src/external/mavros_msgs/msg/ParamValue.msg create mode 100644 src/external/mavros_msgs/msg/PlayTuneV2.msg create mode 100644 src/external/mavros_msgs/msg/PositionTarget.msg create mode 100644 src/external/mavros_msgs/msg/RCIn.msg create mode 100644 src/external/mavros_msgs/msg/RCOut.msg create mode 100644 src/external/mavros_msgs/msg/RTCM.msg create mode 100644 src/external/mavros_msgs/msg/RTKBaseline.msg create mode 100644 src/external/mavros_msgs/msg/RadioStatus.msg create mode 100644 src/external/mavros_msgs/msg/State.msg create mode 100644 src/external/mavros_msgs/msg/StatusEvent.msg create mode 100644 src/external/mavros_msgs/msg/StatusText.msg create mode 100644 src/external/mavros_msgs/msg/SysStatus.msg create mode 100644 src/external/mavros_msgs/msg/TerrainReport.msg create mode 100644 src/external/mavros_msgs/msg/Thrust.msg create mode 100644 src/external/mavros_msgs/msg/TimesyncStatus.msg create mode 100644 src/external/mavros_msgs/msg/Trajectory.msg create mode 100644 src/external/mavros_msgs/msg/Tunnel.msg create mode 100644 src/external/mavros_msgs/msg/VehicleInfo.msg create mode 100644 src/external/mavros_msgs/msg/VfrHud.msg create mode 100644 src/external/mavros_msgs/msg/Vibration.msg create mode 100644 src/external/mavros_msgs/msg/Waypoint.msg create mode 100644 src/external/mavros_msgs/msg/WaypointList.msg create mode 100644 src/external/mavros_msgs/msg/WaypointReached.msg create mode 100644 src/external/mavros_msgs/msg/WheelOdomStamped.msg create mode 100644 src/external/mavros_msgs/package.xml create mode 100644 src/external/mavros_msgs/srv/CommandAck.srv create mode 100644 src/external/mavros_msgs/srv/CommandBool.srv create mode 100644 src/external/mavros_msgs/srv/CommandHome.srv create mode 100644 src/external/mavros_msgs/srv/CommandInt.srv create mode 100644 src/external/mavros_msgs/srv/CommandLong.srv create mode 100644 src/external/mavros_msgs/srv/CommandTOL.srv create mode 100644 src/external/mavros_msgs/srv/CommandTOLLocal.srv create mode 100644 src/external/mavros_msgs/srv/CommandTriggerControl.srv create mode 100644 src/external/mavros_msgs/srv/CommandTriggerInterval.srv create mode 100644 src/external/mavros_msgs/srv/CommandVtolTransition.srv create mode 100644 src/external/mavros_msgs/srv/EndpointAdd.srv create mode 100644 src/external/mavros_msgs/srv/EndpointDel.srv create mode 100644 src/external/mavros_msgs/srv/FileChecksum.srv create mode 100644 src/external/mavros_msgs/srv/FileClose.srv create mode 100644 src/external/mavros_msgs/srv/FileList.srv create mode 100644 src/external/mavros_msgs/srv/FileMakeDir.srv create mode 100644 src/external/mavros_msgs/srv/FileOpen.srv create mode 100644 src/external/mavros_msgs/srv/FileRead.srv create mode 100644 src/external/mavros_msgs/srv/FileRemove.srv create mode 100644 src/external/mavros_msgs/srv/FileRemoveDir.srv create mode 100644 src/external/mavros_msgs/srv/FileRename.srv create mode 100644 src/external/mavros_msgs/srv/FileTruncate.srv create mode 100644 src/external/mavros_msgs/srv/FileWrite.srv create mode 100644 src/external/mavros_msgs/srv/GimbalGetInformation.srv create mode 100644 src/external/mavros_msgs/srv/GimbalManagerCameraTrack.srv create mode 100644 src/external/mavros_msgs/srv/GimbalManagerConfigure.srv create mode 100644 src/external/mavros_msgs/srv/GimbalManagerPitchyaw.srv create mode 100644 src/external/mavros_msgs/srv/GimbalManagerSetRoi.srv create mode 100644 src/external/mavros_msgs/srv/LogRequestData.srv create mode 100644 src/external/mavros_msgs/srv/LogRequestEnd.srv create mode 100644 src/external/mavros_msgs/srv/LogRequestList.srv create mode 100644 src/external/mavros_msgs/srv/MessageInterval.srv create mode 100644 src/external/mavros_msgs/srv/MountConfigure.srv create mode 100644 src/external/mavros_msgs/srv/ParamGet.srv create mode 100644 src/external/mavros_msgs/srv/ParamPull.srv create mode 100644 src/external/mavros_msgs/srv/ParamPush.srv create mode 100644 src/external/mavros_msgs/srv/ParamSet.srv create mode 100644 src/external/mavros_msgs/srv/ParamSetV2.srv create mode 100644 src/external/mavros_msgs/srv/SetMavFrame.srv create mode 100644 src/external/mavros_msgs/srv/SetMode.srv create mode 100644 src/external/mavros_msgs/srv/StreamRate.srv create mode 100644 src/external/mavros_msgs/srv/VehicleInfoGet.srv create mode 100644 src/external/mavros_msgs/srv/WaypointClear.srv create mode 100644 src/external/mavros_msgs/srv/WaypointPull.srv create mode 100644 src/external/mavros_msgs/srv/WaypointPush.srv create mode 100644 src/external/mavros_msgs/srv/WaypointSetCurrent.srv diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6630485 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "src/external/geographic_info"] + path = src/external/geographic_info + url = https://github.com/ros-geographic-info/geographic_info.git +[submodule "src/external/angles"] + path = src/external/angles + url = https://github.com/ros/angles.git diff --git a/README.md b/README.md index 490d84b..4f9dff7 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,23 @@ ROS2 1. Gazebo Garden 2. Ardupilot +=== +依賴的 ROS 庫 +1. https://github.com/ros-geographic-info/geographic_info.git +2. https://github.com/ros/angles.git +3. mavros_msgs 是 https://github.com/mavlink/mavros 這個專案中的一個資料夾 這邊手動複製的 + +Clone 專案後 請先執行這些指令 +```bash +# 1.同步 submodule +cd ~/AirTrapMine +git submodule init +git submodule update +# 2. build 需要的 package +colcon build --packages-select angles geographic_msgs mavros_msgs +``` + + === Package 簡述 1. unitdev 為各自協作者做開發時的測試區 @@ -39,10 +56,14 @@ Package 簡述 N. logs 是執行時期的記錄檔 === -請一律在 ~/AirTrapMine/src/ 資料夾下 以模組化啟動程式 +主要專案 fc_network_adapter 請一律在 ~/AirTrapMine/src/ 資料夾下 以模組化啟動程式 例如 在 ~/AirTrapMine/src/ 資料夾下 -> python -m fc_network_adapter.fc_network_adapter.mainOrchestrator -> python -m fc_network_adapter.tests.test_ringBuffer -> python -m fc_network_adapter.tests.demo_integration - +```bash +# 記得先開啟 依賴 Package 到 overlay +. ./install/local_setup.bash +# 範例 +python -m fc_network_adapter.fc_network_adapter.mainOrchestrator +python -m fc_network_adapter.tests.test_ringBuffer +python -m fc_network_adapter.tests.demo_integration +``` diff --git a/src/external/angles b/src/external/angles new file mode 160000 index 0000000..a96224f --- /dev/null +++ b/src/external/angles @@ -0,0 +1 @@ +Subproject commit a96224f9ab3ac51fe8fd981c1e1554528dc4345a diff --git a/src/external/geographic_info b/src/external/geographic_info new file mode 160000 index 0000000..bc73c05 --- /dev/null +++ b/src/external/geographic_info @@ -0,0 +1 @@ +Subproject commit bc73c05ee79c31a88b4a23b545a2fe55eae8089e diff --git a/src/external/mavros_msgs/CHANGELOG.rst b/src/external/mavros_msgs/CHANGELOG.rst new file mode 100644 index 0000000..3cbecbe --- /dev/null +++ b/src/external/mavros_msgs/CHANGELOG.rst @@ -0,0 +1,1009 @@ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Changelog for package mavros_msgs +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +2.9.0 (2024-10-10) +------------------ + +2.8.0 (2024-06-07) +------------------ +* regenerate all using cogall.sh +* Merge branch 'master' into ros2 + * master: + 1.19.0 + update changelog + gps_global_origin: remove LLA to ECEF conversion +* 1.19.0 +* update changelog +* removed prefix in enums in messages and changed to use existing functions for string and quaternion convert +* Final touches + Added functionality that was overlooked for camera tracking if supported, added copyright info, added custom exception thrown when mode enumerator is not understood +* Added gimbal_control plugin + Added all functionality to support a plugin to enable compatibility with MAVLink Gimbal Protocol v2 +* Contributors: Frederik Mazur Andersen, Mark-Beaty, Vladimir Ermakov + +1.19.0 (2024-06-06) +------------------- + +2.7.0 (2024-03-03) +------------------ +* re-generate with cogall.sh +* Merge branch 'master' into ros2 + * master: + 1.18.0 + update changelog + sys_status.cpp: improve timeout code + sys_status.cpp: Add a SYS_STATUS message publisher + [camera plugin] Fix image_index and capture_result not properly filled + Fix missing semi-colon + GPS_STATUS Plugin: Fill in available messages for ROS1 legacy +* 1.18.0 +* update changelog +* sys_status.cpp: Add a SYS_STATUS message publisher +* cog checksum +* remove event_time_boot_ms, fill stamp instead +* handle events +* Fix errata in GPSRAW.msg +* Contributors: Dr.-Ing. Amilcar do Carmo Lucas, Seunghwan Jo, Vladimir Ermakov, victor + +1.18.0 (2024-03-03) +------------------- +* sys_status.cpp: Add a SYS_STATUS message publisher +* Contributors: Dr.-Ing. Amilcar do Carmo Lucas + +2.6.0 (2023-09-09) +------------------ +* msgs: move generator code +* cog: regenerate all +* Merge branch 'master' into ros2 + * master: + 1.17.0 + update changelog + cog: regenerate all + Bugfix/update map origin with home position (`#1892 `_) + mavros: Remove extra ';' + mavros_extras: Fix some init order warnings + Suppress warnings from included headers + 1.16.0 + update changelog + made it such that the gp_origin topic published latched. + use hpp instead of deprecated .h pluginlib headers +* 1.17.0 +* update changelog +* cog: regenerate all +* local takeoff and land topics (`#1890 `_) + * local takeoff and land topics + * vector3 position type, rename to TOLLocal + * remove auto include line +* Merge pull request `#1871 `_ from Vladislavert/feature/optical_flow_msg + Addition of New OpticalFlow.msg +* Added geometry_msgs/Vector3 to OpticalFlow.msg +* Added vectors to the message OpticalFlow.msg +* Added message optical flow +* 1.16.0 +* update changelog +* Contributors: Ido Guzi, Vladimir Ermakov, Vladislavert + +2.5.0 (2023-05-05) +------------------ + +2.4.0 (2022-12-30) +------------------ +* msgs: re-generate +* Merge branch 'master' into ros2 + * master: + 1.15.0 + update changelog + ci: update actions + Implement debug float array handler + mavros_extras: Fix a sequence point warning + mavros_extras: Fix a comparison that shouldn't be bitwise + mavros: Fix some warnings + mavros_extras: Fix buggy check for lat/lon ignored + libmavconn: fix MAVLink v1.0 output selection +* 1.15.0 +* update changelog +* Merge pull request `#1811 `_ from scoutdi/debug-float-array + Implement debug float array handler +* Implement debug float array handler + Co-authored-by: Morten Fyhn Amundsen +* Contributors: Sverre Velten Rothmund, Vladimir Ermakov + +2.3.0 (2022-09-24) +------------------ +* Merge branch 'master' into ros2 + * master: + 1.14.0 + update changelog + scripts: waypoint and param files are text, not binary + libmavconn: fix MAVLink v1.0 output selection + plugins: add guided_target to accept offboard position targets + add cmake module path for geographiclib on debian based systems + use already installed FindGeographicLib.cmake +* 1.14.0 +* update changelog +* Contributors: Vladimir Ermakov + +2.2.0 (2022-06-27) +------------------ +* Merge branch 'master' into ros2 + * master: + mount_control.cpp: detect MOUNT_ORIENTATION stale messages + ESCTelemetryItem.msg: correct RPM units + apm_config.yaml: add mount configuration + sys_status.cpp fix free memory for values > 64KiB + uncrustify cellular_status.cpp + Add CellularStatus plugin and message + *_config.yaml: document usage of multiple batteries diagnostics + sys_status.cpp: fix compilation + sys_status.cpp: support diagnostics on up-to 10 batteries + sys_status.cpp: do not use harcoded constants + sys_status.cpp: Timeout on MEMINFO and HWSTATUS mavlink messages and publish on the diagnostics + sys_status.cpp: fix enabling of mem_diag and hwst_diag + sys_status.cpp: Do not use battery1 voltage as voltage for all other batteries (bugfix). + sys_status.cpp: ignore sys_status mavlink messages from gimbals + mount_control.cpp: use mount_nh for params to keep similarities with other plugins set diag settings before add() + sys_status.cpp: remove deprecated BATTERY2 mavlink message support + Mount control plugin: add configurable diagnostics + Bugfix: increment_f had no value asigned when input LaserScan was bigger than obstacle.distances.size() + Bugfix: wrong interpolation when the reduction ratio (scale_factor) is not integer. + Disable startup_px4_usb_quirk in px4_config.yaml +* msgs: support humble + +2.1.1 (2022-03-02) +------------------ + +2.1.0 (2022-02-02) +------------------ +* Merge branch 'master' into ros2 + * master: + 1.13.0 + update changelog + py-lib: fix compatibility with py3 for Noetic + re-generate all coglets + test: add checks for ROTATION_CUSTOM + lib: Fix rotation search for CUSTOM + Removed CamelCase for class members. Publish to "report" + More explicitly state "TerrainReport" to allow for future extension of the plugin to support other terrain messages + Fixed callback name to match `handle\_{MESSAGE_NAME.lower()}` convention + Add extra MAV_FRAMES to waypoint message as defined in https://mavlink.io/en/messages/common.html + Fixed topic names to match more closely what other plugins use. Fixed a typo. + Add plugin for reporting terrain height estimate from FCU + 1.12.2 + update changelog + Set time/publish_sim_time to false by default + plugin: setpoint_raw: move getParam to initializer + extras: trajectory: backport `#1667 `_ +* 1.13.0 +* update changelog +* Merge pull request `#1690 `_ from mavlink/fix-enum_sensor_orientation + Fix enum sensor_orientation +* re-generate all coglets +* Merge pull request `#1680 `_ from AndersonRayner/new_mav_frames + Add extra MAV_FRAMES to waypoint message +* Merge pull request `#1677 `_ from AndersonRayner/add_terrain + Add plugin for reporting terrain height estimate from the FCU +* More explicitly state "TerrainReport" to allow for future extension of the plugin to support other terrain messages +* Add extra MAV_FRAMES to waypoint message as defined in https://mavlink.io/en/messages/common.html +* Add plugin for reporting terrain height estimate from FCU +* 1.12.2 +* update changelog +* Merge branch 'master' into ros2 + * master: + 1.12.1 + update changelog + mavconn: fix connection issue introduced by `#1658 `_ + mavros_extras: Fix some warnings + mavros: Fix some warnings +* 1.12.1 +* update changelog +* Contributors: Vladimir Ermakov, matt + +2.0.5 (2021-11-28) +------------------ +* Merge branch 'master' into ros2 + * master: + 1.12.0 + update changelog + Fix multiple bugs + lib: fix mission frame debug print + extras: distance_sensor: revert back to zero quaternion +* 1.12.0 +* update changelog +* extras: fix some more lint warns +* msgs: update conversion header +* Merge branch 'master' into ros2 + * master: + 1.11.1 + update changelog + lib: fix build +* 1.11.1 +* update changelog +* Merge branch 'master' into ros2 + * master: + 1.11.0 + update changelog + lib: fix ftf warnings + msgs: use pragmas to ignore unaligned pointer warnings + extras: landing_target: fix misprint + msgs: fix convert const + plugin: setpoint_raw: fix misprint + msgs: try to hide 'unaligned pointer' warning + plugin: sys: fix compillation error + plugin: initialize quaternions with identity + plugin: sys: Use wall timers for connection management + Use meters for relative altitude + distance_sensor: Initialize sensor orientation quaternion to zero + Address review comments + Add camera plugin for interfacing with mavlink camera protocol +* 1.11.0 +* update changelog +* msgs: use pragmas to ignore unaligned pointer warnings +* msgs: fix convert const +* msgs: try to hide 'unaligned pointer' warning +* Merge pull request `#1651 `_ from Jaeyoung-Lim/pr-image-capture-plugin + Add camera plugin for interfacing with mavlink camera protocol +* Address review comments +* Add camera plugin for interfacing with mavlink camera protocol + Add camera image captured message for handling camera trigger information +* Merge branch 'master' into ros2 + * master: + msgs: add yaw field to GPS_INPUT +* msgs: add yaw field to GPS_INPUT +* Contributors: Jaeyoung-Lim, Vladimir Ermakov + +2.0.4 (2021-11-04) +------------------ +* Merge branch 'master' into ros2 + * master: + 1.10.0 + prepare release +* 1.10.0 +* prepare release +* Merge branch 'master' into ros2 + * master: + msgs: update gpsraw to have yaw field +* msgs: update gpsraw to have yaw field +* Merge branch 'master' into ros2 + * master: (25 commits) + Remove reference + Catch std::length_error in send_message + Show ENOTCONN error instead of crash + Tunnel: Check for invalid payload length + Tunnel.msg: Generate enum with cog + mavros_extras: Create tunnel plugin + mavros_msgs: Add Tunnel message + MountControl.msg: fix copy-paste + sys_time.cpp: typo + sys_time: publish /clock for simulation times + 1.9.0 + update changelog + Spelling corrections + Changed OverrideRCIn to 18 channels + This adds functionality to erase all logs on the SD card via mavlink + publish BATTERY2 message as /mavros/battery2 topic + Mavlink v2.0 specs for RC_CHANNELS_OVERRIDE accepts upto 18 channels. The plugin publishes channels 9 to 18 if the FCU protocol version is 2.0 + Added NAV_CONTROLLER_OUTPUT Plugin + Added GPS_INPUT plugin + Update esc_status plugin with datatype change on MAVLink. + ... +* Merge pull request `#1625 `_ from scoutdi/tunnel-plugin + Plugin for TUNNEL messages +* Tunnel.msg: Generate enum with cog +* mavros_msgs: Add Tunnel message +* Merge pull request `#1623 `_ from amilcarlucas/pr/more-typo-fixes + More typo fixes +* MountControl.msg: fix copy-paste +* 1.9.0 +* update changelog +* Merge pull request `#1616 `_ from amilcarlucas/pr/RC_CHANNELS-mavlink2-extensions + Mavlink v2.0 specs for RC_CHANNELS_OVERRIDE accepts upto 18 channels.… +* Changed OverrideRCIn to 18 channels +* Merge pull request `#1617 `_ from amilcarlucas/pr/NAV_CONTROLLER_OUTPUT-plugin + Added NAV_CONTROLLER_OUTPUT Plugin +* Merge pull request `#1618 `_ from amilcarlucas/pr/GPS_INPUT-plugin + Added GPS_INPUT plugin +* Mavlink v2.0 specs for RC_CHANNELS_OVERRIDE accepts upto 18 channels. The plugin publishes channels 9 to 18 if the FCU protocol version is 2.0 +* Added NAV_CONTROLLER_OUTPUT Plugin +* Added GPS_INPUT plugin +* Merge branch 'master' into master +* Update esc_status plugin with datatype change on MAVLink. + ESC_INFO MAVLink message was updated to have negative temperates and also at a different resolution. This commit updates those changes on this side. +* Remove Mount_Status plugin. Add Status data to Mount_Control plugin. Remove Mount_Status message. +* msgs: re-generate file lists +* Merge branch 'master' into ros2 + * master: + extras: esc_telemetry: fix build + extras: fix esc_telemetry centi-volt/amp conversion + extras: uncrustify all plugins + plugins: reformat xml + extras: reformat plugins xml + extras: fix apm esc_telemetry + msgs: fix types for apm's esc telemetry + actually allocate memory for the telemetry information + fixed some compile errors + added esc_telemetry plugin + Reset calibration flag when re-calibrating. Prevent wrong data output. + Exclude changes to launch files. + Delete debug files. + Apply uncrustify changes. + Set progress array to global to prevent erasing data. + Move Compass calibration report to extras. Rewrite code based on instructions. + Remove extra message from CMakeLists. + Add message and service definition. + Add compass calibration feedback status. Add service to call the 'Next' button in calibrations. +* msgs: fix types for apm's esc telemetry +* actually allocate memory for the telemetry information +* added esc_telemetry plugin +* Add Mount angles message for communications with ardupilotmega. +* Remove extra message from CMakeLists. +* Add message and service definition. +* Contributors: Abhijith Thottumadayil Jagadeesh, André Filipe, Dr.-Ing. Amilcar do Carmo Lucas, Karthik Desai, Morten Fyhn Amundsen, Ricardo Marques, Russell, Vladimir Ermakov + +2.0.3 (2021-06-20) +------------------ + +2.0.2 (2021-06-20) +------------------ + +2.0.1 (2021-06-06) +------------------ +* Add rcl_interfaces dependency +* Merge branch 'master' into ros2 + * master: + readme: update + 1.8.0 + update changelog + Create semgrep-analysis.yml + Create codeql-analysis.yml +* 1.8.0 +* update changelog +* Contributors: Rob Clarke, Vladimir Ermakov + +2.0.0 (2021-05-28) +------------------ +* msgs: update command codes +* msgs: update param services +* plugins: setpoint_velocity: port to ros2 +* Merge branch 'master' into ros2 + * master: + 1.7.1 + update changelog + re-generate all pymavlink enums + 1.7.0 + update changelog +* mavros: generate plugin list +* Merge branch 'master' into ros2 + * master: + msgs: re-generate the code + lib: re-generate the code + plugins: mission: re-generate the code + MissionBase: correction to file information + MissionBase: add copyright from origional waypoint.cpp + uncrustify + whitespace + add rallypoint and geofence plugins to mavros plugins xml + add rallypoint and geofence plugins to CMakeList + Geofence: add geofence plugin + Rallypoint: add rallypoint plugin + Waypoint: inherit MissionBase class for mission protocol + MissionBase: breakout mission protocol from waypoint.cpp + README: Update PX4 Autopilot references + Fix https://github.com/mavlink/mavros/issues/849 +* router: catch DeviceError +* router: weak_ptr segfaults, replace with shared_ptr +* router: implement params handler +* mavros: router decl done +* lib: port enum_to_string +* lib: update sensor_orientation +* msgs: add linter +* libmavconn: start porintg, will use plain asio, without boost +* msgs: remove redundant dependency which result in colcon warning +* msgs: cogify file lists +* Merge pull request `#1186 `_ from PickNikRobotics/ros2 + mavros_msgs Ros2 +* Merge branch 'ros2' into ros2 +* msgs: start porting to ROS2 +* fixing cmakelists +* updating msg and srv list +* reenable VfrHud once renamed to match ROS2 conventions + add ros1_bridge mapping rule for renamed VfrHud message +* make mavro_msgs compile in ROS 2 +* Contributors: Mikael Arguedas, Mike Lautman, Vladimir Ermakov + +1.17.0 (2023-09-09) +------------------- +* cog: regenerate all +* Contributors: Vladimir Ermakov + +1.16.0 (2023-05-05) +------------------- + +1.15.0 (2022-12-30) +------------------- +* Merge pull request `#1811 `_ from scoutdi/debug-float-array + Implement debug float array handler +* Implement debug float array handler + Co-authored-by: Morten Fyhn Amundsen +* Contributors: Sverre Velten Rothmund, Vladimir Ermakov + +1.14.0 (2022-09-24) +------------------- +* Merge pull request `#1742 `_ from amilcarlucas/correct_rpm_units + ESCTelemetryItem.msg: correct RPM units +* ESCTelemetryItem.msg: correct RPM units +* Merge pull request `#1727 `_ from BV-OpenSource/pr-cellular-status + Pr cellular status +* Add CellularStatus plugin and message +* Contributors: Dr.-Ing. Amilcar do Carmo Lucas, Rui Mendes, Vladimir Ermakov + +1.13.0 (2022-01-13) +------------------- +* Merge pull request `#1690 `_ from mavlink/fix-enum_sensor_orientation + Fix enum sensor_orientation +* re-generate all coglets +* Merge pull request `#1680 `_ from AndersonRayner/new_mav_frames + Add extra MAV_FRAMES to waypoint message +* Merge pull request `#1677 `_ from AndersonRayner/add_terrain + Add plugin for reporting terrain height estimate from the FCU +* More explicitly state "TerrainReport" to allow for future extension of the plugin to support other terrain messages +* Add extra MAV_FRAMES to waypoint message as defined in https://mavlink.io/en/messages/common.html +* Add plugin for reporting terrain height estimate from FCU +* Contributors: Vladimir Ermakov, matt + +1.12.2 (2021-12-12) +------------------- + +1.12.1 (2021-11-29) +------------------- + +1.12.0 (2021-11-27) +------------------- + +1.11.1 (2021-11-24) +------------------- + +1.11.0 (2021-11-24) +------------------- +* msgs: use pragmas to ignore unaligned pointer warnings +* msgs: fix convert const +* msgs: try to hide 'unaligned pointer' warning +* Merge pull request `#1651 `_ from Jaeyoung-Lim/pr-image-capture-plugin + Add camera plugin for interfacing with mavlink camera protocol +* Address review comments +* Add camera plugin for interfacing with mavlink camera protocol + Add camera image captured message for handling camera trigger information +* msgs: add yaw field to GPS_INPUT +* Contributors: Jaeyoung-Lim, Vladimir Ermakov + +1.10.0 (2021-11-04) +------------------- +* msgs: update gpsraw to have yaw field +* Merge pull request `#1625 `_ from scoutdi/tunnel-plugin + Plugin for TUNNEL messages +* Tunnel.msg: Generate enum with cog +* mavros_msgs: Add Tunnel message +* Merge pull request `#1623 `_ from amilcarlucas/pr/more-typo-fixes + More typo fixes +* MountControl.msg: fix copy-paste +* Contributors: Dr.-Ing. Amilcar do Carmo Lucas, Morten Fyhn Amundsen, Vladimir Ermakov + +1.9.0 (2021-09-09) +------------------ +* Merge pull request `#1616 `_ from amilcarlucas/pr/RC_CHANNELS-mavlink2-extensions + Mavlink v2.0 specs for RC_CHANNELS_OVERRIDE accepts upto 18 channels.… +* Changed OverrideRCIn to 18 channels +* Merge pull request `#1617 `_ from amilcarlucas/pr/NAV_CONTROLLER_OUTPUT-plugin + Added NAV_CONTROLLER_OUTPUT Plugin +* Merge pull request `#1618 `_ from amilcarlucas/pr/GPS_INPUT-plugin + Added GPS_INPUT plugin +* Mavlink v2.0 specs for RC_CHANNELS_OVERRIDE accepts upto 18 channels. The plugin publishes channels 9 to 18 if the FCU protocol version is 2.0 +* Added NAV_CONTROLLER_OUTPUT Plugin +* Added GPS_INPUT plugin +* Merge branch 'master' into master +* Update esc_status plugin with datatype change on MAVLink. + ESC_INFO MAVLink message was updated to have negative temperates and also at a different resolution. This commit updates those changes on this side. +* Remove Mount_Status plugin. Add Status data to Mount_Control plugin. Remove Mount_Status message. +* msgs: fix types for apm's esc telemetry +* actually allocate memory for the telemetry information +* added esc_telemetry plugin +* Add Mount angles message for communications with ardupilotmega. +* Remove extra message from CMakeLists. +* Add message and service definition. +* Contributors: Abhijith Thottumadayil Jagadeesh, André Filipe, Dr.-Ing. Amilcar do Carmo Lucas, Karthik Desai, Ricardo Marques, Russell, Vladimir Ermakov + +1.8.0 (2021-05-05) +------------------ + +1.7.1 (2021-04-05) +------------------ +* re-generate all pymavlink enums +* Contributors: Vladimir Ermakov + +1.7.0 (2021-04-05) +------------------ +* msgs: re-generate the code +* Contributors: Vladimir Ermakov + +1.6.0 (2021-02-15) +------------------ + +1.5.2 (2021-02-02) +------------------ + +1.5.1 (2021-01-04) +------------------ + +1.5.0 (2020-11-11) +------------------ +* mavros_msgs/VehicleInfo: Add flight_custom_version field + Mirroring the field in the corresponding MAVLink message. +* mavros_msgs/State: Fix PX4 flight mode constants + Turns out ROS message string literals don't need quotes, + so adding quotes creates strings including the quotes. +* mavros_msgs/State: Add flight mode constants +* mavros_msgs: Don't move temporary objects +* Contributors: Morten Fyhn Amundsen + +1.4.0 (2020-09-11) +------------------ +* play_tune: Assign tune format directly +* play_tune: Write new plugin +* Contributors: Morten Fyhn Amundsen + +1.3.0 (2020-08-08) +------------------ +* Add esc_status plugin. +* Add gps_status plugin to publish GPS_RAW and GPS_RTK messages from FCU. + The timestamps for the gps_status topics take into account the mavlink time and uses the convienence function +* adding support for publishing rtkbaseline msgs over ROS +* Contributors: CSCE439, Dr.-Ing. Amilcar do Carmo Lucas, Ricardo Marques + +1.2.0 (2020-05-22) +------------------ +* add yaw to CMD_DO_SET_HOME +* Contributors: David Jablonski + +1.1.0 (2020-04-04) +------------------ + +1.0.0 (2020-01-01) +------------------ + +0.33.4 (2019-12-12) +------------------- +* Splitted the message fields. +* Updated esimator status msg according to the new cog based definition of estimator status. +* Added comments to msg. +* Added new line char at end of message. +* Added a publisher for estimator status message received from mavlink in sys_status. +* Contributors: saifullah3396 + +0.33.3 (2019-11-13) +------------------- + +0.33.2 (2019-11-13) +------------------- + +0.33.1 (2019-11-11) +------------------- +* resolved merge conflict +* Contributors: David Jablonski + +0.33.0 (2019-10-10) +------------------- +* Add vtol transition service +* Apply comments +* Add mount configure service message +* cog: Update all generated code +* added manual flag to mavros/state +* use header.stamp to fill mavlink msg field time_usec +* use cog for copy +* adapt message and plugin after mavlink message merge +* rename message and adjust fields +* add component id to mavros message to distinguish ROS msgs from different systems +* component_status message and plugin draft +* Contributors: David Jablonski, Jaeyoung-Lim, Vladimir Ermakov, baumanta + +0.32.2 (2019-09-09) +------------------- + +0.32.1 (2019-08-08) +------------------- + +0.32.0 (2019-07-06) +------------------- +* add mav_cmd associated with each point in trajectory plugin +* Use MountControl Msg +* Define new MountControl.msg +* Contributors: Jaeyoung-Lim, Martina Rivizzigno + +0.31.0 (2019-06-07) +------------------- +* mavros_msgs: LandingTarget: update msg description link +* extras: landing target: improve usability and flexibility +* Contributors: TSC21 + +0.30.0 (2019-05-20) +------------------- + +0.29.2 (2019-03-06) +------------------- + +0.29.1 (2019-03-03) +------------------- +* All: catkin lint files +* mavros_msgs: Fix line endings for OpticalFlowRad message +* Contributors: Pierre Kancir, sfalexrog + +0.29.0 (2019-02-02) +------------------- +* Fix broken documentation URLs +* Merge branch 'master' into param-timeout +* mavros_extras: Wheel odometry plugin updated according to the final mavlink WHEEL_DISTANCE message. +* mavros_msgs: Float32ArrayStamped replaced by WheelOdomStamped. +* mavros_msgs: Float32ArrayStamped message added. + For streaming timestamped data from FCU sensors (RPM, WHEEL_DISTANCE, etc.) +* msgs: Fix message id type, mavlink v2 uses 24 bit msg ids +* mavros_msgs: add MessageInterval.srv to CMakeLists +* sys_status: add set_message_interval service +* Contributors: Dr.-Ing. Amilcar do Carmo Lucas, Pavlo Kolomiiets, Randy Mackay, Vladimir Ermakov + +0.28.0 (2019-01-03) +------------------- +* plugin:param: publish new param value +* Merge pull request `#1148 `_ from Kiwa21/pr-param-value + param plugin : add msg and publisher to catch latest param value +* msgs: update Header +* sys_state: Small cleanup of `#1150 `_ +* VehicleInfo : add srv into sys_status plugin to request basic info from vehicle +* mavros_msgs/msg/LogData.msg: Define "offset" field to be of type uint32 +* param plugin : add msg and publisher to catch latest param value +* style clean up +* Use component_id to determine message sender +* change message name from COMPANION_STATUS to COMPANION_PROCESS_STATUS +* change message to include pid +* Change from specific avoidance status message to a more generic companion status message +* Add message for avoidance status +* Contributors: Gregoire Linard, Vladimir Ermakov, baumanta, mlvov + +0.27.0 (2018-11-12) +------------------- +* Add service to send mavlink TRIGG_INTERVAL commands + Adapt trigger_control service to current mavlink cmd spec. Add a new service to change trigger interval and integration time +* Contributors: Moritz Zimmermann + +0.26.3 (2018-08-21) +------------------- +* fixup! 5a4344a2dcedc157f93b620cebd2e0b273ec24be +* mavros_msgs: Add msg and srv files related to log transfer +* Contributors: mlvov + +0.26.2 (2018-08-08) +------------------- +* Updating the gps_rtk plugin to fit mavros guidelines: + - Updating max_frag_len to allow changes in size in MAVLink seamlessly + - Using std::copy instead of memset + - Zero fill with std::fill + - Preapply the sequence flags + - Use of std iterators + - Add the maximal data size in the mavros_msgs +* Renaming the GPS RTK module, Adding fragmentation, Changing the RTCM message +* RTK Plugin; to forward RTCM messages + Signed-off-by: Alexis Paques +* Contributors: Alexis Paques + +0.26.1 (2018-07-19) +------------------- + +0.26.0 (2018-06-06) +------------------- +* mavros_msgs : add timesync status message +* Contributors: Mohammed Kabir + +0.25.1 (2018-05-14) +------------------- + +0.25.0 (2018-05-11) +------------------- +* trajectory: add time_horizon field +* change message name from ObstacleAvoidance to Trajectory since it is + general enough to support any type of trajectory +* CMakeLists: add ObstacleAvoidance message +* add ObstacleAvoidance message +* msgs: Update message doc link +* CommandCode: update list of available commands on MAV_CMD enum (`#995 `_) +* Contributors: Martina, Nuno Marques, Vladimir Ermakov + +0.24.0 (2018-04-05) +------------------- +* Add ability to send STATUSTEXT messages +* Contributors: Anass Al + +0.23.3 (2018-03-09) +------------------- + +0.23.2 (2018-03-07) +------------------- + +0.23.1 (2018-02-27) +------------------- + +0.23.0 (2018-02-03) +------------------- + +0.22.0 (2017-12-11) +------------------- +* SetMavFrame.srv: add FRAME\_ prefix +* Add cog for SetMavFrame.srv +* Setpoints: add service to specify frame +* Contributors: Pierre Kancir, khancyr + +0.21.5 (2017-11-16) +------------------- + +0.21.4 (2017-11-01) +------------------- + +0.21.3 (2017-10-28) +------------------- +* plugin waypoints: Use stamped message +* add debug plugin +* Contributors: TSC21, Vladimir Ermakov + +0.21.2 (2017-09-25) +------------------- + +0.21.1 (2017-09-22) +------------------- + +0.21.0 (2017-09-14) +------------------- +* plugin waypoint: Rename current seq in wp list message +* waypoint: Publish current waypoint seq +* waypoint partial: code style cleanup +* waypoint partial: extend existing service +* Partial waypoint: added wp_transfered to push partial service response +* Partial waypoint: added partial updating to mavwp +* Contributors: James Mare, James Stewart, Vladimir Ermakov + +0.20.1 (2017-08-28) +------------------- + +0.20.0 (2017-08-23) +------------------- +* HIL Plugin + * add HilSensor.msg, HilStateQuaternion.msg, and add them in CMakeLists.txt + * Add hil_sensor.cpp plugin to send HIL_SENSOR mavlink message to FCU. + * fix HilSensor.msg. Make it more compact. + * Fix HilStateQuaternion.msg. Make it more compact. + * Add hil_state_quaternion plugin + * fix files: some variable names were wrong+some syntax problems + * fix syntax error in plugin .cpp files, make msg files match corresponding mavlink definitions + * fix plugin source files + * fix syntax + * fix function name. It was wrong. + * add HIL_GPS plugin + * add HilGPS.msg to CMakeList + * fix missing semicolon + * fix call of class name + * Add ACTUATOR_CONTROL_TARGET MAVLink message + * fix code + * increase number of fake satellites + * control sensor and control rates + * change control rate + * change control rate + * fix fake gps rate + * fix + * fix plugin_list + * fix + * remove unnecessary hil_sensor_mixin + * update HilSensor.msg and usage + * update HilStateQuaterion.msg and usage + * redo some changes; update HilGPS.msg and usage + * update hil_controls msg - use array of floats for aux channels + * merge actuator_control with actuator_control_target + * remove hil_sensor_mixin.h + * update actuator_control logic + * merge all plugins into a single one + * delete the remaining plugin files + * update description + * redo some changes; reduce LOC + * fix type cast on gps coord + * add HIL_OPTICAL_FLOW send based on OpticalFlowRad sub + * update authors list + * update subscribers names + * refactor gps coord convention + * add HIL_RC_INPUTS_RAW sender; cog protec msg structure and content + * apply correct rc_in translation; redo cog + * apply proper rotations and frame transforms + * remote throttle + * fix typo and msg api + * small changes + * refactor rcin_raw_cb + * new refactor to rcin_raw_cb arrays + * update velocity to meters + * readjust all the units so to match mavlink msg def + * update cog + * correct cog conversion + * refefine msg definitions to remove overhead + * hil: apply frame transform to body frame +* msgs fix `#625 `_: Rename SetMode.Response.success to mode_sent +* [WIP] Plugins: setpoint_attitude: add sync between thrust and attitude (`#700 `_) + * plugins: setpoint_attitude: add sync between throttle and attitude topics to be sent together + * plugins: typo correction: replace throttle with thrust + * plugins: msgs: setpoint_attitude: replaces Float32Stamped for Thrust msg + * plugins: setpoint_attitude: add sync between twist and thrust (RPY+Thrust) + * setpoint_attitude: update the logic of thrust normalization verification + * setpoint_attitude: implement sync between tf listener and thrust subscriber + * TF sync listener: generalize topic type that can be syncronized with TF2 + * TF2ListenerMixin: keep class template, use template for tf sync method only + * TF2ListenerMixin: fix and improve sync tf2_start method + * general update to yaml config files and parameters + * setpoint_attitude: add note on Thrust sub name + * setpoint_attitude: TF sync: pass subscriber pointer instead of binding it +* Use GeographicLib tools to guarantee ROS msg def and enhance features (`#693 `_) + * first commit + * Check for GeographicLib first without having to install it from the beginning each compile time + * add necessary cmake files + * remove gps_conversions.h and use GeographicLib to obtain the UTM coordinates + * move conversion functions to utils.h + * geographic conversions: update CMakeLists and package.xml + * geographic conversions: force download of the datasets + * geographic conversions: remove unneeded cmake module + * dependencies: use SHARED libs of geographiclib + * dependencies: correct FindGeographicLib.cmake so it can work for common Debian platforms + * CMakeList: do not be so restrict about GeographicLib dependency + * global position: odometry-use ECEF instead of UTM; update other fields + * global position: make travis happy + * global position: fix ident + * global_position: apply correct frames and frame transforms given each coordinate frame + * global_position: convert rcvd global origin to ECEF + * global_position: be more explicit about the ecef-enu transform + * global position: use home position as origin of map frame + * global position: minor refactoring + * global position: shield code with exception catch + * fix identation + * move dataset install to script; update README with new functionalities + * update README with warning + * global_position: fix identation + * update HomePosition to be consistent with the conversions in global_position to ensure the correct transformation of height + * home|global_position: fix compile errors, logic and dependencies + * home position: add height conversion + * travis: update to get datasets + * install geo dataset: update to verify alternative dataset folders + * travis: remove dataset install to allow clean build + * hp and gp: initialize geoid dataset once and make it thread safe + * README: update description relative to GeographicLib; fix typos + * global position: improve doxygen references + * README: update with some tips on rosdep install +* update ExtendedState with new MAV_LANDED_STATE enum +* Contributors: Nicklas Stockton, Nuno Marques, Vladimir Ermakov + +0.19.0 (2017-05-05) +------------------- +* msgs: Add cog script to finish ADSBVehicle.msg +* extras: Add ADSB plugin +* plugin `#695 `_: Fix plugin +* plugin: Add home_position +* Contributors: Nuno Marques, Vladimir Ermakov + +0.18.7 (2017-02-24) +------------------- +* trigger interface : rename to cycle_time to be consistent with PX4 +* Contributors: Kabir Mohammed + +0.18.6 (2017-02-07) +------------------- +* Plugins: system_status change status field to system_status + Add comment to State.msg for system_status enum +* Plugins: add system_status to state message +* Contributors: Pierre Kancir + +0.18.5 (2016-12-12) +------------------- + +0.18.4 (2016-11-11) +------------------- +* msgs: Fix `#609 `_ +* add hil_actuator_controls mavlink message +* Contributors: Beat Kung, Vladimir Ermakov + +0.18.3 (2016-07-07) +------------------- + +0.18.2 (2016-06-30) +------------------- + +0.18.1 (2016-06-24) +------------------- + +0.18.0 (2016-06-23) +------------------- +* Adding anchor to the HIL_CONTROLS message reference link +* Utilizing synchronise_stamp and adding reference to MAVLINK msg documentation +* Added a plugin that publishes HIL_CONTROLS as ROS messages +* node: Rename plugib base class - API incompatible to old class +* msgs `#543 `_: Update for MAVLink 2.0 +* Contributors: Pavel, Vladimir Ermakov + +0.17.3 (2016-05-20) +------------------- + +0.17.2 (2016-04-29) +------------------- + +0.17.1 (2016-03-28) +------------------- + +0.17.0 (2016-02-09) +------------------- +* rebased with master +* Contributors: francois + +0.16.6 (2016-02-04) +------------------- + +0.16.5 (2016-01-11) +------------------- + +0.16.4 (2015-12-14) +------------------- +* Update mavlink message documentation links +* remove "altitude\_" prefix from members +* implemented altitude plugin +* Contributors: Andreas Antener, Vladimir Ermakov + +0.16.3 (2015-11-19) +------------------- + +0.16.2 (2015-11-17) +------------------- + +0.16.1 (2015-11-13) +------------------- + +0.16.0 (2015-11-09) +------------------- +* msgs `#418 `_: add message for attitude setpoints +* plugin: waypoint fix `#414 `_: remove GOTO service. + It is replaced with more standard global setpoint messages. +* msgs `#415 `_: Add message for raw global setpoint +* msgs `#402 `_: PositionTarget message type +* setting constant values and reference docs +* pass new extended state to ros +* msgs `#371 `_: add missing message +* msgs `#371 `_: add HomePosition message +* Contributors: Andreas Antener, Vladimir Ermakov + +0.15.0 (2015-09-17) +------------------- +* msgs `#286 `_: fix bug with packet header. +* msgs `#286 `_: Add valid flag and checksum to Mavlink.msg +* plugin: manual_control: Use shared pointer message + Fix alphabetic order of msgs. +* removed old commend in .msg file +* Add MANUAL_CONTROL handling with new plugin +* Contributors: Vladimir Ermakov, v01d + +0.14.2 (2015-08-20) +------------------- + +0.14.1 (2015-08-19) +------------------- + +0.14.0 (2015-08-17) +------------------- +* msgs: Add mixer group constants ActuatorControl +* msgs: Add notes to message headers. +* msgs: sort msgs in alphabetical order +* msgs: use std::move for mavlink->ros convert +* msgs: add note about convert function +* msgs: change description, make catkin lint happy +* msgs: move convert functions to msgs package. +* msgs: fix message generator and runtime depent tags +* msgs: remove never used Mavlink.fromlcm field. +* msgs: add package name for all non basic types +* msgs: fix msgs build +* msgs `#354 `_: move all messages to mavros_msgs package. +* Contributors: Vladimir Ermakov diff --git a/src/external/mavros_msgs/CMakeLists.txt b/src/external/mavros_msgs/CMakeLists.txt new file mode 100644 index 0000000..a3220b0 --- /dev/null +++ b/src/external/mavros_msgs/CMakeLists.txt @@ -0,0 +1,208 @@ +cmake_minimum_required(VERSION 3.5) +project(mavros_msgs) + +# Default to C++14 +if(NOT CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 14) +endif() +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + # we dont use add_compile_options with pedantic in message packages + # because the Python C extensions dont comply with it + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic") +endif() + +find_package(ament_cmake REQUIRED) +find_package(rosidl_default_generators REQUIRED) +find_package(builtin_interfaces REQUIRED) +find_package(rcl_interfaces REQUIRED) +find_package(geographic_msgs REQUIRED) +find_package(geometry_msgs REQUIRED) +find_package(std_msgs REQUIRED) +find_package(sensor_msgs REQUIRED) + +# include_directories(include) + +# [[[cog: +# import mavros_cog +# ]]] +# [[[end]]] (checksum: d41d8cd98f00b204e9800998ecf8427e) + +set(msg_files + # [[[cog: + # mavros_cog.outl_glob_files('msg', '*.msg') + # ]]] + msg/ADSBVehicle.msg + msg/ActuatorControl.msg + msg/Altitude.msg + msg/AttitudeTarget.msg + msg/CamIMUStamp.msg + msg/CameraImageCaptured.msg + msg/CellularStatus.msg + msg/CommandCode.msg + msg/CompanionProcessStatus.msg + msg/DebugValue.msg + msg/ESCInfo.msg + msg/ESCInfoItem.msg + msg/ESCStatus.msg + msg/ESCStatusItem.msg + msg/ESCTelemetry.msg + msg/ESCTelemetryItem.msg + msg/EstimatorStatus.msg + msg/ExtendedState.msg + msg/FileEntry.msg + msg/GPSINPUT.msg + msg/GPSRAW.msg + msg/GPSRTK.msg + msg/GimbalDeviceAttitudeStatus.msg + msg/GimbalDeviceInformation.msg + msg/GimbalDeviceSetAttitude.msg + msg/GimbalManagerInformation.msg + msg/GimbalManagerSetAttitude.msg + msg/GimbalManagerSetPitchyaw.msg + msg/GimbalManagerStatus.msg + msg/GlobalPositionTarget.msg + msg/HilActuatorControls.msg + msg/HilControls.msg + msg/HilGPS.msg + msg/HilSensor.msg + msg/HilStateQuaternion.msg + msg/HomePosition.msg + msg/LandingTarget.msg + msg/LogData.msg + msg/LogEntry.msg + msg/MagnetometerReporter.msg + msg/ManualControl.msg + msg/Mavlink.msg + msg/MountControl.msg + msg/NavControllerOutput.msg + msg/OnboardComputerStatus.msg + msg/OpticalFlow.msg + msg/OpticalFlowRad.msg + msg/OverrideRCIn.msg + msg/Param.msg + msg/ParamEvent.msg + msg/ParamValue.msg + msg/PlayTuneV2.msg + msg/PositionTarget.msg + msg/RCIn.msg + msg/RCOut.msg + msg/RTCM.msg + msg/RTKBaseline.msg + msg/RadioStatus.msg + msg/State.msg + msg/StatusEvent.msg + msg/StatusText.msg + msg/SysStatus.msg + msg/TerrainReport.msg + msg/Thrust.msg + msg/TimesyncStatus.msg + msg/Trajectory.msg + msg/Tunnel.msg + msg/VehicleInfo.msg + msg/VfrHud.msg + msg/Vibration.msg + msg/Waypoint.msg + msg/WaypointList.msg + msg/WaypointReached.msg + msg/WheelOdomStamped.msg + # [[[end]]] (checksum: a8e24eb0a6da5cea6cc049fdc6b2612e) +) + +set(srv_files + # [[[cog: + # mavros_cog.outl_glob_files('srv', '*.srv') + # ]]] + srv/CommandAck.srv + srv/CommandBool.srv + srv/CommandHome.srv + srv/CommandInt.srv + srv/CommandLong.srv + srv/CommandTOL.srv + srv/CommandTOLLocal.srv + srv/CommandTriggerControl.srv + srv/CommandTriggerInterval.srv + srv/CommandVtolTransition.srv + srv/EndpointAdd.srv + srv/EndpointDel.srv + srv/FileChecksum.srv + srv/FileClose.srv + srv/FileList.srv + srv/FileMakeDir.srv + srv/FileOpen.srv + srv/FileRead.srv + srv/FileRemove.srv + srv/FileRemoveDir.srv + srv/FileRename.srv + srv/FileTruncate.srv + srv/FileWrite.srv + srv/GimbalGetInformation.srv + srv/GimbalManagerCameraTrack.srv + srv/GimbalManagerConfigure.srv + srv/GimbalManagerPitchyaw.srv + srv/GimbalManagerSetRoi.srv + srv/LogRequestData.srv + srv/LogRequestEnd.srv + srv/LogRequestList.srv + srv/MessageInterval.srv + srv/MountConfigure.srv + srv/ParamGet.srv + srv/ParamPull.srv + srv/ParamPush.srv + srv/ParamSet.srv + srv/ParamSetV2.srv + srv/SetMavFrame.srv + srv/SetMode.srv + srv/StreamRate.srv + srv/VehicleInfoGet.srv + srv/WaypointClear.srv + srv/WaypointPull.srv + srv/WaypointPush.srv + srv/WaypointSetCurrent.srv + # [[[end]]] (checksum: cd7701b28a3176d96ef65cb1f2157917) +) + +rosidl_generate_interfaces(${PROJECT_NAME} + ${msg_files} + ${srv_files} + DEPENDENCIES + builtin_interfaces + rcl_interfaces + geographic_msgs + geometry_msgs + sensor_msgs + std_msgs +) + +ament_export_dependencies(rosidl_default_runtime) + +install( + FILES mavros_msgs_mapping_rule.yaml + DESTINATION share/${PROJECT_NAME} +) + +if(rcl_interfaces_VERSION VERSION_LESS "1.2.0") + install( + DIRECTORY include/ + DESTINATION include + FILES_MATCHING PATTERN "*.hpp" + ) +else() + # NOTE(vooon): Humble + install( + DIRECTORY include/ + DESTINATION include/mavros_msgs + FILES_MATCHING PATTERN "*.hpp" + ) +endif() + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + + # NOTE(vooon): Does not support our custom triple-license, tiered to make it to work. + list(APPEND AMENT_LINT_AUTO_EXCLUDE ament_cmake_copyright) + + ament_lint_auto_find_test_dependencies() +endif() + +ament_package() +# vim: ts=2 sw=2 et: diff --git a/src/external/mavros_msgs/include/mavros_msgs/mavlink_convert.hpp b/src/external/mavros_msgs/include/mavros_msgs/mavlink_convert.hpp new file mode 100644 index 0000000..6241e8a --- /dev/null +++ b/src/external/mavros_msgs/include/mavros_msgs/mavlink_convert.hpp @@ -0,0 +1,145 @@ +// +// Copyright 2015,2016,2021 Vladimir Ermakov. +// +// This file is part of the mavros package and subject to the license terms +// in the top-level LICENSE file of the mavros repository. +// https://github.com/mavlink/mavros/tree/master/LICENSE.md +// +/** + * @brief Mavlink convert utils + * @file + * @author Vladimir Ermakov + */ + +#pragma once +#ifndef MAVROS_MSGS__MAVLINK_CONVERT_HPP_ +#define MAVROS_MSGS__MAVLINK_CONVERT_HPP_ + +#include +#include + +#include + +namespace mavros_msgs +{ +namespace mavlink +{ + +using ::mavlink::mavlink_message_t; +using mavros_msgs::msg::Mavlink; + +// [[[cog: +// FIELD_NAMES = [ +// "magic", +// "len", +// "incompat_flags", +// "compat_flags", +// "seq", +// "sysid", +// "compid", +// "msgid", +// "checksum", +// ] +// ]]] +// [[[end]]] (checksum: d41d8cd98f00b204e9800998ecf8427e) + +// NOTE(vooon): Ignore impossible warning as +// memcpy() should work with unaligned pointers without any trouble. +// +// warning: taking address of packed member of ‘mavlink::__mavlink_message’ +// may result in an unaligned pointer value +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Waddress-of-packed-member" + +/** + * @brief Convert mavros_msgs/Mavlink message to mavlink_message_t + * + * @note signature vector should be empty for unsigned OR + * MAVLINK_SIGNATURE_BLOCK size for signed messages + * + * @param[in] rmsg mavros_msgs/Mavlink message + * @param[out] mmsg mavlink_message_t struct + * @return true if success + */ +inline bool convert(const Mavlink & rmsg, mavlink_message_t & mmsg) +{ + if (rmsg.payload64.size() > sizeof(mmsg.payload64) / sizeof(mmsg.payload64[0])) { + return false; + } + + if (!rmsg.signature.empty() && rmsg.signature.size() != sizeof(mmsg.signature)) { + return false; + } + + // [[[cog: + // for f in FIELD_NAMES: + // cog.outl(f"mmsg.{f} = rmsg.{f};") + // ]]] + mmsg.magic = rmsg.magic; + mmsg.len = rmsg.len; + mmsg.incompat_flags = rmsg.incompat_flags; + mmsg.compat_flags = rmsg.compat_flags; + mmsg.seq = rmsg.seq; + mmsg.sysid = rmsg.sysid; + mmsg.compid = rmsg.compid; + mmsg.msgid = rmsg.msgid; + mmsg.checksum = rmsg.checksum; + // [[[end]]] (checksum: 0b66f0fc1cd46db0f18a2429c56a6b8c) + std::copy(rmsg.payload64.begin(), rmsg.payload64.end(), mmsg.payload64); + std::copy(rmsg.signature.begin(), rmsg.signature.end(), mmsg.signature); + + return true; +} + +/** + * @brief Convert mavlink_message_t to mavros/Mavlink + * + * @param[in] mmsg mavlink_message_t struct + * @param[out] rmsg mavros_msgs/Mavlink message + * @param[in] framing_status framing parse result (OK, BAD_CRC or BAD_SIGNATURE) + * @return true, this convertion can't fail + */ +inline bool convert( + const mavlink_message_t & mmsg, Mavlink & rmsg, + uint8_t framing_status = Mavlink::FRAMING_OK) +{ + const size_t payload64_len = (mmsg.len + 7) / 8; + + rmsg.framing_status = framing_status; + + // [[[cog: + // for f in FIELD_NAMES: + // cog.outl(f"rmsg.{f} = mmsg.{f};") + // ]]] + rmsg.magic = mmsg.magic; + rmsg.len = mmsg.len; + rmsg.incompat_flags = mmsg.incompat_flags; + rmsg.compat_flags = mmsg.compat_flags; + rmsg.seq = mmsg.seq; + rmsg.sysid = mmsg.sysid; + rmsg.compid = mmsg.compid; + rmsg.msgid = mmsg.msgid; + rmsg.checksum = mmsg.checksum; + // [[[end]]] (checksum: 64ef6c1af60c622ed427e005d8ca4f2a) + rmsg.payload64.assign( + mmsg.payload64, + mmsg.payload64 + payload64_len); + + // copy signature block only if message is signed + if (mmsg.incompat_flags & MAVLINK_IFLAG_SIGNED) { + rmsg.signature.assign( + mmsg.signature, + mmsg.signature + sizeof(mmsg.signature)); + } else { + rmsg.signature.clear(); + } + + return true; +} + +#pragma GCC diagnostic pop + +} // namespace mavlink +} // namespace mavros_msgs + +#endif // MAVROS_MSGS__MAVLINK_CONVERT_HPP_ diff --git a/src/external/mavros_msgs/mavros_msgs_mapping_rule.yaml b/src/external/mavros_msgs/mavros_msgs_mapping_rule.yaml new file mode 100644 index 0000000..9f69364 --- /dev/null +++ b/src/external/mavros_msgs/mavros_msgs_mapping_rule.yaml @@ -0,0 +1,8 @@ +# This file defines mappings between ROS 1 and ROS 2 interfaces. +# It is used with the ros1_bridge to allow for communcation between ROS 1 and ROS 2. + +- + ros1_package_name: 'mavros_msgs' + ros1_message_name: 'VFR_HUD' + ros2_package_name: 'mavros_msgs' + ros2_message_name: 'VfrHud' diff --git a/src/external/mavros_msgs/msg/ADSBVehicle.msg b/src/external/mavros_msgs/msg/ADSBVehicle.msg new file mode 100644 index 0000000..44b9caa --- /dev/null +++ b/src/external/mavros_msgs/msg/ADSBVehicle.msg @@ -0,0 +1,66 @@ +# The location and information of an ADSB vehicle +# +# https://mavlink.io/en/messages/common.html#ADSB_VEHICLE + +# [[[cog: +# import mavros_cog +# mavros_cog.idl_decl_enum('ADSB_ALTITUDE_TYPE', 'ALT_') +# mavros_cog.idl_decl_enum('ADSB_EMITTER_TYPE', 'EMITTER_') +# mavros_cog.idl_decl_enum('ADSB_FLAGS', 'FLAG_', 16) +# ]]] +# ADSB_ALTITUDE_TYPE +uint8 ALT_PRESSURE_QNH = 0 # Altitude reported from a Baro source using QNH reference +uint8 ALT_GEOMETRIC = 1 # Altitude reported from a GNSS source +# ADSB_EMITTER_TYPE +uint8 EMITTER_NO_INFO = 0 +uint8 EMITTER_LIGHT = 1 +uint8 EMITTER_SMALL = 2 +uint8 EMITTER_LARGE = 3 +uint8 EMITTER_HIGH_VORTEX_LARGE = 4 +uint8 EMITTER_HEAVY = 5 +uint8 EMITTER_HIGHLY_MANUV = 6 +uint8 EMITTER_ROTOCRAFT = 7 +uint8 EMITTER_UNASSIGNED = 8 +uint8 EMITTER_GLIDER = 9 +uint8 EMITTER_LIGHTER_AIR = 10 +uint8 EMITTER_PARACHUTE = 11 +uint8 EMITTER_ULTRA_LIGHT = 12 +uint8 EMITTER_UNASSIGNED2 = 13 +uint8 EMITTER_UAV = 14 +uint8 EMITTER_SPACE = 15 +uint8 EMITTER_UNASSGINED3 = 16 +uint8 EMITTER_EMERGENCY_SURFACE = 17 +uint8 EMITTER_SERVICE_SURFACE = 18 +uint8 EMITTER_POINT_OBSTACLE = 19 +# ADSB_FLAGS +uint16 FLAG_VALID_COORDS = 1 +uint16 FLAG_VALID_ALTITUDE = 2 +uint16 FLAG_VALID_HEADING = 4 +uint16 FLAG_VALID_VELOCITY = 8 +uint16 FLAG_VALID_CALLSIGN = 16 +uint16 FLAG_VALID_SQUAWK = 32 +uint16 FLAG_SIMULATED = 64 +uint16 FLAG_VERTICAL_VELOCITY_VALID = 128 +uint16 FLAG_BARO_VALID = 256 +uint16 FLAG_SOURCE_UAT = 32768 +# [[[end]]] (checksum: a34f2a081739921b6e3e443ed0516d8d) + +std_msgs/Header header + +uint32 icao_address +string callsign + +float64 latitude +float64 longitude +float32 altitude # AMSL + +float32 heading # deg [0..360) +float32 hor_velocity # m/s +float32 ver_velocity # m/s + +uint8 altitude_type # Type from ADSB_ALTITUDE_TYPE enum +uint8 emitter_type # Type from ADSB_EMITTER_TYPE enum + +builtin_interfaces/Duration tslc # Duration from last communication, seconds [0..255] +uint16 flags # ADSB_FLAGS bit field +uint16 squawk # Squawk code diff --git a/src/external/mavros_msgs/msg/ActuatorControl.msg b/src/external/mavros_msgs/msg/ActuatorControl.msg new file mode 100644 index 0000000..5332a08 --- /dev/null +++ b/src/external/mavros_msgs/msg/ActuatorControl.msg @@ -0,0 +1,16 @@ +# raw servo values for direct actuator controls +# +# about groups, mixing and channels: +# https://pixhawk.org/dev/mixing + +# constant for mixer group +uint8 PX4_MIX_FLIGHT_CONTROL = 0 +uint8 PX4_MIX_FLIGHT_CONTROL_VTOL_ALT = 1 +uint8 PX4_MIX_PAYLOAD = 2 +uint8 PX4_MIX_MANUAL_PASSTHROUGH = 3 +#uint8 PX4_MIX_FC_MC_VIRT = 4 +#uint8 PX4_MIX_FC_FW_VIRT = 5 + +std_msgs/Header header +uint8 group_mix +float32[8] controls diff --git a/src/external/mavros_msgs/msg/Altitude.msg b/src/external/mavros_msgs/msg/Altitude.msg new file mode 100644 index 0000000..81ae0a9 --- /dev/null +++ b/src/external/mavros_msgs/msg/Altitude.msg @@ -0,0 +1,12 @@ +# Altitude information +# +# https://mavlink.io/en/messages/common.html#ALTITUDE + +std_msgs/Header header + +float32 monotonic +float32 amsl +float32 local +float32 relative +float32 terrain +float32 bottom_clearance diff --git a/src/external/mavros_msgs/msg/AttitudeTarget.msg b/src/external/mavros_msgs/msg/AttitudeTarget.msg new file mode 100644 index 0000000..a62712b --- /dev/null +++ b/src/external/mavros_msgs/msg/AttitudeTarget.msg @@ -0,0 +1,17 @@ +# Message for SET_ATTITUDE_TARGET +# +# Some complex system requires all feautures that mavlink +# message provide. See issue #402, #418. + +std_msgs/Header header + +uint8 type_mask +uint8 IGNORE_ROLL_RATE = 1 # body_rate.x +uint8 IGNORE_PITCH_RATE = 2 # body_rate.y +uint8 IGNORE_YAW_RATE = 4 # body_rate.z +uint8 IGNORE_THRUST = 64 +uint8 IGNORE_ATTITUDE = 128 # orientation field + +geometry_msgs/Quaternion orientation +geometry_msgs/Vector3 body_rate +float32 thrust diff --git a/src/external/mavros_msgs/msg/CamIMUStamp.msg b/src/external/mavros_msgs/msg/CamIMUStamp.msg new file mode 100644 index 0000000..52b9e8b --- /dev/null +++ b/src/external/mavros_msgs/msg/CamIMUStamp.msg @@ -0,0 +1,4 @@ +# IMU-Camera synchronisation data + +builtin_interfaces/Time frame_stamp # Timestamp when the camera was triggered +int32 frame_seq_id # Sequence number of the image frame diff --git a/src/external/mavros_msgs/msg/CameraImageCaptured.msg b/src/external/mavros_msgs/msg/CameraImageCaptured.msg new file mode 100644 index 0000000..44c1a98 --- /dev/null +++ b/src/external/mavros_msgs/msg/CameraImageCaptured.msg @@ -0,0 +1,11 @@ +# MAVLink message: CAMERA_IMAGE_CAPTURED +# https://mavlink.io/en/messages/common.html#CAMERA_IMAGE_CAPTURED + +std_msgs/Header header + +geometry_msgs/Quaternion orientation # Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0) +geographic_msgs/GeoPoint geo +float32 relative_alt # mm Altitude above ground +int32 image_index # Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1) +int8 capture_result # Boolean indicating success (1) or failure (0) while capturing this image. +string file_url #URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface. diff --git a/src/external/mavros_msgs/msg/CellularStatus.msg b/src/external/mavros_msgs/msg/CellularStatus.msg new file mode 100644 index 0000000..2c9f99f --- /dev/null +++ b/src/external/mavros_msgs/msg/CellularStatus.msg @@ -0,0 +1,9 @@ +#Follows https://mavlink.io/en/messages/common.html#CELLULAR_STATUS specification + +uint8 status +uint8 failure_reason +uint8 type +uint8 quality +uint16 mcc +uint16 mnc +uint16 lac \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/CommandCode.msg b/src/external/mavros_msgs/msg/CommandCode.msg new file mode 100644 index 0000000..00fd7da --- /dev/null +++ b/src/external/mavros_msgs/msg/CommandCode.msg @@ -0,0 +1,200 @@ +# MAV_CMD command codes. +# Actual meaning and params you may find in MAVLink documentation +# https://mavlink.io/en/messages/common.html#MAV_CMD + +# [[[cog: +# import mavros_cog +# mavros_cog.idl_decl_enum_mav_cmd() +# ]]] +# MAV_CMD_AIRFRAME +uint16 AIRFRAME_CONFIGURATION = 2520 + +# MAV_CMD_ARM +uint16 ARM_AUTHORIZATION_REQUEST = 3001 # Request authorization to arm the vehicle to a external entity, the arm authorizer is responsible to request all data that is needs from the vehicle before authorize or deny the request. If approved the progress of command_ack message should be set with period of time that this authorization is valid in seconds or in case it was denied it should be set with one of the reasons in ARM_AUTH_DENIED_REASON. + +# MAV_CMD_CAMERA +uint16 CAMERA_TRACK_POINT = 2004 # If the camera supports point visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_POINT is set), this command allows to initiate the tracking. +uint16 CAMERA_TRACK_RECTANGLE = 2005 # If the camera supports rectangle visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE is set), this command allows to initiate the tracking. +uint16 CAMERA_STOP_TRACKING = 2010 # Stops ongoing tracking. + +# MAV_CMD_CAN +uint16 CAN_FORWARD = 32000 # Request forwarding of CAN packets from the given CAN bus to this interface. CAN Frames are sent using CAN_FRAME and CANFD_FRAME messages + +# MAV_CMD_COMPONENT +uint16 COMPONENT_ARM_DISARM = 400 # Arms / Disarms a component + +# MAV_CMD_CONDITION +uint16 CONDITION_DELAY = 112 # Delay mission state machine. +uint16 CONDITION_CHANGE_ALT = 113 # Ascend/descend to target altitude at specified rate. Delay mission state machine until desired altitude reached. +uint16 CONDITION_DISTANCE = 114 # Delay mission state machine until within desired distance of next NAV point. +uint16 CONDITION_YAW = 115 # Reach a certain target angle. +uint16 CONDITION_LAST = 159 # NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration + +# MAV_CMD_CONTROL +uint16 CONTROL_HIGH_LATENCY = 2600 # Request to start/stop transmitting over the high latency telemetry + +# MAV_CMD_DO +uint16 DO_FOLLOW = 32 # Begin following a target +uint16 DO_FOLLOW_REPOSITION = 33 # Reposition the MAV after a follow target command has been sent +uint16 DO_SET_MODE = 176 # Set system mode. +uint16 DO_JUMP = 177 # Jump to the desired command in the mission list. Repeat this action only the specified number of times +uint16 DO_CHANGE_SPEED = 178 # Change speed and/or throttle set points +uint16 DO_SET_HOME = 179 # Changes the home location either to the current location or a specified location. +uint16 DO_SET_PARAMETER = 180 # Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter. +uint16 DO_SET_RELAY = 181 # Set a relay to a condition. +uint16 DO_REPEAT_RELAY = 182 # Cycle a relay on and off for a desired number of cycles with a desired period. +uint16 DO_SET_SERVO = 183 # Set a servo to a desired PWM value. +uint16 DO_REPEAT_SERVO = 184 # Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period. +uint16 DO_FLIGHTTERMINATION = 185 # Terminate flight immediately +uint16 DO_CHANGE_ALTITUDE = 186 # Change altitude set point. +uint16 DO_LAND_START = 189 # Mission command to perform a landing. This is used as a marker in a mission to tell the autopilot where a sequence of mission items that represents a landing starts. It may also be sent via a COMMAND_LONG to trigger a landing, in which case the nearest (geographically) landing sequence in the mission will be used. The Latitude/Longitude/Altitude is optional, and may be set to 0 if not needed. If specified then it will be used to help find the closest landing sequence. +uint16 DO_RALLY_LAND = 190 # Mission command to perform a landing from a rally point. +uint16 DO_GO_AROUND = 191 # Mission command to safely abort an autonomous landing. +uint16 DO_REPOSITION = 192 # Reposition the vehicle to a specific WGS84 global position. +uint16 DO_PAUSE_CONTINUE = 193 # If in a GPS controlled position mode, hold the current position or continue. +uint16 DO_SET_REVERSE = 194 # Set moving direction to forward or reverse. +uint16 DO_SET_ROI_LOCATION = 195 # Sets the region of interest (ROI) to a location. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. +uint16 DO_SET_ROI_WPNEXT_OFFSET = 196 # Sets the region of interest (ROI) to be toward next waypoint, with optional pitch/roll/yaw offset. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. +uint16 DO_SET_ROI_NONE = 197 # Cancels any previous ROI command returning the vehicle/sensors to default flight characteristics. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. +uint16 DO_SET_ROI_SYSID = 198 # Mount tracks system with specified system ID. Determination of target vehicle position may be done with GLOBAL_POSITION_INT or any other means. +uint16 DO_CONTROL_VIDEO = 200 # Control onboard camera system. +uint16 DO_SET_ROI = 201 # Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. +uint16 DO_DIGICAM_CONFIGURE = 202 # Configure digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ). +uint16 DO_DIGICAM_CONTROL = 203 # Control digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ). +uint16 DO_MOUNT_CONFIGURE = 204 # Mission command to configure a camera or antenna mount +uint16 DO_MOUNT_CONTROL = 205 # Mission command to control a camera or antenna mount +uint16 DO_SET_CAM_TRIGG_DIST = 206 # Mission command to set camera trigger distance for this flight. The camera is triggered each time this distance is exceeded. This command can also be used to set the shutter integration time for the camera. +uint16 DO_FENCE_ENABLE = 207 # Mission command to enable the geofence +uint16 DO_PARACHUTE = 208 # Mission item/command to release a parachute or enable/disable auto release. +uint16 DO_MOTOR_TEST = 209 # Mission command to perform motor test. +uint16 DO_INVERTED_FLIGHT = 210 # Change to/from inverted flight. +uint16 DO_GRIPPER = 211 # Mission command to operate a gripper. +uint16 DO_AUTOTUNE_ENABLE = 212 # Enable/disable autotune. +uint16 DO_SET_CAM_TRIGG_INTERVAL = 214 # Mission command to set camera trigger interval for this flight. If triggering is enabled, the camera is triggered each time this interval expires. This command can also be used to set the shutter integration time for the camera. +uint16 DO_MOUNT_CONTROL_QUAT = 220 # Mission command to control a camera or antenna mount, using a quaternion as reference. +uint16 DO_GUIDED_MASTER = 221 # set id of master controller +uint16 DO_GUIDED_LIMITS = 222 # Set limits for external control +uint16 DO_ENGINE_CONTROL = 223 # Control vehicle engine. This is interpreted by the vehicles engine controller to change the target engine state. It is intended for vehicles with internal combustion engines +uint16 DO_SET_MISSION_CURRENT = 224 # Set the mission item with sequence number seq as current item. This means that the MAV will continue to this mission item on the shortest path (not following the mission items in-between). +uint16 DO_LAST = 240 # NOP - This command is only used to mark the upper limit of the DO commands in the enumeration +uint16 DO_JUMP_TAG = 601 # Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number. +uint16 DO_GIMBAL_MANAGER_PITCHYAW = 1000 # Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate. +uint16 DO_GIMBAL_MANAGER_CONFIGURE = 1001 # Gimbal configuration to set which sysid/compid is in primary and secondary control. +uint16 DO_TRIGGER_CONTROL = 2003 # Enable or disable on-board camera triggering system. +uint16 DO_VTOL_TRANSITION = 3000 # Request VTOL transition +uint16 DO_ADSB_OUT_IDENT = 10001 # Trigger the start of an ADSB-out IDENT. This should only be used when requested to do so by an Air Traffic Controller in controlled airspace. This starts the IDENT which is then typically held for 18 seconds by the hardware per the Mode A, C, and S transponder spec. +uint16 DO_WINCH = 42600 # Command to operate winch. + +# MAV_CMD_FIXED +uint16 FIXED_MAG_CAL_YAW = 42006 # Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location. + +# MAV_CMD_GET +uint16 GET_HOME_POSITION = 410 # Request the home position from the vehicle. +uint16 GET_MESSAGE_INTERVAL = 510 # Request the interval between messages for a particular MAVLink message ID. The receiver should ACK the command and then emit its response in a MESSAGE_INTERVAL message. + +# MAV_CMD_IMAGE +uint16 IMAGE_START_CAPTURE = 2000 # Start image capture sequence. CAMERA_IMAGE_CAPTURED must be emitted after each capture. Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID. It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID). It is also needed to specify the target camera in missions. When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero). If the param1 is 0 the autopilot should do both. When sent in a command the target MAVLink address is set using target_component. If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist). If addressed to a MAVLink camera, param 1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED. If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels. +uint16 IMAGE_STOP_CAPTURE = 2001 # Stop image capture sequence. Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID. It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID). It is also needed to specify the target camera in missions. When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero). If the param1 is 0 the autopilot should do both. When sent in a command the target MAVLink address is set using target_component. If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist). If addressed to a MAVLink camera, param1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED. If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels. + +# MAV_CMD_JUMP +uint16 JUMP_TAG = 600 # Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. + +# MAV_CMD_LOGGING +uint16 LOGGING_START = 2510 # Request to start streaming logging data over MAVLink (see also LOGGING_DATA message) +uint16 LOGGING_STOP = 2511 # Request to stop streaming log data over MAVLink + +# MAV_CMD_MISSION +uint16 MISSION_START = 300 # start running a mission + +# MAV_CMD_NAV +uint16 NAV_WAYPOINT = 16 # Navigate to waypoint. +uint16 NAV_LOITER_UNLIM = 17 # Loiter around this waypoint an unlimited amount of time +uint16 NAV_LOITER_TURNS = 18 # Loiter around this waypoint for X turns +uint16 NAV_LOITER_TIME = 19 # Loiter around this waypoint for X seconds +uint16 NAV_RETURN_TO_LAUNCH = 20 # Return to launch location +uint16 NAV_LAND = 21 # Land at location. +uint16 NAV_TAKEOFF = 22 # Takeoff from ground / hand. Vehicles that support multiple takeoff modes (e.g. VTOL quadplane) should take off using the currently configured mode. +uint16 NAV_LAND_LOCAL = 23 # Land at local position (local frame only) +uint16 NAV_TAKEOFF_LOCAL = 24 # Takeoff from local position (local frame only) +uint16 NAV_FOLLOW = 25 # Vehicle following, i.e. this waypoint represents the position of a moving vehicle +uint16 NAV_CONTINUE_AND_CHANGE_ALT = 30 # Continue on the current course and climb/descend to specified altitude. When the altitude is reached continue to the next command (i.e., don't proceed to the next command until the desired altitude is reached. +uint16 NAV_LOITER_TO_ALT = 31 # Begin loiter at the specified Latitude and Longitude. If Lat=Lon=0, then loiter at the current position. Don't consider the navigation command complete (don't leave loiter) until the altitude has been reached. Additionally, if the Heading Required parameter is non-zero the aircraft will not leave the loiter until heading toward the next waypoint. +uint16 NAV_ROI = 80 # Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. +uint16 NAV_PATHPLANNING = 81 # Control autonomous path planning on the MAV. +uint16 NAV_SPLINE_WAYPOINT = 82 # Navigate to waypoint using a spline path. +uint16 NAV_VTOL_TAKEOFF = 84 # Takeoff from ground using VTOL mode, and transition to forward flight with specified heading. The command should be ignored by vehicles that dont support both VTOL and fixed-wing flight (multicopters, boats,etc.). +uint16 NAV_VTOL_LAND = 85 # Land using VTOL mode +uint16 NAV_GUIDED_ENABLE = 92 # hand control over to an external controller +uint16 NAV_DELAY = 93 # Delay the next navigation command a number of seconds or until a specified time +uint16 NAV_PAYLOAD_PLACE = 94 # Descend and place payload. Vehicle moves to specified location, descends until it detects a hanging payload has reached the ground, and then releases the payload. If ground is not detected before the reaching the maximum descent value (param1), the command will complete without releasing the payload. +uint16 NAV_LAST = 95 # NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration +uint16 NAV_SET_YAW_SPEED = 213 # Sets a desired vehicle turn angle and speed change. +uint16 NAV_FENCE_RETURN_POINT = 5000 # Fence return point (there can only be one such point in a geofence definition). If rally points are supported they should be used instead. +uint16 NAV_FENCE_POLYGON_VERTEX_INCLUSION = 5001 # Fence vertex for an inclusion polygon (the polygon must not be self-intersecting). The vehicle must stay within this area. Minimum of 3 vertices required. +uint16 NAV_FENCE_POLYGON_VERTEX_EXCLUSION = 5002 # Fence vertex for an exclusion polygon (the polygon must not be self-intersecting). The vehicle must stay outside this area. Minimum of 3 vertices required. +uint16 NAV_FENCE_CIRCLE_INCLUSION = 5003 # Circular fence area. The vehicle must stay inside this area. +uint16 NAV_FENCE_CIRCLE_EXCLUSION = 5004 # Circular fence area. The vehicle must stay outside this area. +uint16 NAV_RALLY_POINT = 5100 # Rally point. You can have multiple rally points defined. + +# MAV_CMD_OBLIQUE +uint16 OBLIQUE_SURVEY = 260 # Mission command to set a Camera Auto Mount Pivoting Oblique Survey (Replaces CAM_TRIGG_DIST for this purpose). The camera is triggered each time this distance is exceeded, then the mount moves to the next position. Params 4~6 set-up the angle limits and number of positions for oblique survey, where mount-enabled vehicles automatically roll the camera between shots to emulate an oblique camera setup (providing an increased HFOV). This command can also be used to set the shutter integration time for the camera. + +# MAV_CMD_OVERRIDE +uint16 OVERRIDE_GOTO = 252 # Override current mission with command to pause mission, pause mission and move to position, continue/resume mission. When param 1 indicates that the mission is paused (MAV_GOTO_DO_HOLD), param 2 defines whether it holds in place or moves to another position. + +# MAV_CMD_PANORAMA +uint16 PANORAMA_CREATE = 2800 # Create a panorama at the current position + +# MAV_CMD_PAYLOAD +uint16 PAYLOAD_PREPARE_DEPLOY = 30001 # Deploy payload on a Lat / Lon / Alt position. This includes the navigation to reach the required release position and velocity. +uint16 PAYLOAD_CONTROL_DEPLOY = 30002 # Control the payload deployment. + +# MAV_CMD_PREFLIGHT +uint16 PREFLIGHT_CALIBRATION = 241 # Trigger calibration. This command will be only accepted if in pre-flight mode. Except for Temperature Calibration, only one sensor should be set in a single message and all others should be zero. +uint16 PREFLIGHT_SET_SENSOR_OFFSETS = 242 # Set sensor offsets. This command will be only accepted if in pre-flight mode. +uint16 PREFLIGHT_UAVCAN = 243 # Trigger UAVCAN configuration (actuator ID assignment and direction mapping). Note that this maps to the legacy UAVCAN v0 function UAVCAN_ENUMERATE, which is intended to be executed just once during initial vehicle configuration (it is not a normal pre-flight command and has been poorly named). +uint16 PREFLIGHT_STORAGE = 245 # Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode. +uint16 PREFLIGHT_REBOOT_SHUTDOWN = 246 # Request the reboot or shutdown of system components. + +# MAV_CMD_REQUEST +uint16 REQUEST_MESSAGE = 512 # Request the target system(s) emit a single instance of a specified message (i.e. a "one-shot" version of MAV_CMD_SET_MESSAGE_INTERVAL). +uint16 REQUEST_PROTOCOL_VERSION = 519 # Request MAVLink protocol version compatibility. All receivers should ACK the command and then emit their capabilities in an PROTOCOL_VERSION message +uint16 REQUEST_AUTOPILOT_CAPABILITIES = 520 # Request autopilot capabilities. The receiver should ACK the command and then emit its capabilities in an AUTOPILOT_VERSION message +uint16 REQUEST_CAMERA_INFORMATION = 521 # Request camera information (CAMERA_INFORMATION). +uint16 REQUEST_CAMERA_SETTINGS = 522 # Request camera settings (CAMERA_SETTINGS). +uint16 REQUEST_STORAGE_INFORMATION = 525 # Request storage information (STORAGE_INFORMATION). Use the command's target_component to target a specific component's storage. +uint16 REQUEST_CAMERA_CAPTURE_STATUS = 527 # Request camera capture status (CAMERA_CAPTURE_STATUS) +uint16 REQUEST_FLIGHT_INFORMATION = 528 # Request flight information (FLIGHT_INFORMATION) +uint16 REQUEST_VIDEO_STREAM_INFORMATION = 2504 # Request video stream information (VIDEO_STREAM_INFORMATION) +uint16 REQUEST_VIDEO_STREAM_STATUS = 2505 # Request video stream status (VIDEO_STREAM_STATUS) + +# MAV_CMD_RESET +uint16 RESET_CAMERA_SETTINGS = 529 # Reset all camera settings to Factory Default + +# MAV_CMD_RUN +uint16 RUN_PREARM_CHECKS = 401 # Instructs system to run pre-arm checks. This command should return MAV_RESULT_TEMPORARILY_REJECTED in the case the system is armed, otherwse MAV_RESULT_ACCEPTED. Note that the return value from executing this command does not indicate whether the vehicle is armable or not, just whether the system has successfully run/is currently running the checks. The result of the checks is reflected in the SYS_STATUS message. + +# MAV_CMD_SET +uint16 SET_MESSAGE_INTERVAL = 511 # Set the interval between messages for a particular MAVLink message ID. This interface replaces REQUEST_DATA_STREAM. +uint16 SET_CAMERA_MODE = 530 # Set camera running mode. Use NaN for reserved values. GCS will send a MAV_CMD_REQUEST_VIDEO_STREAM_STATUS command after a mode change if the camera supports video streaming. +uint16 SET_CAMERA_ZOOM = 531 # Set camera zoom. Camera must respond with a CAMERA_SETTINGS message (on success). +uint16 SET_CAMERA_FOCUS = 532 # Set camera focus. Camera must respond with a CAMERA_SETTINGS message (on success). +uint16 SET_GUIDED_SUBMODE_STANDARD = 4000 # This command sets the submode to standard guided when vehicle is in guided mode. The vehicle holds position and altitude and the user can input the desired velocities along all three axes. +uint16 SET_GUIDED_SUBMODE_CIRCLE = 4001 # This command sets submode circle when vehicle is in guided mode. Vehicle flies along a circle facing the center of the circle. The user can input the velocity along the circle and change the radius. If no input is given the vehicle will hold position. + +# MAV_CMD_START +uint16 START_RX_PAIR = 500 # Starts receiver pairing. + +# MAV_CMD_STORAGE +uint16 STORAGE_FORMAT = 526 # Format a storage medium. Once format is complete, a STORAGE_INFORMATION message is sent. Use the command's target_component to target a specific component's storage. + +# MAV_CMD_UAVCAN +uint16 UAVCAN_GET_NODE_INFO = 5200 # Commands the vehicle to respond with a sequence of messages UAVCAN_NODE_INFO, one message per every UAVCAN node that is online. Note that some of the response messages can be lost, which the receiver can detect easily by checking whether every received UAVCAN_NODE_STATUS has a matching message UAVCAN_NODE_INFO received earlier; if not, this command should be sent again in order to request re-transmission of the node information messages. + +# MAV_CMD_VIDEO +uint16 VIDEO_START_CAPTURE = 2500 # Starts video capture (recording). +uint16 VIDEO_STOP_CAPTURE = 2501 # Stop the current video capture (recording). +uint16 VIDEO_START_STREAMING = 2502 # Start video streaming +uint16 VIDEO_STOP_STREAMING = 2503 # Stop the given video stream + +# [[[end]]] (checksum: 73ee94ac661c9fcb61528a6668f71d94) diff --git a/src/external/mavros_msgs/msg/CompanionProcessStatus.msg b/src/external/mavros_msgs/msg/CompanionProcessStatus.msg new file mode 100644 index 0000000..ea8b08c --- /dev/null +++ b/src/external/mavros_msgs/msg/CompanionProcessStatus.msg @@ -0,0 +1,19 @@ +# Mavros message: COMPANIONPROCESSSTATUS + +std_msgs/Header header + +uint8 state # See enum COMPANION_PROCESS_STATE +uint8 component # See enum MAV_COMPONENT + +uint8 MAV_STATE_UNINIT = 0 +uint8 MAV_STATE_BOOT = 1 +uint8 MAV_STATE_CALIBRATING = 2 +uint8 MAV_STATE_STANDBY = 3 +uint8 MAV_STATE_ACTIVE = 4 +uint8 MAV_STATE_CRITICAL = 5 +uint8 MAV_STATE_EMERGENCY = 6 +uint8 MAV_STATE_POWEROFF = 7 +uint8 MAV_STATE_FLIGHT_TERMINATION = 8 + +uint8 MAV_COMP_ID_OBSTACLE_AVOIDANCE = 196 +uint8 MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY = 197 diff --git a/src/external/mavros_msgs/msg/DebugValue.msg b/src/external/mavros_msgs/msg/DebugValue.msg new file mode 100644 index 0000000..286b6c2 --- /dev/null +++ b/src/external/mavros_msgs/msg/DebugValue.msg @@ -0,0 +1,26 @@ +# Msg for Debug MAVLink API +# +# Supported types: +# DEBUG https://mavlink.io/en/messages/common.html#DEBUG +# DEBUG_VECTOR https://mavlink.io/en/messages/common.html#DEBUG_VECT +# DEBUG_FLOAT_ARRAY https://mavlink.io/en/messages/common.html#DEBUG_FLOAT_ARRAY +# NAMED_VALUE_FLOAT https://mavlink.io/en/messages/common.html#NAMED_VALUE_FLOAT +# NAMED_VALUE_INT https://mavlink.io/en/messages/common.html#NAMED_VALUE_INT + +std_msgs/Header header + +int32 index # index value of DEBUG value (-1 if not indexed) +int32 array_id # Unique ID used to discriminate between DEBUG_FLOAT_ARRAYS (-1 if not used) + +string name # value name/key + +float32 value_float # float value for NAMED_VALUE_FLOAT and DEBUG +int32 value_int # int value for NAMED_VALUE_INT +float32[] data # DEBUG vector or array + +uint8 type +uint8 TYPE_DEBUG = 0 +uint8 TYPE_DEBUG_VECT = 1 +uint8 TYPE_DEBUG_FLOAT_ARRAY = 2 +uint8 TYPE_NAMED_VALUE_FLOAT = 3 +uint8 TYPE_NAMED_VALUE_INT = 4 diff --git a/src/external/mavros_msgs/msg/ESCInfo.msg b/src/external/mavros_msgs/msg/ESCInfo.msg new file mode 100644 index 0000000..71bcc41 --- /dev/null +++ b/src/external/mavros_msgs/msg/ESCInfo.msg @@ -0,0 +1,14 @@ +# ESCInfo.msg +# +# +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#ESC_INFO + +std_msgs/Header header + +uint16 counter +uint8 count +uint8 connection_type +uint8 info +mavros_msgs/ESCInfoItem[] esc_info + diff --git a/src/external/mavros_msgs/msg/ESCInfoItem.msg b/src/external/mavros_msgs/msg/ESCInfoItem.msg new file mode 100644 index 0000000..fc63856 --- /dev/null +++ b/src/external/mavros_msgs/msg/ESCInfoItem.msg @@ -0,0 +1,12 @@ +# ESCInfoItem.msg +# +# +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#ESC_INFO + +std_msgs/Header header + +uint16 failure_flags +uint32 error_count +int32 temperature + diff --git a/src/external/mavros_msgs/msg/ESCStatus.msg b/src/external/mavros_msgs/msg/ESCStatus.msg new file mode 100644 index 0000000..870579b --- /dev/null +++ b/src/external/mavros_msgs/msg/ESCStatus.msg @@ -0,0 +1,9 @@ +# ESCStatus.msg +# +# +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#ESC_STATUS + +std_msgs/Header header + +mavros_msgs/ESCStatusItem[] esc_status diff --git a/src/external/mavros_msgs/msg/ESCStatusItem.msg b/src/external/mavros_msgs/msg/ESCStatusItem.msg new file mode 100644 index 0000000..252aa0b --- /dev/null +++ b/src/external/mavros_msgs/msg/ESCStatusItem.msg @@ -0,0 +1,11 @@ +# ESCStatusItem.msg +# +# +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#ESC_STATUS + +std_msgs/Header header + +int32 rpm +float32 voltage +float32 current diff --git a/src/external/mavros_msgs/msg/ESCTelemetry.msg b/src/external/mavros_msgs/msg/ESCTelemetry.msg new file mode 100644 index 0000000..f0c5916 --- /dev/null +++ b/src/external/mavros_msgs/msg/ESCTelemetry.msg @@ -0,0 +1,10 @@ +# APM ESC Telemetry as returned by BLHeli +# +# See: +# https://mavlink.io/en/messages/ardupilotmega.html#ESC_TELEMETRY_1_TO_4 +# https://mavlink.io/en/messages/ardupilotmega.html#ESC_TELEMETRY_5_TO_8 +# https://mavlink.io/en/messages/ardupilotmega.html#ESC_TELEMETRY_9_TO_12 + +std_msgs/Header header + +mavros_msgs/ESCTelemetryItem[] esc_telemetry diff --git a/src/external/mavros_msgs/msg/ESCTelemetryItem.msg b/src/external/mavros_msgs/msg/ESCTelemetryItem.msg new file mode 100644 index 0000000..e5c0c17 --- /dev/null +++ b/src/external/mavros_msgs/msg/ESCTelemetryItem.msg @@ -0,0 +1,15 @@ +# APM ESC Telemetry as returned by BLHeli +# +# See: +# https://mavlink.io/en/messages/ardupilotmega.html#ESC_TELEMETRY_1_TO_4 +# https://mavlink.io/en/messages/ardupilotmega.html#ESC_TELEMETRY_5_TO_8 +# https://mavlink.io/en/messages/ardupilotmega.html#ESC_TELEMETRY_9_TO_12 + +std_msgs/Header header + +float32 temperature # deg C +float32 voltage # V +float32 current # A +float32 totalcurrent # Ah +int32 rpm # 1/min +uint16 count # count of telemetry packets diff --git a/src/external/mavros_msgs/msg/EstimatorStatus.msg b/src/external/mavros_msgs/msg/EstimatorStatus.msg new file mode 100644 index 0000000..40101b8 --- /dev/null +++ b/src/external/mavros_msgs/msg/EstimatorStatus.msg @@ -0,0 +1,23 @@ +# Current autopilot estimator state +# +# https://mavlink.io/en/messages/common.html#ESTIMATOR_STATUS_FLAGS + +std_msgs/Header header +bool attitude_status_flag + +bool velocity_horiz_status_flag +bool velocity_vert_status_flag + +bool pos_horiz_rel_status_flag +bool pos_horiz_abs_status_flag + +bool pos_vert_abs_status_flag +bool pos_vert_agl_status_flag + +bool const_pos_mode_status_flag + +bool pred_pos_horiz_rel_status_flag +bool pred_pos_horiz_abs_status_flag + +bool gps_glitch_status_flag +bool accel_error_status_flag \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/ExtendedState.msg b/src/external/mavros_msgs/msg/ExtendedState.msg new file mode 100644 index 0000000..47c5c29 --- /dev/null +++ b/src/external/mavros_msgs/msg/ExtendedState.msg @@ -0,0 +1,19 @@ +# Extended autopilot state +# +# https://mavlink.io/en/messages/common.html#EXTENDED_SYS_STATE + +uint8 VTOL_STATE_UNDEFINED = 0 +uint8 VTOL_STATE_TRANSITION_TO_FW = 1 +uint8 VTOL_STATE_TRANSITION_TO_MC = 2 +uint8 VTOL_STATE_MC = 3 +uint8 VTOL_STATE_FW = 4 + +uint8 LANDED_STATE_UNDEFINED = 0 +uint8 LANDED_STATE_ON_GROUND = 1 +uint8 LANDED_STATE_IN_AIR = 2 +uint8 LANDED_STATE_TAKEOFF = 3 +uint8 LANDED_STATE_LANDING = 4 + +std_msgs/Header header +uint8 vtol_state +uint8 landed_state diff --git a/src/external/mavros_msgs/msg/FileEntry.msg b/src/external/mavros_msgs/msg/FileEntry.msg new file mode 100644 index 0000000..e733326 --- /dev/null +++ b/src/external/mavros_msgs/msg/FileEntry.msg @@ -0,0 +1,12 @@ +# File/Dir information + +uint8 TYPE_FILE = 0 +uint8 TYPE_DIRECTORY = 1 + +string name +uint8 type +uint64 size + +# Not supported by MAVLink FTP +#builtin_interfaces/Time atime +#int32 access_flags diff --git a/src/external/mavros_msgs/msg/GPSINPUT.msg b/src/external/mavros_msgs/msg/GPSINPUT.msg new file mode 100644 index 0000000..15a038a --- /dev/null +++ b/src/external/mavros_msgs/msg/GPSINPUT.msg @@ -0,0 +1,37 @@ +# FCU GPS INPUT message for the gps_input plugin +# mavlink GPS_INPUT message. + +std_msgs/Header header +## GPS_FIX_TYPE enum +uint8 GPS_FIX_TYPE_NO_GPS = 0 # No GPS connected +uint8 GPS_FIX_TYPE_NO_FIX = 1 # No position information, GPS is connected +uint8 GPS_FIX_TYPE_2D_FIX = 2 # 2D position +uint8 GPS_FIX_TYPE_3D_FIX = 3 # 3D position +uint8 GPS_FIX_TYPE_DGPS = 4 # DGPS/SBAS aided 3D position +uint8 GPS_FIX_TYPE_RTK_FLOATR = 5 # TK float, 3D position +uint8 GPS_FIX_TYPE_RTK_FIXEDR = 6 # TK Fixed, 3D position +uint8 GPS_FIX_TYPE_STATIC = 7 # Static fixed, typically used for base stations +uint8 GPS_FIX_TYPE_PPP = 8 # PPP, 3D position +uint8 fix_type # [GPS_FIX_TYPE] GPS fix type + +uint8 gps_id # ID of the GPS for multiple GPS inputs +uint16 ignore_flags # Bitmap indicating which GPS input flags fields to ignore. All other fields must be provided. + +uint32 time_week_ms # [ms] GPS time (from start of GPS week) +uint16 time_week # GPS week number +int32 lat # [degE7] Latitude (WGS84, EGM96 ellipsoid) +int32 lon # [degE7] Longitude (WGS84, EGM96 ellipsoid) +float32 alt # [m] Altitude (MSL). Positive for up. + +float32 hdop # [m] GPS HDOP horizontal dilution of position. +float32 vdop # [m] GPS VDOP vertical dilution of position +float32 vn # [m/s] GPS velocity in NORTH direction in earth-fixed NED frame +float32 ve # [m/s] GPS velocity in EAST direction in earth-fixed NED frame +float32 vd # [m/s] GPS velocity in DOWN direction in earth-fixed NED frame + +float32 speed_accuracy # [m/s] GPS speed accuracy +float32 horiz_accuracy # [m] GPS horizontal accuracy +float32 vert_accuracy # [m] GPS vertical accuracy + +uint8 satellites_visible # Number of satellites visible. If unknown, set to 255 +uint16 yaw # [cdeg] Yaw in earth frame from north. diff --git a/src/external/mavros_msgs/msg/GPSRAW.msg b/src/external/mavros_msgs/msg/GPSRAW.msg new file mode 100644 index 0000000..5b754b3 --- /dev/null +++ b/src/external/mavros_msgs/msg/GPSRAW.msg @@ -0,0 +1,37 @@ +# FCU GPS RAW message for the gps_status plugin +# A merge of mavlink GPS_RAW_INT and +# mavlink GPS2_RAW messages. + +std_msgs/Header header +## GPS_FIX_TYPE enum +uint8 GPS_FIX_TYPE_NO_GPS = 0 # No GPS connected +uint8 GPS_FIX_TYPE_NO_FIX = 1 # No position information, GPS is connected +uint8 GPS_FIX_TYPE_2D_FIX = 2 # 2D position +uint8 GPS_FIX_TYPE_3D_FIX = 3 # 3D position +uint8 GPS_FIX_TYPE_DGPS = 4 # DGPS/SBAS aided 3D position +uint8 GPS_FIX_TYPE_RTK_FLOAT = 5 # RTK float, 3D position +uint8 GPS_FIX_TYPE_RTK_FIXED = 6 # RTK Fixed, 3D position +uint8 GPS_FIX_TYPE_STATIC = 7 # Static fixed, typically used for base stations +uint8 GPS_FIX_TYPE_PPP = 8 # PPP, 3D position +uint8 fix_type # [GPS_FIX_TYPE] GPS fix type + +int32 lat # [degE7] Latitude (WGS84, EGM96 ellipsoid) +int32 lon # [degE7] Longitude (WGS84, EGM96 ellipsoid) +int32 alt # [mm] Altitude (MSL). Positive for up. Note that virtually all GPS modules provide the MSL altitude in addition to the WGS84 altitude. +uint16 eph # GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX +uint16 epv # GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX +uint16 vel # [cm/s] GPS ground speed. If unknown, set to: UINT16_MAX +uint16 cog # [cdeg] Course over ground (NOT heading, but direction of movement), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX +uint8 satellites_visible # Number of satellites visible. If unknown, set to 255 + +# -*- only available with MAVLink v2.0 and GPS_RAW_INT messages -*- +int32 alt_ellipsoid # [mm] Altitude (above WGS84, EGM96 ellipsoid). Positive for up. +uint32 h_acc # [mm] Position uncertainty. Positive for up. +uint32 v_acc # [mm] Altitude uncertainty. Positive for up. +uint32 vel_acc # [mm] Speed uncertainty. Positive for up. +int32 hdg_acc # [degE5] Heading / track uncertainty +uint16 yaw # [cdeg] Yaw in earth frame from north. + +# -*- only available with MAVLink v2.0 and GPS2_RAW messages -*- +uint8 dgps_numch # Number of DGPS satellites +uint32 dgps_age # [ms] Age of DGPS info diff --git a/src/external/mavros_msgs/msg/GPSRTK.msg b/src/external/mavros_msgs/msg/GPSRTK.msg new file mode 100644 index 0000000..2cac818 --- /dev/null +++ b/src/external/mavros_msgs/msg/GPSRTK.msg @@ -0,0 +1,18 @@ +# FCU GPS RTK message for the gps_status plugin +# A copy of mavlink GPS_RTK message + +std_msgs/Header header + +uint8 rtk_receiver_id # Identification of connected RTK receiver. +int16 wn # GPS Week Number of last baseline. +uint32 tow # [ms] GPS Time of Week of last baseline. +uint8 rtk_health # GPS-specific health report for RTK data. +uint8 rtk_rate # [Hz] Rate of baseline messages being received by GPS. +uint8 nsats # Current number of sats used for RTK calculation. +int32 baseline_a # [mm] Current baseline in ECEF x or NED north component, depends on header.frame_id. +int32 baseline_b # [mm] Current baseline in ECEF y or NED east component, depends on header.frame_id. +int32 baseline_c # [mm] Current baseline in ECEF z or NED down component, depends on header.frame_id. +uint32 accuracy # Current estimate of baseline accuracy. +int32 iar_num_hypotheses # Current number of integer ambiguity hypotheses. + + diff --git a/src/external/mavros_msgs/msg/GimbalDeviceAttitudeStatus.msg b/src/external/mavros_msgs/msg/GimbalDeviceAttitudeStatus.msg new file mode 100644 index 0000000..612375d --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalDeviceAttitudeStatus.msg @@ -0,0 +1,32 @@ +# MAVLink message: GIMBAL_DEVICE_ATTITUDE_STATUS +# https://mavlink.io/en/messages/common.html#GIMBAL_DEVICE_ATTITUDE_STATUS + +std_msgs/Header header + +uint8 target_system # System ID +uint8 target_component # Component ID + +uint16 flags # Current gimbal flags set (bitwise) - See GIMBAL_DEVICE_FLAGS +#GIMBAL_DEVICE_FLAGS +uint16 FLAGS_RETRACT = 1 # Set to retracted safe position (no stabilization), takes presedence over all other flags. +uint16 FLAGS_NEUTRAL = 2 # Set to neutral/default position, taking precedence over all other flags except RETRACT. Neutral is commonly forward-facing and horizontal (pitch=yaw=0) but may be any orientation. +uint16 FLAGS_ROLL_LOCK = 4 # Lock roll angle to absolute angle relative to horizon (not relative to drone). This is generally the default with a stabilizing gimbal. +uint16 FLAGS_PITCH_LOCK = 8 # Lock pitch angle to absolute angle relative to horizon (not relative to drone). This is generally the default. +uint16 FLAGS_YAW_LOCK = 16 # Lock yaw angle to absolute angle relative to North (not relative to drone). If this flag is set, the quaternion is in the Earth frame with the x-axis pointing North (yaw absolute). If this flag is not set, the quaternion frame is in the Earth frame rotated so that the x-axis is pointing forward (yaw relative to vehicle). + +geometry_msgs/Quaternion q # Quaternion, x, y, z, w (0 0 0 1 is the null-rotation, the frame is depends on whether the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set) +float32 angular_velocity_x # X component of angular velocity (NaN if unknown) +float32 angular_velocity_y # Y component of angular velocity (NaN if unknown) +float32 angular_velocity_z # Z component of angular velocity (NaN if unknown) + +uint32 failure_flags # Failure flags (0 for no failure) (bitwise) - See GIMBAL_DEVICE_ERROR_FLAGS +#GIMBAL_DEVICE_ERROR_FLAGS +uint32 ERROR_FLAGS_AT_ROLL_LIMIT = 1 # Gimbal device is limited by hardware roll limit. +uint32 ERROR_FLAGS_AT_PITCH_LIMIT = 2 # Gimbal device is limited by hardware pitch limit. +uint32 ERROR_FLAGS_AT_YAW_LIMIT = 4 # Gimbal device is limited by hardware yaw limit. +uint32 ERROR_FLAGS_ENCODER_ERROR = 8 # There is an error with the gimbal encoders. +uint32 ERROR_FLAGS_POWER_ERROR = 16 # There is an error with the gimbal power source. +uint32 ERROR_FLAGS_MOTOR_ERROR = 32 # There is an error with the gimbal motor's. +uint32 ERROR_FLAGS_SOFTWARE_ERROR = 64 # There is an error with the gimbal's software. +uint32 ERROR_FLAGS_COMMS_ERROR = 128 # There is an error with the gimbal's communication. +uint32 ERROR_FLAGS_CALIBRATION_RUNNING = 256 # Gimbal is currently calibrating. diff --git a/src/external/mavros_msgs/msg/GimbalDeviceInformation.msg b/src/external/mavros_msgs/msg/GimbalDeviceInformation.msg new file mode 100644 index 0000000..0d68309 --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalDeviceInformation.msg @@ -0,0 +1,34 @@ +# MAVLink message: GIMBAL_DEVICE_INFORMATION +# https://mavlink.io/en/messages/common.html#GIMBAL_DEVICE_INFORMATION + +std_msgs/Header header + +string vendor_name # Name of the gimbal vendor. +string model_name # Name of the gimbal model. +string custom_name # Custom name of the gimbal given to it by the user. +uint32 firmware_version # Version of the gimbal firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). +uint32 hardware_version # Version of the gimbal hardware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). +uint64 uid # UID of gimbal hardware (0 if unknown). + +uint32 cap_flags # Bitmap of gimbal capability flags - see GIMBAL_DEVICE_CAP_FLAGS +#GIMBAL_DEVICE_CAP_FLAGS +uint32 CAP_FLAGS_HAS_RETRACT = 1 # Gimbal device supports a retracted position +uint32 CAP_FLAGS_HAS_NEUTRAL = 2 # Gimbal device supports a horizontal, forward looking position, stabilized +uint32 CAP_FLAGS_HAS_ROLL_AXIS = 4 # Gimbal device supports rotating around roll axis. +uint32 CAP_FLAGS_HAS_ROLL_FOLLOW = 8 # Gimbal device supports to follow a roll angle relative to the vehicle +uint32 CAP_FLAGS_HAS_ROLL_LOCK = 16 # Gimbal device supports locking to an roll angle (generally that's the default with roll stabilized) +uint32 CAP_FLAGS_HAS_PITCH_AXIS = 32 # Gimbal device supports rotating around pitch axis. +uint32 CAP_FLAGS_HAS_PITCH_FOLLOW = 64 # Gimbal device supports to follow a pitch angle relative to the vehicle +uint32 CAP_FLAGS_HAS_PITCH_LOCK = 128 # Gimbal device supports locking to an pitch angle (generally that's the default with pitch stabilized) +uint32 CAP_FLAGS_HAS_YAW_AXIS = 256 # Gimbal device supports rotating around yaw axis. +uint32 CAP_FLAGS_HAS_YAW_FOLLOW = 512 # Gimbal device supports to follow a yaw angle relative to the vehicle (generally that's the default) +uint32 CAP_FLAGS_HAS_YAW_LOCK = 1024 # Gimbal device supports locking to an absolute heading (often this is an option available) +uint32 CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048 # Gimbal device supports yawing/panning infinetely (e.g. using slip disk). + +uint16 custom_cap_flags # Bitmap for use for gimbal-specific capability flags. +float32 roll_min # Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left) +float32 roll_max # Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left) +float32 pitch_min # Minimum pitch angle (positive: up, negative: down) +float32 pitch_max # Maximum pitch angle (positive: up, negative: down) +float32 yaw_min # Minimum yaw angle (positive: to the right, negative: to the left) +float32 yaw_max # Maximum yaw angle (positive: to the right, negative: to the left) \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/GimbalDeviceSetAttitude.msg b/src/external/mavros_msgs/msg/GimbalDeviceSetAttitude.msg new file mode 100644 index 0000000..fdbc73d --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalDeviceSetAttitude.msg @@ -0,0 +1,18 @@ +# MAVLink message: GIMBAL_DEVICE_SET_ATTITUDE +# https://mavlink.io/en/messages/common.html#GIMBAL_DEVICE_SET_ATTITUDE + +uint8 target_system # System ID +uint8 target_component # Component ID + +uint16 flags # Low level gimbal flags (bitwise) - See GIMBAL_DEVICE_FLAGS +#GIMBAL_DEVICE_FLAGS +uint16 FLAGS_RETRACT = 1 # Based on GIMBAL_DEVICE_FLAGS_RETRACT +uint16 FLAGS_NEUTRAL = 2 # Based on GIMBAL_DEVICE_FLAGS_NEUTRAL +uint16 FLAGS_ROLL_LOCK = 4 # Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK +uint16 FLAGS_PITCH_LOCK = 8 # Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK +uint16 FLAGS_YAW_LOCK = 16 # Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK + +geometry_msgs/Quaternion q # Quaternion, x, y, z, w (0 0 0 1 is the null-rotation, the frame is depends on whether the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set) +float32 angular_velocity_x # X component of angular velocity, positive is rolling to the right, NaN to be ignored. +float32 angular_velocity_y # Y component of angular velocity, positive is pitching up, NaN to be ignored. +float32 angular_velocity_z # Z component of angular velocity, positive is yawing to the right, NaN to be ignored. \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/GimbalManagerInformation.msg b/src/external/mavros_msgs/msg/GimbalManagerInformation.msg new file mode 100644 index 0000000..38dbc88 --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalManagerInformation.msg @@ -0,0 +1,29 @@ +# MAVLink message: GIMBAL_MANAGER_INFORMATION +# https://mavlink.io/en/messages/common.html#GIMBAL_MANAGER_INFORMATION + +std_msgs/Header header + +uint32 cap_flags # Bitmap of gimbal capability flags - see GIMBAL_MANAGER_CAP_FLAGS +#GIMBAL_MANAGER_CAP_FLAGS +uint32 CAP_FLAGS_HAS_RETRACT = 1 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. +uint32 CAP_FLAGS_HAS_NEUTRAL = 2 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL. +uint32 CAP_FLAGS_HAS_ROLL_AXIS = 4 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS. +uint32 CAP_FLAGS_HAS_ROLL_FOLLOW = 8 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW. +uint32 CAP_FLAGS_HAS_ROLL_LOCK = 16 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK. +uint32 CAP_FLAGS_HAS_PITCH_AXIS = 32 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS. +uint32 CAP_FLAGS_HAS_PITCH_FOLLOW = 64 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW. +uint32 CAP_FLAGS_HAS_PITCH_LOCK = 128 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK. +uint32 CAP_FLAGS_HAS_YAW_AXIS = 256 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS. +uint32 CAP_FLAGS_HAS_YAW_FOLLOW = 512 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW. +uint32 CAP_FLAGS_HAS_YAW_LOCK = 1024 # Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK. +uint32 CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048 # Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW. +uint32 CAP_FLAGS_CAN_POINT_LOCATION_LOCAL = 65536 # Gimbal manager supports to point to a local position. +uint32 CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL = 131072 # Gimbal manager supports to point to a global latitude, longitude, altitude position. + +uint8 gimbal_device_id # Gimbal device ID that this gimbal manager is responsible for. +float32 roll_min # Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left) +float32 roll_max # Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left) +float32 pitch_min # Minimum pitch angle (positive: up, negative: down) +float32 pitch_max # Maximum pitch angle (positive: up, negative: down) +float32 yaw_min # Minimum yaw angle (positive: to the right, negative: to the left) +float32 yaw_max # Maximum yaw angle (positive: to the right, negative: to the left) \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/GimbalManagerSetAttitude.msg b/src/external/mavros_msgs/msg/GimbalManagerSetAttitude.msg new file mode 100644 index 0000000..8bbec37 --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalManagerSetAttitude.msg @@ -0,0 +1,24 @@ +# MAVLink message: GIMBAL_MANAGER_SET_ATTITUDE +# https://mavlink.io/en/messages/common.html#GIMBAL_MANAGER_SET_ATTITUDE + +uint8 target_system # System ID +uint8 target_component # Component ID + +uint32 flags # High level gimbal manager flags to use (bitwise) - See GIMBAL_MANAGER_FLAGS +#GIMBAL_MANAGER_FLAGS +uint32 GIMBAL_MANAGER_FLAGS_RETRACT = 1 # Based on GIMBAL_DEVICE_FLAGS_RETRACT +uint32 GIMBAL_MANAGER_FLAGS_NEUTRAL = 2 # Based on GIMBAL_DEVICE_FLAGS_NEUTRAL +uint32 GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4 # Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK +uint32 GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8 # Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK +uint32 GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16 # Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK + +uint8 gimbal_device_id # Component ID of gimbal device to address + # (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device + # components. Send command multiple times for more than + # one gimbal (but not all gimbals). Default Mavlink gimbal + # device ids: 154, 171-175 + +geometry_msgs/Quaternion q # Quaternion, x, y, z, w (0 0 0 1 is the null-rotation, the frame is depends on whether the flag GIMBAL_DEVICE_FLAGS_YAW_LOCK is set) +float32 angular_velocity_x # X component of angular velocity, positive is rolling to the right, NaN to be ignored. +float32 angular_velocity_y # Y component of angular velocity, positive is pitching up, NaN to be ignored. +float32 angular_velocity_z # Z component of angular velocity, positive is yawing to the right, NaN to be ignored. \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/GimbalManagerSetPitchyaw.msg b/src/external/mavros_msgs/msg/GimbalManagerSetPitchyaw.msg new file mode 100644 index 0000000..e87874e --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalManagerSetPitchyaw.msg @@ -0,0 +1,27 @@ +# MAVLink message: GIMBAL_MANAGER_SET_PITCHYAW +# https://mavlink.io/en/messages/common.html#GIMBAL_MANAGER_SET_PITCHYAW +# Note that this message structure is identical also to GIMBAL_MANAGER_SET_MANUAL_CONTROL and is +# reused as such by the plugin +# https://mavlink.io/en/messages/common.html#GIMBAL_MANAGER_SET_MANUAL_CONTROL + +uint8 target_system # System ID +uint8 target_component # Component ID + +uint32 flags # High level gimbal manager flags to use - See GIMBAL_MANAGER_FLAGS +#GIMBAL_MANAGER_FLAGS +uint32 GIMBAL_MANAGER_FLAGS_RETRACT = 1 # Based on GIMBAL_DEVICE_FLAGS_RETRACT +uint32 GIMBAL_MANAGER_FLAGS_NEUTRAL = 2 # Based on GIMBAL_DEVICE_FLAGS_NEUTRAL +uint32 GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4 # Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK +uint32 GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8 # Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK +uint32 GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16 # Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK + +uint8 gimbal_device_id # Component ID of gimbal device to address + # (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device + # components. Send command multiple times for more than + # one gimbal (but not all gimbals). Default Mavlink gimbal + # device ids: 154, 171-175 + +float32 pitch # Pitch angle (positive: up, negative: down, NaN to be ignored). +float32 yaw # Yaw angle (positive: to the right, negative: to the left, NaN to be ignored). +float32 pitch_rate # Pitch angular rate (positive: up, negative: down, NaN to be ignored). +float32 yaw_rate # Yaw angular rate (positive: to the right, negative: to the left, NaN to be ignored). \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/GimbalManagerStatus.msg b/src/external/mavros_msgs/msg/GimbalManagerStatus.msg new file mode 100644 index 0000000..8df8b3e --- /dev/null +++ b/src/external/mavros_msgs/msg/GimbalManagerStatus.msg @@ -0,0 +1,19 @@ +# MAVLink message: GIMBAL_MANAGER_STATUS +# https://mavlink.io/en/messages/common.html#GIMBAL_MANAGER_STATUS + +std_msgs/Header header + +uint32 flags # High level gimbal manager flags to use - See GIMBAL_MANAGER_FLAGS +#GIMBAL_MANAGER_FLAGS +uint32 GIMBAL_MANAGER_FLAGS_RETRACT = 1 # Based on GIMBAL_DEVICE_FLAGS_RETRACT +uint32 GIMBAL_MANAGER_FLAGS_NEUTRAL = 2 # Based on GIMBAL_DEVICE_FLAGS_NEUTRAL +uint32 GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4 # Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK +uint32 GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8 # Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK +uint32 GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16 # Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK + +uint8 gimbal_device_id # Gimbal device ID that this gimbal manager is responsible for. + +uint8 sysid_primary # System ID of MAVLink component with primary control, 0 for none. +uint8 compid_primary # Component ID of MAVLink component with primary control, 0 for none. +uint8 sysid_secondary # System ID of MAVLink component with secondary control, 0 for none. +uint8 compid_secondary # Component ID of MAVLink component with secondary control, 0 for none. \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/GlobalPositionTarget.msg b/src/external/mavros_msgs/msg/GlobalPositionTarget.msg new file mode 100644 index 0000000..445a1a7 --- /dev/null +++ b/src/external/mavros_msgs/msg/GlobalPositionTarget.msg @@ -0,0 +1,34 @@ +# Message for SET_POSITION_TARGET_GLOBAL_INT +# +# https://mavlink.io/en/messages/common.html#SET_POSITION_TARGET_GLOBAL_INT +# Some complex system requires all feautures that mavlink +# message provide. See issue #402, #415. + +std_msgs/Header header + +uint8 coordinate_frame +uint8 FRAME_GLOBAL_INT = 5 +uint8 FRAME_GLOBAL_REL_ALT = 6 +uint8 FRAME_GLOBAL_TERRAIN_ALT = 11 + +uint16 type_mask +uint16 IGNORE_LATITUDE = 1 # Position ignore flags +uint16 IGNORE_LONGITUDE = 2 +uint16 IGNORE_ALTITUDE = 4 +uint16 IGNORE_VX = 8 # Velocity vector ignore flags +uint16 IGNORE_VY = 16 +uint16 IGNORE_VZ = 32 +uint16 IGNORE_AFX = 64 # Acceleration/Force vector ignore flags +uint16 IGNORE_AFY = 128 +uint16 IGNORE_AFZ = 256 +uint16 FORCE = 512 # Force in af vector flag +uint16 IGNORE_YAW = 1024 +uint16 IGNORE_YAW_RATE = 2048 + +float64 latitude +float64 longitude +float32 altitude # in meters, AMSL or above terrain +geometry_msgs/Vector3 velocity +geometry_msgs/Vector3 acceleration_or_force +float32 yaw +float32 yaw_rate diff --git a/src/external/mavros_msgs/msg/HilActuatorControls.msg b/src/external/mavros_msgs/msg/HilActuatorControls.msg new file mode 100644 index 0000000..755384f --- /dev/null +++ b/src/external/mavros_msgs/msg/HilActuatorControls.msg @@ -0,0 +1,10 @@ +# HilActuatorControls.msg +# +# ROS representation of MAVLink HIL_ACTUATOR_CONTROLS +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#HIL_ACTUATOR_CONTROLS + +std_msgs/Header header +float32[16] controls +uint8 mode +uint64 flags diff --git a/src/external/mavros_msgs/msg/HilControls.msg b/src/external/mavros_msgs/msg/HilControls.msg new file mode 100644 index 0000000..a953aff --- /dev/null +++ b/src/external/mavros_msgs/msg/HilControls.msg @@ -0,0 +1,18 @@ +# HilControls.msg +# +# ROS representation of MAVLink HIL_CONTROLS +# (deprecated, use HIL_ACTUATOR_CONTROLS instead) +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#HIL_CONTROLS + +std_msgs/Header header +float32 roll_ailerons +float32 pitch_elevator +float32 yaw_rudder +float32 throttle +float32 aux1 +float32 aux2 +float32 aux3 +float32 aux4 +uint8 mode +uint8 nav_mode diff --git a/src/external/mavros_msgs/msg/HilGPS.msg b/src/external/mavros_msgs/msg/HilGPS.msg new file mode 100644 index 0000000..d74c204 --- /dev/null +++ b/src/external/mavros_msgs/msg/HilGPS.msg @@ -0,0 +1,17 @@ +# HilControls.msg +# +# ROS representation of MAVLink HIL_GPS +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#HIL_GPS + +std_msgs/Header header +uint8 fix_type +geographic_msgs/GeoPoint geo +uint16 eph +uint16 epv +uint16 vel +int16 vn +int16 ve +int16 vd +uint16 cog +uint8 satellites_visible diff --git a/src/external/mavros_msgs/msg/HilSensor.msg b/src/external/mavros_msgs/msg/HilSensor.msg new file mode 100644 index 0000000..c7ceccb --- /dev/null +++ b/src/external/mavros_msgs/msg/HilSensor.msg @@ -0,0 +1,16 @@ +# HilSensor.msg +# +# ROS representation of MAVLink HIL_SENSOR +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#HIL_SENSOR + +std_msgs/Header header + +geometry_msgs/Vector3 acc +geometry_msgs/Vector3 gyro +geometry_msgs/Vector3 mag +float32 abs_pressure +float32 diff_pressure +float32 pressure_alt +float32 temperature +uint32 fields_updated diff --git a/src/external/mavros_msgs/msg/HilStateQuaternion.msg b/src/external/mavros_msgs/msg/HilStateQuaternion.msg new file mode 100644 index 0000000..980db1e --- /dev/null +++ b/src/external/mavros_msgs/msg/HilStateQuaternion.msg @@ -0,0 +1,15 @@ +# HilStateQuaternion.msg +# +# ROS representation of MAVLink HIL_STATE_QUATERNION +# See mavlink message documentation here: +# https://mavlink.io/en/messages/common.html#HIL_STATE_QUATERNION + +std_msgs/Header header + +geometry_msgs/Quaternion orientation +geometry_msgs/Vector3 angular_velocity +geometry_msgs/Vector3 linear_acceleration +geometry_msgs/Vector3 linear_velocity +geographic_msgs/GeoPoint geo +float32 ind_airspeed +float32 true_airspeed diff --git a/src/external/mavros_msgs/msg/HomePosition.msg b/src/external/mavros_msgs/msg/HomePosition.msg new file mode 100644 index 0000000..f73bb51 --- /dev/null +++ b/src/external/mavros_msgs/msg/HomePosition.msg @@ -0,0 +1,10 @@ +# MAVLink message: HOME_POSITION +# https://mavlink.io/en/messages/common.html#HOME_POSITION + +std_msgs/Header header + +geographic_msgs/GeoPoint geo # geodetic coordinates in WGS-84 datum + +geometry_msgs/Point position # local position +geometry_msgs/Quaternion orientation # XXX: verify field name (q[4]) +geometry_msgs/Vector3 approach # position of the end of approach vector diff --git a/src/external/mavros_msgs/msg/LandingTarget.msg b/src/external/mavros_msgs/msg/LandingTarget.msg new file mode 100644 index 0000000..d5e6bd0 --- /dev/null +++ b/src/external/mavros_msgs/msg/LandingTarget.msg @@ -0,0 +1,32 @@ +# MAVLink message: LANDING_TARGET +# https://mavlink.io/en/messages/common.html + +std_msgs/Header header + +## MAV_FRAME enum +uint8 GLOBAL = 0 # Global coordinate frame, WGS84 coordinate system. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL) +uint8 LOCAL_NED = 2 # Local coordinate frame, Z-up (x: north, y: east, z: down). +uint8 MISSION = 3 # NOT a coordinate frame, indicates a mission command. +uint8 GLOBAL_RELATIVE_ALT = 4 # Global coordinate frame, WGS84 coordinate system, relative altitude over ground with respect to the home position. First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home location. +uint8 LOCAL_ENU = 5 # Local coordinate frame, Z-down (x: east, y: north, z: up) +uint8 GLOBAL_INT = 6 # Global coordinate frame, WGS84 coordinate system. First value / x: latitude in degrees*1.0e-7, second value / y: longitude in degrees*1.0e-7, third value / z: positive altitude over mean sea level (MSL) +uint8 GLOBAL_RELATIVE_ALT_INT = 7 # Global coordinate frame, WGS84 coordinate system, relative altitude over ground with respect to the home position. First value / x: latitude in degrees*10e-7, second value / y: longitude in degrees*10e-7, third value / z: positive altitude with 0 being at the altitude of the home location. +uint8 LOCAL_OFFSET_NED = 8 # Offset to the current local frame. Anything expressed in this frame should be added to the current local frame position. +uint8 BODY_NED = 9 # Setpoint in body NED frame. This makes sense if all position control is externalized - e.g. useful to command 2 m/s^2 acceleration to the right. +uint8 BODY_OFFSET_NED = 10 # Offset in body NED frame. This makes sense if adding setpoints to the current flight path, to avoid an obstacle - e.g. useful to command 2 m/s^2 acceleration to the east. +uint8 GLOBAL_TERRAIN_ALT = 11 # Global coordinate frame with above terrain level altitude. WGS84 coordinate system, relative altitude over terrain with respect to the waypoint coordinate. First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model. +uint8 GLOBAL_TERRAIN_ALT_INT = 12 # Global coordinate frame with above terrain level altitude. WGS84 coordinate system, relative altitude over terrain with respect to the waypoint coordinate. First value / x: latitude in degrees*10e-7, second value / y: longitude in degrees*10e-7, third value / z: positive altitude in meters with 0 being at ground level in terrain model. + +## LANDING_TARGET_TYPE enum +uint8 LIGHT_BEACON = 0 # Landing target signaled by light beacon (ex: IR-LOCK) +uint8 RADIO_BEACON = 1 # Landing target signaled by radio beacon (ex: ILS, NDB) +uint8 VISION_FIDUCIAL = 2 # Landing target represented by a fiducial marker (ex: ARTag) +uint8 VISION_OTHER = 3 # Landing target represented by a pre-defined visual shape/feature (ex: X-marker, H-marker, square) + +uint8 target_num +uint8 frame +float32[2] angle +float32 distance +float32[2] size +geometry_msgs/Pose pose +uint8 type diff --git a/src/external/mavros_msgs/msg/LogData.msg b/src/external/mavros_msgs/msg/LogData.msg new file mode 100644 index 0000000..829a0a3 --- /dev/null +++ b/src/external/mavros_msgs/msg/LogData.msg @@ -0,0 +1,11 @@ +# Reply to LogRequestData, - a chunk of a log +# +# :id: - log id +# :offset: - offset into the log +# :data: - chunk of data (if zero-sized, then there are no more chunks) + +std_msgs/Header header + +uint16 id +uint32 offset +uint8[] data diff --git a/src/external/mavros_msgs/msg/LogEntry.msg b/src/external/mavros_msgs/msg/LogEntry.msg new file mode 100644 index 0000000..b212686 --- /dev/null +++ b/src/external/mavros_msgs/msg/LogEntry.msg @@ -0,0 +1,15 @@ +# Information about a single log +# +# :id: - log id +# :num_logs: - total number of logs +# :last_log_num: - id of last log +# :time_utc: - UTC timestamp of log (ros::Time(0) if not available) +# :size: - size of log in bytes (may be approximate) + +std_msgs/Header header + +uint16 id +uint16 num_logs +uint16 last_log_num +builtin_interfaces/Time time_utc +uint32 size diff --git a/src/external/mavros_msgs/msg/MagnetometerReporter.msg b/src/external/mavros_msgs/msg/MagnetometerReporter.msg new file mode 100644 index 0000000..593f5f6 --- /dev/null +++ b/src/external/mavros_msgs/msg/MagnetometerReporter.msg @@ -0,0 +1,4 @@ +std_msgs/Header header + +uint8 report +float32 confidence \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/ManualControl.msg b/src/external/mavros_msgs/msg/ManualControl.msg new file mode 100644 index 0000000..f6db210 --- /dev/null +++ b/src/external/mavros_msgs/msg/ManualControl.msg @@ -0,0 +1,7 @@ +# Manual Control state +std_msgs/Header header +float32 x +float32 y +float32 z +float32 r +uint16 buttons diff --git a/src/external/mavros_msgs/msg/Mavlink.msg b/src/external/mavros_msgs/msg/Mavlink.msg new file mode 100644 index 0000000..afb80ed --- /dev/null +++ b/src/external/mavros_msgs/msg/Mavlink.msg @@ -0,0 +1,38 @@ +# Mavlink message transport type. +# +# Used to transport mavlink_message_t via ROS topic +# +# :framing_status: +# Frame decoding status: OK, CRC error, bad Signature (mavlink v2.0) +# You may simply drop all non valid messages. +# Used for GCS Bridge to transport unknown messages. +# +# :magic: +# STX byte, used to determine protocol version v1.0 or v2.0. +# +# Please use mavros_msgs::mavlink::convert() from +# to convert between ROS and MAVLink message type + +# mavlink_framing_t enum +uint8 FRAMING_OK = 1 +uint8 FRAMING_BAD_CRC = 2 +uint8 FRAMING_BAD_SIGNATURE = 3 + +# stx values +uint8 MAVLINK_V10 = 254 +uint8 MAVLINK_V20 = 253 + +std_msgs/Header header +uint8 framing_status + +uint8 magic # STX byte +uint8 len +uint8 incompat_flags +uint8 compat_flags +uint8 seq +uint8 sysid +uint8 compid +uint32 msgid # 24-bit message id +uint16 checksum +uint64[<=33] payload64 # max size: (255+2+7)/8 +uint8[<=13] signature # optional signature, max size: 13 diff --git a/src/external/mavros_msgs/msg/MountControl.msg b/src/external/mavros_msgs/msg/MountControl.msg new file mode 100644 index 0000000..0c2ee72 --- /dev/null +++ b/src/external/mavros_msgs/msg/MountControl.msg @@ -0,0 +1,18 @@ +# MAVLink message: DO_MOUNT_CONTROL +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_MOUNT_CONTROL + +std_msgs/Header header + +uint8 mode # See enum MAV_MOUNT_MODE. +uint8 MAV_MOUNT_MODE_RETRACT = 0 +uint8 MAV_MOUNT_MODE_NEUTRAL = 1 +uint8 MAV_MOUNT_MODE_MAVLINK_TARGETING = 2 +uint8 MAV_MOUNT_MODE_RC_TARGETING = 3 +uint8 MAV_MOUNT_MODE_GPS_POINT = 4 + +float32 pitch # pitch degrees or degrees/second depending on mount mode. +float32 roll # roll degrees or degrees/second depending on mount mode. +float32 yaw # yaw degrees or degrees/second depending on mount mode. +float32 altitude # altitude depending on mount mode. +float32 latitude # latitude in degrees * 1E7, set if appropriate mount mode. +float32 longitude # longitude in degrees * 1E7, set if appropriate mount mode. \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/NavControllerOutput.msg b/src/external/mavros_msgs/msg/NavControllerOutput.msg new file mode 100644 index 0000000..d5f8f6d --- /dev/null +++ b/src/external/mavros_msgs/msg/NavControllerOutput.msg @@ -0,0 +1,12 @@ +# https://mavlink.io/en/messages/common.html#NAV_CONTROLLER_OUTPUT + +std_msgs/Header header + +float32 nav_roll # Current desired roll +float32 nav_pitch # Current desired pitch +int16 nav_bearing # Current desired heading +int16 target_bearing # Bearing to current waypoint/target +uint16 wp_dist # Distance to active waypoint +float32 alt_error # Current altitude error +float32 aspd_error # Current airspeed error +float32 xtrack_error # Current crosstrack error on x-y plane \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/OnboardComputerStatus.msg b/src/external/mavros_msgs/msg/OnboardComputerStatus.msg new file mode 100644 index 0000000..d6d06b0 --- /dev/null +++ b/src/external/mavros_msgs/msg/OnboardComputerStatus.msg @@ -0,0 +1,25 @@ +# Mavros message: ONBOARDCOMPUTERSTATUS + +std_msgs/Header header + +uint8 component # See enum MAV_COMPONENT + +uint32 uptime # [ms] Time since system boot +uint8 type # Type of the onboard computer: 0: Mission computer primary, 1: Mission computer backup 1, 2: Mission computer backup 2, 3: Compute node, 4-5: Compute spares, 6-9: Payload computers. +uint8[8] cpu_cores # CPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused. +uint8[10] cpu_combined # Combined CPU usage as the last 10 slices of 100 MS (a histogram). This allows to identify spikes in load that max out the system, but only for a short amount of time. A value of UINT8_MAX implies the field is unused +uint8[4] gpu_cores # GPU usage on the component in percent (100 - idle). A value of UINT8_MAX implies the field is unused +uint8[10] gpu_combined # Combined GPU usage as the last 10 slices of 100 MS (a histogram). This allows to identify spikes in load that max out the system, but only for a short amount of time. A value of UINT8_MAX implies the field is unused. +int8 temperature_board # [degC] Temperature of the board. A value of INT8_MAX implies the field is unused. +int8[8] temperature_core # [degC] Temperature of the CPU core. A value of INT8_MAX implies the field is unused. +int16[4] fan_speed # [rpm] Fan speeds. A value of INT16_MAX implies the field is unused. +uint32 ram_usage # [MiB] Amount of used RAM on the component system. A value of UINT32_MAX implies the field is unused. +uint32 ram_total # [MiB] Total amount of RAM on the component system. A value of UINT32_MAX implies the field is unused. +uint32[4] storage_type # Storage type: 0: HDD, 1: SSD, 2: EMMC, 3: SD card (non-removable), 4: SD card (removable). A value of UINT32_MAX implies the field is unused. +uint32[4] storage_usage # [MiB] Amount of used storage space on the component system. A value of UINT32_MAX implies the field is unused. +uint32[4] storage_total # [MiB] Total amount of storage space on the component system. A value of UINT32_MAX implies the field is unused. +uint32[6] link_type # Link type: 0-9: UART, 10-19: Wired network, 20-29: Wifi, 30-39: Point-to-point proprietary, 40-49: Mesh proprietary. +uint32[6] link_tx_rate # [KiB/s] Network traffic from the component system. A value of UINT32_MAX implies the field is unused. +uint32[6] link_rx_rate # [KiB/s] Network traffic to the component system. A value of UINT32_MAX implies the field is unused. +uint32[6] link_tx_max # [KiB/s] Network capacity from the component system. A value of UINT32_MAX implies the field is unused. +uint32[6] link_rx_max # [KiB/s] Network capacity to the component system. A value of UINT32_MAX implies the field is unused. \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/OpticalFlow.msg b/src/external/mavros_msgs/msg/OpticalFlow.msg new file mode 100644 index 0000000..db857b8 --- /dev/null +++ b/src/external/mavros_msgs/msg/OpticalFlow.msg @@ -0,0 +1,9 @@ +# OPTICAL_FLOW message data + +std_msgs/Header header + +geometry_msgs/Vector3 flow +geometry_msgs/Vector3 flow_comp_m +uint8 quality +float32 ground_distance +geometry_msgs/Vector3 flow_rate diff --git a/src/external/mavros_msgs/msg/OpticalFlowRad.msg b/src/external/mavros_msgs/msg/OpticalFlowRad.msg new file mode 100644 index 0000000..f773fac --- /dev/null +++ b/src/external/mavros_msgs/msg/OpticalFlowRad.msg @@ -0,0 +1,14 @@ +# OPTICAL_FLOW_RAD message data + +std_msgs/Header header + +uint32 integration_time_us +float32 integrated_x +float32 integrated_y +float32 integrated_xgyro +float32 integrated_ygyro +float32 integrated_zgyro +int16 temperature +uint8 quality +uint32 time_delta_distance_us +float32 distance diff --git a/src/external/mavros_msgs/msg/OverrideRCIn.msg b/src/external/mavros_msgs/msg/OverrideRCIn.msg new file mode 100644 index 0000000..81bc040 --- /dev/null +++ b/src/external/mavros_msgs/msg/OverrideRCIn.msg @@ -0,0 +1,9 @@ +# Override RC Input +# Currently MAVLink defines override for 18 channels + +# https://mavlink.io/en/messages/common.html#RC_CHANNELS_OVERRIDE + +uint16 CHAN_RELEASE=0 +uint16 CHAN_NOCHANGE=65535 + +uint16[18] channels diff --git a/src/external/mavros_msgs/msg/Param.msg b/src/external/mavros_msgs/msg/Param.msg new file mode 100644 index 0000000..f2ccfaa --- /dev/null +++ b/src/external/mavros_msgs/msg/Param.msg @@ -0,0 +1,11 @@ +# Parameter msg. + +# XXX DEPRECATED: replaced by ParamEvent + +std_msgs/Header header + +string param_id +mavros_msgs/ParamValue value + +uint16 param_index +uint16 param_count diff --git a/src/external/mavros_msgs/msg/ParamEvent.msg b/src/external/mavros_msgs/msg/ParamEvent.msg new file mode 100644 index 0000000..493df0a --- /dev/null +++ b/src/external/mavros_msgs/msg/ParamEvent.msg @@ -0,0 +1,14 @@ +# Parameter Event +# +# That messages replaces mavros_msgs/Param from mavros v1. +# Reason for that: ROS2 have native message for parameters +# +# ROS2 also have it's own ParameterEvent stream, which could be used +# to get FCU updates too. But that message is simpler to use. + +std_msgs/Header header + +string param_id +rcl_interfaces/ParameterValue value +uint16 param_index +uint16 param_count diff --git a/src/external/mavros_msgs/msg/ParamValue.msg b/src/external/mavros_msgs/msg/ParamValue.msg new file mode 100644 index 0000000..4a98639 --- /dev/null +++ b/src/external/mavros_msgs/msg/ParamValue.msg @@ -0,0 +1,12 @@ +# Parameter value storage type. +# +# Integer and float fields: +# +# if integer != 0: it is integer value +# else if real != 0.0: it is float value +# else: it is zero. + +# XXX DEPRECATED: replaced by rmw_interfaces/ParameterValue + +int64 integer +float64 real diff --git a/src/external/mavros_msgs/msg/PlayTuneV2.msg b/src/external/mavros_msgs/msg/PlayTuneV2.msg new file mode 100644 index 0000000..d92a976 --- /dev/null +++ b/src/external/mavros_msgs/msg/PlayTuneV2.msg @@ -0,0 +1,10 @@ +# Play tune V2 +# +# https://mavlink.io/en/messages/common.html#PLAY_TUNE_V2 + +## TUNE_FORMAT enum +uint8 QBASIC1_1 = 1 +uint8 MML_MODERN = 2 + +uint8 format +string tune diff --git a/src/external/mavros_msgs/msg/PositionTarget.msg b/src/external/mavros_msgs/msg/PositionTarget.msg new file mode 100644 index 0000000..680be87 --- /dev/null +++ b/src/external/mavros_msgs/msg/PositionTarget.msg @@ -0,0 +1,32 @@ +# Message for SET_POSITION_TARGET_LOCAL_NED +# +# Some complex system requires all feautures that mavlink +# message provide. See issue #402. + +std_msgs/Header header + +uint8 coordinate_frame +uint8 FRAME_LOCAL_NED = 1 +uint8 FRAME_LOCAL_OFFSET_NED = 7 +uint8 FRAME_BODY_NED = 8 +uint8 FRAME_BODY_OFFSET_NED = 9 + +uint16 type_mask +uint16 IGNORE_PX = 1 # Position ignore flags +uint16 IGNORE_PY = 2 +uint16 IGNORE_PZ = 4 +uint16 IGNORE_VX = 8 # Velocity vector ignore flags +uint16 IGNORE_VY = 16 +uint16 IGNORE_VZ = 32 +uint16 IGNORE_AFX = 64 # Acceleration/Force vector ignore flags +uint16 IGNORE_AFY = 128 +uint16 IGNORE_AFZ = 256 +uint16 FORCE = 512 # Force in af vector flag +uint16 IGNORE_YAW = 1024 +uint16 IGNORE_YAW_RATE = 2048 + +geometry_msgs/Point position +geometry_msgs/Vector3 velocity +geometry_msgs/Vector3 acceleration_or_force +float32 yaw +float32 yaw_rate diff --git a/src/external/mavros_msgs/msg/RCIn.msg b/src/external/mavros_msgs/msg/RCIn.msg new file mode 100644 index 0000000..2a38d9c --- /dev/null +++ b/src/external/mavros_msgs/msg/RCIn.msg @@ -0,0 +1,5 @@ +# RAW RC input state + +std_msgs/Header header +uint8 rssi +uint16[] channels diff --git a/src/external/mavros_msgs/msg/RCOut.msg b/src/external/mavros_msgs/msg/RCOut.msg new file mode 100644 index 0000000..5ba3d15 --- /dev/null +++ b/src/external/mavros_msgs/msg/RCOut.msg @@ -0,0 +1,4 @@ +# RAW Servo out state + +std_msgs/Header header +uint16[] channels diff --git a/src/external/mavros_msgs/msg/RTCM.msg b/src/external/mavros_msgs/msg/RTCM.msg new file mode 100644 index 0000000..8c74498 --- /dev/null +++ b/src/external/mavros_msgs/msg/RTCM.msg @@ -0,0 +1,6 @@ +# RTCM message for the gps_rtk plugin +# The gps_rtk plugin will fragment the data if necessary and +# forward it to the FCU via Mavlink through the available link. +# data should be <= 4*180, higher will be discarded. +std_msgs/Header header +uint8[] data diff --git a/src/external/mavros_msgs/msg/RTKBaseline.msg b/src/external/mavros_msgs/msg/RTKBaseline.msg new file mode 100644 index 0000000..cbbd386 --- /dev/null +++ b/src/external/mavros_msgs/msg/RTKBaseline.msg @@ -0,0 +1,23 @@ +# RTKBaseline received from the FCU. +# Full description: https://mavlink.io/en/messages/common.html#GPS_RTK +# Mavlink Common, #127and #128 + +std_msgs/Header header + +uint32 time_last_baseline_ms +uint8 rtk_receiver_id +uint16 wn +uint32 tow +uint8 rtk_health +uint8 rtk_rate +uint8 nsats + +uint8 baseline_coords_type +uint8 RTK_BASELINE_COORDINATE_SYSTEM_ECEF = 0 # Earth-centered, earth-fixed +uint8 RTK_BASELINE_COORDINATE_SYSTEM_NED = 1 # RTK basestation centered, north, east, down + +int32 baseline_a_mm +int32 baseline_b_mm +int32 baseline_c_mm +uint32 accuracy +int32 iar_num_hypotheses diff --git a/src/external/mavros_msgs/msg/RadioStatus.msg b/src/external/mavros_msgs/msg/RadioStatus.msg new file mode 100644 index 0000000..dc7d3b4 --- /dev/null +++ b/src/external/mavros_msgs/msg/RadioStatus.msg @@ -0,0 +1,16 @@ +# RADIO_STATUS message + +std_msgs/Header header + +# message data +uint8 rssi +uint8 remrssi +uint8 txbuf +uint8 noise +uint8 remnoise +uint16 rxerrors +uint16 fixed + +# calculated +float32 rssi_dbm +float32 remrssi_dbm diff --git a/src/external/mavros_msgs/msg/State.msg b/src/external/mavros_msgs/msg/State.msg new file mode 100644 index 0000000..db00886 --- /dev/null +++ b/src/external/mavros_msgs/msg/State.msg @@ -0,0 +1,82 @@ +# Current autopilot state +# +# Known modes listed here: +# http://wiki.ros.org/mavros/CustomModes +# +# For system_status values +# see https://mavlink.io/en/messages/common.html#MAV_STATE +# + +std_msgs/Header header +bool connected +bool armed +bool guided +bool manual_input +string mode +uint8 system_status + +string MODE_APM_PLANE_MANUAL = MANUAL +string MODE_APM_PLANE_CIRCLE = CIRCLE +string MODE_APM_PLANE_STABILIZE = STABILIZE +string MODE_APM_PLANE_TRAINING = TRAINING +string MODE_APM_PLANE_ACRO = ACRO +string MODE_APM_PLANE_FBWA = FBWA +string MODE_APM_PLANE_FBWB = FBWB +string MODE_APM_PLANE_CRUISE = CRUISE +string MODE_APM_PLANE_AUTOTUNE = AUTOTUNE +string MODE_APM_PLANE_AUTO = AUTO +string MODE_APM_PLANE_RTL = RTL +string MODE_APM_PLANE_LOITER = LOITER +string MODE_APM_PLANE_LAND = LAND +string MODE_APM_PLANE_GUIDED = GUIDED +string MODE_APM_PLANE_INITIALISING = INITIALISING +string MODE_APM_PLANE_QSTABILIZE = QSTABILIZE +string MODE_APM_PLANE_QHOVER = QHOVER +string MODE_APM_PLANE_QLOITER = QLOITER +string MODE_APM_PLANE_QLAND = QLAND +string MODE_APM_PLANE_QRTL = QRTL + +string MODE_APM_COPTER_STABILIZE = STABILIZE +string MODE_APM_COPTER_ACRO = ACRO +string MODE_APM_COPTER_ALT_HOLD = ALT_HOLD +string MODE_APM_COPTER_AUTO = AUTO +string MODE_APM_COPTER_GUIDED = GUIDED +string MODE_APM_COPTER_LOITER = LOITER +string MODE_APM_COPTER_RTL = RTL +string MODE_APM_COPTER_CIRCLE = CIRCLE +string MODE_APM_COPTER_POSITION = POSITION +string MODE_APM_COPTER_LAND = LAND +string MODE_APM_COPTER_OF_LOITER = OF_LOITER +string MODE_APM_COPTER_DRIFT = DRIFT +string MODE_APM_COPTER_SPORT = SPORT +string MODE_APM_COPTER_FLIP = FLIP +string MODE_APM_COPTER_AUTOTUNE = AUTOTUNE +string MODE_APM_COPTER_POSHOLD = POSHOLD +string MODE_APM_COPTER_BRAKE = BRAKE +string MODE_APM_COPTER_THROW = THROW +string MODE_APM_COPTER_AVOID_ADSB = AVOID_ADSB +string MODE_APM_COPTER_GUIDED_NOGPS = GUIDED_NOGPS + +string MODE_APM_ROVER_MANUAL = MANUAL +string MODE_APM_ROVER_LEARNING = LEARNING +string MODE_APM_ROVER_STEERING = STEERING +string MODE_APM_ROVER_HOLD = HOLD +string MODE_APM_ROVER_AUTO = AUTO +string MODE_APM_ROVER_RTL = RTL +string MODE_APM_ROVER_GUIDED = GUIDED +string MODE_APM_ROVER_INITIALISING = INITIALISING + +string MODE_PX4_MANUAL = MANUAL +string MODE_PX4_ACRO = ACRO +string MODE_PX4_ALTITUDE = ALTCTL +string MODE_PX4_POSITION = POSCTL +string MODE_PX4_OFFBOARD = OFFBOARD +string MODE_PX4_STABILIZED = STABILIZED +string MODE_PX4_RATTITUDE = RATTITUDE +string MODE_PX4_MISSION = AUTO.MISSION +string MODE_PX4_LOITER = AUTO.LOITER +string MODE_PX4_RTL = AUTO.RTL +string MODE_PX4_LAND = AUTO.LAND +string MODE_PX4_RTGS = AUTO.RTGS +string MODE_PX4_READY = AUTO.READY +string MODE_PX4_TAKEOFF = AUTO.TAKEOFF diff --git a/src/external/mavros_msgs/msg/StatusEvent.msg b/src/external/mavros_msgs/msg/StatusEvent.msg new file mode 100644 index 0000000..3f90aea --- /dev/null +++ b/src/external/mavros_msgs/msg/StatusEvent.msg @@ -0,0 +1,19 @@ +# EVENT message representation +# https://mavlink.io/en/messages/common.html#EVENT + +# Severity levels +uint8 EMERGENCY = 0 +uint8 ALERT = 1 +uint8 CRITICAL = 2 +uint8 ERROR = 3 +uint8 WARNING = 4 +uint8 NOTICE = 5 +uint8 INFO = 6 +uint8 DEBUG = 7 + +# Fields +std_msgs/Header header +uint8 severity +uint32 px4_id +uint8[40] arguments +uint16 sequence diff --git a/src/external/mavros_msgs/msg/StatusText.msg b/src/external/mavros_msgs/msg/StatusText.msg new file mode 100644 index 0000000..901b869 --- /dev/null +++ b/src/external/mavros_msgs/msg/StatusText.msg @@ -0,0 +1,17 @@ +# STATUSTEXT message representation +# https://mavlink.io/en/messages/common.html#STATUSTEXT + +# Severity levels +uint8 EMERGENCY = 0 +uint8 ALERT = 1 +uint8 CRITICAL = 2 +uint8 ERROR = 3 +uint8 WARNING = 4 +uint8 NOTICE = 5 +uint8 INFO = 6 +uint8 DEBUG = 7 + +# Fields +std_msgs/Header header +uint8 severity +string text diff --git a/src/external/mavros_msgs/msg/SysStatus.msg b/src/external/mavros_msgs/msg/SysStatus.msg new file mode 100644 index 0000000..551940a --- /dev/null +++ b/src/external/mavros_msgs/msg/SysStatus.msg @@ -0,0 +1,15 @@ +std_msgs/Header header + +uint32 sensors_present +uint32 sensors_enabled +uint32 sensors_health +uint16 load +uint16 voltage_battery +int16 current_battery +int8 battery_remaining +uint16 drop_rate_comm +uint16 errors_comm +uint16 errors_count1 +uint16 errors_count2 +uint16 errors_count3 +uint16 errors_count4 \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/TerrainReport.msg b/src/external/mavros_msgs/msg/TerrainReport.msg new file mode 100644 index 0000000..5c9efce --- /dev/null +++ b/src/external/mavros_msgs/msg/TerrainReport.msg @@ -0,0 +1,12 @@ +# Message for TERRAIN_REPORT +# https://mavlink.io/en/messages/common.html#TERRAIN_REPORT + +std_msgs/Header header + +float64 latitude +float64 longitude +uint16 spacing +float32 terrain_height # in meters, terrain height +float32 current_height # in meters, vehicle height above terrain +uint16 pending +uint16 loaded diff --git a/src/external/mavros_msgs/msg/Thrust.msg b/src/external/mavros_msgs/msg/Thrust.msg new file mode 100644 index 0000000..fa2fcd6 --- /dev/null +++ b/src/external/mavros_msgs/msg/Thrust.msg @@ -0,0 +1,5 @@ +# Thrust to send to the FCU + +std_msgs/Header header + +float32 thrust diff --git a/src/external/mavros_msgs/msg/TimesyncStatus.msg b/src/external/mavros_msgs/msg/TimesyncStatus.msg new file mode 100644 index 0000000..dbfbf30 --- /dev/null +++ b/src/external/mavros_msgs/msg/TimesyncStatus.msg @@ -0,0 +1,7 @@ +# Status of the MAVLink time synchroniser + +std_msgs/Header header +uint64 remote_timestamp_ns # remote system timestamp (nanoseconds) +int64 observed_offset_ns # raw time offset directly observed from this timesync packet (nanoseconds) +int64 estimated_offset_ns # smoothed time offset between companion system and Mavros (nanoseconds) +float32 round_trip_time_ms # round trip time of this timesync packet (milliseconds) \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/Trajectory.msg b/src/external/mavros_msgs/msg/Trajectory.msg new file mode 100644 index 0000000..c43f63a --- /dev/null +++ b/src/external/mavros_msgs/msg/Trajectory.msg @@ -0,0 +1,19 @@ +# MAVLink message: TRAJECTORY +# https://mavlink.io/en/messages/common.html#TRAJECTORY + +std_msgs/Header header + +uint8 type # See enum MAV_TRAJECTORY_REPRESENTATION. +uint8 MAV_TRAJECTORY_REPRESENTATION_WAYPOINTS = 0 +uint8 MAV_TRAJECTORY_REPRESENTATION_BEZIER = 1 + +mavros_msgs/PositionTarget point_1 +mavros_msgs/PositionTarget point_2 +mavros_msgs/PositionTarget point_3 +mavros_msgs/PositionTarget point_4 +mavros_msgs/PositionTarget point_5 + +uint8[5] point_valid # States if respective point is valid. +uint16[5] command # MAV_CMD associated with each point. UINT16_MAX if unused. + +float32[5] time_horizon # if type MAV_TRAJECTORY_REPRESENTATION_BEZIER, it represents the time horizon for each point, otherwise set to NaN diff --git a/src/external/mavros_msgs/msg/Tunnel.msg b/src/external/mavros_msgs/msg/Tunnel.msg new file mode 100644 index 0000000..a04dcd1 --- /dev/null +++ b/src/external/mavros_msgs/msg/Tunnel.msg @@ -0,0 +1,27 @@ +# Tunnel +# +# https://mavlink.io/en/messages/common.html#TUNNEL + +uint8 target_system +uint8 target_component +uint16 payload_type +uint8 payload_length +uint8[128] payload + +# [[[cog: +# import mavros_cog +# mavros_cog.idl_decl_enum('MAV_TUNNEL_PAYLOAD_TYPE', 'PAYLOAD_TYPE_', 16) +# ]]] +# MAV_TUNNEL_PAYLOAD_TYPE +uint16 PAYLOAD_TYPE_UNKNOWN = 0 # Encoding of payload unknown. +uint16 PAYLOAD_TYPE_STORM32_RESERVED0 = 200 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED1 = 201 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED2 = 202 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED3 = 203 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED4 = 204 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED5 = 205 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED6 = 206 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED7 = 207 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED8 = 208 # Registered for STorM32 gimbal controller. +uint16 PAYLOAD_TYPE_STORM32_RESERVED9 = 209 # Registered for STorM32 gimbal controller. +# [[[end]]] (checksum: 3327b212af02c2d47d940cd6de049624) diff --git a/src/external/mavros_msgs/msg/VehicleInfo.msg b/src/external/mavros_msgs/msg/VehicleInfo.msg new file mode 100644 index 0000000..ea80b16 --- /dev/null +++ b/src/external/mavros_msgs/msg/VehicleInfo.msg @@ -0,0 +1,31 @@ +# Vehicle Info msg + +std_msgs/Header header + +uint8 HAVE_INFO_HEARTBEAT = 1 +uint8 HAVE_INFO_AUTOPILOT_VERSION = 2 +uint8 available_info # Bitmap shows what info is available + +# Vehicle address +uint8 sysid # SYSTEM ID +uint8 compid # COMPONENT ID + +# -*- Heartbeat info -*- +uint8 autopilot # MAV_AUTOPILOT +uint8 type # MAV_TYPE +uint8 system_status # MAV_STATE +uint8 base_mode +uint32 custom_mode +string mode # MAV_MODE string +uint32 mode_id # MAV_MODE number + +# -*- Autopilot version -*- +uint64 capabilities # MAV_PROTOCOL_CAPABILITY +uint32 flight_sw_version # Firmware version number +uint32 middleware_sw_version # Middleware version number +uint32 os_sw_version # Operating system version number +uint32 board_version # HW / board version (last 8 bytes should be silicon ID, if any) +string flight_custom_version # Custom version field, commonly from the first 8 bytes of the git hash +uint16 vendor_id # ID of the board vendor +uint16 product_id # ID of the product +uint64 uid # UID if provided by hardware diff --git a/src/external/mavros_msgs/msg/VfrHud.msg b/src/external/mavros_msgs/msg/VfrHud.msg new file mode 100644 index 0000000..81d0ba2 --- /dev/null +++ b/src/external/mavros_msgs/msg/VfrHud.msg @@ -0,0 +1,11 @@ +# Metrics typically displayed on a HUD for fixed wing aircraft +# +# VFR_HUD message + +std_msgs/Header header +float32 airspeed # m/s +float32 groundspeed # m/s +int16 heading # degrees 0..360 +float32 throttle # normalized to 0.0..1.0 +float32 altitude # MSL +float32 climb # current climb rate m/s diff --git a/src/external/mavros_msgs/msg/Vibration.msg b/src/external/mavros_msgs/msg/Vibration.msg new file mode 100644 index 0000000..d9170d0 --- /dev/null +++ b/src/external/mavros_msgs/msg/Vibration.msg @@ -0,0 +1,7 @@ +# VIBRATION message data +# @description: Vibration levels and accelerometer clipping + +std_msgs/Header header + +geometry_msgs/Vector3 vibration # 3-axis vibration levels +float32[3] clipping # Accelerometers clipping \ No newline at end of file diff --git a/src/external/mavros_msgs/msg/Waypoint.msg b/src/external/mavros_msgs/msg/Waypoint.msg new file mode 100644 index 0000000..7afa95e --- /dev/null +++ b/src/external/mavros_msgs/msg/Waypoint.msg @@ -0,0 +1,45 @@ +# Waypoint.msg +# +# ROS representation of MAVLink MISSION_ITEM +# See mavlink documentation + + + +# see enum MAV_FRAME +uint8 frame +uint8 FRAME_GLOBAL = 0 +uint8 FRAME_LOCAL_NED = 1 +uint8 FRAME_MISSION = 2 +uint8 FRAME_GLOBAL_REL_ALT = 3 +uint8 FRAME_LOCAL_ENU = 4 +uint8 FRAME_GLOBAL_INT = 5 +uint8 FRAME_GLOBAL_RELATIVE_ALT_INT = 6 +uint8 FRAME_LOCAL_OFFSET_NED = 7 +uint8 FRAME_BODY_NED = 8 +uint8 FRAME_BODY_OFFSET_NED = 9 +uint8 FRAME_GLOBAL_TERRAIN_ALT = 10 +uint8 FRAME_GLOBAL_TERRAIN_ALT_INT = 11 +uint8 FRAME_BODY_FRD = 12 +uint8 FRAME_RESERVED_13 = 13 +uint8 FRAME_RESERVED_14 = 14 +uint8 FRAME_RESERVED_15 = 15 +uint8 FRAME_RESERVED_16 = 16 +uint8 FRAME_RESERVED_17 = 17 +uint8 FRAME_RESERVED_18 = 18 +uint8 FRAME_RESERVED_19 = 19 +uint8 FRAME_LOCAL_FRD = 20 +uint8 FRAME_LOCAL_FLU = 21 + +# see enum MAV_CMD and CommandCode.msg +uint16 command + +bool is_current +bool autocontinue +# meaning of this params described in enum MAV_CMD +float32 param1 +float32 param2 +float32 param3 +float32 param4 +float64 x_lat +float64 y_long +float64 z_alt diff --git a/src/external/mavros_msgs/msg/WaypointList.msg b/src/external/mavros_msgs/msg/WaypointList.msg new file mode 100644 index 0000000..de4111e --- /dev/null +++ b/src/external/mavros_msgs/msg/WaypointList.msg @@ -0,0 +1,9 @@ +# WaypointList.msg +# +# :current_seq: seq nr of currently active waypoint +# waypoints[current_seq].is_current == True +# +# :waypoints: list of waypoints + +uint16 current_seq +mavros_msgs/Waypoint[] waypoints diff --git a/src/external/mavros_msgs/msg/WaypointReached.msg b/src/external/mavros_msgs/msg/WaypointReached.msg new file mode 100644 index 0000000..6fc36a9 --- /dev/null +++ b/src/external/mavros_msgs/msg/WaypointReached.msg @@ -0,0 +1,7 @@ +# That message represent MISSION_ITEM_REACHED +# +# :wp_seq: index number of reached waypoint + +std_msgs/Header header + +uint16 wp_seq diff --git a/src/external/mavros_msgs/msg/WheelOdomStamped.msg b/src/external/mavros_msgs/msg/WheelOdomStamped.msg new file mode 100644 index 0000000..782c3ab --- /dev/null +++ b/src/external/mavros_msgs/msg/WheelOdomStamped.msg @@ -0,0 +1,6 @@ +# Stamped wheel odometry message +# +# For streaming timestamped data from FCU wheel encoders (RPM or WHEEL_DISTANCE). + +std_msgs/Header header +float64[] data diff --git a/src/external/mavros_msgs/package.xml b/src/external/mavros_msgs/package.xml new file mode 100644 index 0000000..9c5d8bc --- /dev/null +++ b/src/external/mavros_msgs/package.xml @@ -0,0 +1,46 @@ + + + + mavros_msgs + 2.9.0 + + mavros_msgs defines messages for MAVROS. + + + Vladimir Ermakov + + GPLv3 + LGPLv3 + BSD + + http://wiki.ros.org/mavros_msgs + https://github.com/mavlink/mavros.git + https://github.com/mavlink/mavros/issues + + Vladimir Ermakov + + ament_cmake + + rosidl_default_generators + rosidl_default_runtime + + + rcl_interfaces + geographic_msgs + geometry_msgs + sensor_msgs + + + + ament_lint_auto + ament_lint_common + + rosidl_interface_packages + + + ament_cmake + + + diff --git a/src/external/mavros_msgs/srv/CommandAck.srv b/src/external/mavros_msgs/srv/CommandAck.srv new file mode 100644 index 0000000..f1d708e --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandAck.srv @@ -0,0 +1,11 @@ +# Generic COMMAND_ACK + +uint16 command +uint8 result +uint8 progress +uint32 result_param2 + +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandBool.srv b/src/external/mavros_msgs/srv/CommandBool.srv new file mode 100644 index 0000000..54eab1f --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandBool.srv @@ -0,0 +1,6 @@ +# Common type for switch commands + +bool value +--- +bool success +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandHome.srv b/src/external/mavros_msgs/srv/CommandHome.srv new file mode 100644 index 0000000..89882c7 --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandHome.srv @@ -0,0 +1,10 @@ +# request set new home position + +bool current_gps +float32 yaw +float32 latitude +float32 longitude +float32 altitude +--- +bool success +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandInt.srv b/src/external/mavros_msgs/srv/CommandInt.srv new file mode 100644 index 0000000..f2242c7 --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandInt.srv @@ -0,0 +1,19 @@ +# Generic COMMAND_INT + +bool broadcast # send this command in broadcast mode + +uint8 frame +uint16 command +uint8 current +uint8 autocontinue +float32 param1 +float32 param2 +float32 param3 +float32 param4 +int32 x # latitude in deg * 1E7 or local x * 1E4 m +int32 y # longitude in deg * 1E7 or local y * 1E4 m +float32 z # altitude +--- +bool success +# seems that this message don't produce andy COMMAND_ACK messages +# so no result field diff --git a/src/external/mavros_msgs/srv/CommandLong.srv b/src/external/mavros_msgs/srv/CommandLong.srv new file mode 100644 index 0000000..ca7f2bb --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandLong.srv @@ -0,0 +1,17 @@ +# Generic COMMAND_LONG + +bool broadcast # send this command in broadcast mode + +uint16 command +uint8 confirmation +float32 param1 +float32 param2 +float32 param3 +float32 param4 +float32 param5 # x_lat +float32 param6 # y_lon +float32 param7 # z_alt +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandTOL.srv b/src/external/mavros_msgs/srv/CommandTOL.srv new file mode 100644 index 0000000..b76c85e --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandTOL.srv @@ -0,0 +1,10 @@ +# Common type for Take Off and Landing + +float32 min_pitch # used by takeoff +float32 yaw +float32 latitude +float32 longitude +float32 altitude +--- +bool success +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandTOLLocal.srv b/src/external/mavros_msgs/srv/CommandTOLLocal.srv new file mode 100644 index 0000000..33d522f --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandTOLLocal.srv @@ -0,0 +1,10 @@ +#Common type for LOCAL Take Off and Landing + +float32 min_pitch # used by takeoff +float32 offset # used by land (landing position accuracy) +float32 rate # speed of takeoff/land in m/s +float32 yaw # in radians +geometry_msgs/Vector3 position #(x,y,z) in meters +--- +bool success +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandTriggerControl.srv b/src/external/mavros_msgs/srv/CommandTriggerControl.srv new file mode 100644 index 0000000..fa3977b --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandTriggerControl.srv @@ -0,0 +1,8 @@ +# Type for controlling onboard camera triggering system + +bool trigger_enable # Trigger enable/disable +bool sequence_reset # Reset the trigger sequence +bool trigger_pause # Pause triggering, but without switching the camera off or retracting it. +--- +bool success +uint8 result diff --git a/src/external/mavros_msgs/srv/CommandTriggerInterval.srv b/src/external/mavros_msgs/srv/CommandTriggerInterval.srv new file mode 100644 index 0000000..85af0f5 --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandTriggerInterval.srv @@ -0,0 +1,7 @@ +# Type for controlling camera trigger interval and integration time + +float32 cycle_time # Trigger cycle_time (interval between to triggers) - set to 0 to ignore command +float32 integration_time # Camera shutter integration_time - set to 0 to ignore command +--- +bool success +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/CommandVtolTransition.srv b/src/external/mavros_msgs/srv/CommandVtolTransition.srv new file mode 100644 index 0000000..fce9a72 --- /dev/null +++ b/src/external/mavros_msgs/srv/CommandVtolTransition.srv @@ -0,0 +1,16 @@ + +# MAVLink command: DO_VTOL_TRANSITION +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_VTOL_TRANSITION + +std_msgs/Header header + +# MAV_VTOL_STATE +uint8 STATE_MC = 3 +uint8 STATE_FW = 4 + +uint8 state # See enum MAV_VTOL_STATE. + +--- +bool success +uint8 result # Raw result returned by COMMAND_ACK + \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/EndpointAdd.srv b/src/external/mavros_msgs/srv/EndpointAdd.srv new file mode 100644 index 0000000..c102adb --- /dev/null +++ b/src/external/mavros_msgs/srv/EndpointAdd.srv @@ -0,0 +1,14 @@ +# +# Adds endpoint to router +# + +uint8 TYPE_FCU = 0 +uint8 TYPE_GCS = 1 +uint8 TYPE_UAS = 2 + +string url # mavconn URL or topic prefix for TYPE_UAS +uint8 type # should be set to one of the TYPE_xxx +--- +bool successful # true if endpoint added and opened +string reason # returns error description if open fails +uint32 id # ID of new endpoint, should be > 0 if endpoint created diff --git a/src/external/mavros_msgs/srv/EndpointDel.srv b/src/external/mavros_msgs/srv/EndpointDel.srv new file mode 100644 index 0000000..04d1ff3 --- /dev/null +++ b/src/external/mavros_msgs/srv/EndpointDel.srv @@ -0,0 +1,17 @@ +# +# Removes endpoint from router +# + +uint8 TYPE_FCU = 0 +uint8 TYPE_GCS = 1 +uint8 TYPE_UAS = 2 + +# delete by ID, leave 0 for second option +uint32 id + +# delete by url+type pair +string url +uint8 type + +--- +bool successful diff --git a/src/external/mavros_msgs/srv/FileChecksum.srv b/src/external/mavros_msgs/srv/FileChecksum.srv new file mode 100644 index 0000000..75cb4be --- /dev/null +++ b/src/external/mavros_msgs/srv/FileChecksum.srv @@ -0,0 +1,12 @@ +# FTP::Checksum +# +# :file_path: file to calculate checksum +# :crc32: file checksum +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string file_path +--- +uint32 crc32 +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileClose.srv b/src/external/mavros_msgs/srv/FileClose.srv new file mode 100644 index 0000000..b99419e --- /dev/null +++ b/src/external/mavros_msgs/srv/FileClose.srv @@ -0,0 +1,10 @@ +# FTP::Close +# +# Call FTP::Open first. +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string file_path +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileList.srv b/src/external/mavros_msgs/srv/FileList.srv new file mode 100644 index 0000000..d589a9e --- /dev/null +++ b/src/external/mavros_msgs/srv/FileList.srv @@ -0,0 +1,10 @@ +# FTP::List +# +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string dir_path +--- +mavros_msgs/FileEntry[] list +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileMakeDir.srv b/src/external/mavros_msgs/srv/FileMakeDir.srv new file mode 100644 index 0000000..c2067d9 --- /dev/null +++ b/src/external/mavros_msgs/srv/FileMakeDir.srv @@ -0,0 +1,9 @@ +# FTP::MakeDir +# +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string dir_path +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileOpen.srv b/src/external/mavros_msgs/srv/FileOpen.srv new file mode 100644 index 0000000..9ad26c3 --- /dev/null +++ b/src/external/mavros_msgs/srv/FileOpen.srv @@ -0,0 +1,17 @@ +# FTP::Open +# +# :file_path: used as session id in read/write/close services +# :size: file size returned for MODE_READ +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +uint8 MODE_READ = 0 # open for read +uint8 MODE_WRITE = 1 # open for write +uint8 MODE_CREATE = 2 # do creat() + +string file_path +uint8 mode +--- +uint32 size +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileRead.srv b/src/external/mavros_msgs/srv/FileRead.srv new file mode 100644 index 0000000..d8aa592 --- /dev/null +++ b/src/external/mavros_msgs/srv/FileRead.srv @@ -0,0 +1,13 @@ +# FTP::Read +# +# Call FTP::Open first. +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string file_path +uint64 offset +uint64 size +--- +uint8[] data +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileRemove.srv b/src/external/mavros_msgs/srv/FileRemove.srv new file mode 100644 index 0000000..af0328f --- /dev/null +++ b/src/external/mavros_msgs/srv/FileRemove.srv @@ -0,0 +1,9 @@ +# FTP::Remove +# +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string file_path +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileRemoveDir.srv b/src/external/mavros_msgs/srv/FileRemoveDir.srv new file mode 100644 index 0000000..c95d52f --- /dev/null +++ b/src/external/mavros_msgs/srv/FileRemoveDir.srv @@ -0,0 +1,9 @@ +# FTP::RemoveDir +# +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string dir_path +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileRename.srv b/src/external/mavros_msgs/srv/FileRename.srv new file mode 100644 index 0000000..0e367a5 --- /dev/null +++ b/src/external/mavros_msgs/srv/FileRename.srv @@ -0,0 +1,10 @@ +# FTP::Rename +# +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string old_path +string new_path +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileTruncate.srv b/src/external/mavros_msgs/srv/FileTruncate.srv new file mode 100644 index 0000000..4c78596 --- /dev/null +++ b/src/external/mavros_msgs/srv/FileTruncate.srv @@ -0,0 +1,10 @@ +# FTP::Truncate +# +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string file_path +uint64 length +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/FileWrite.srv b/src/external/mavros_msgs/srv/FileWrite.srv new file mode 100644 index 0000000..d94815e --- /dev/null +++ b/src/external/mavros_msgs/srv/FileWrite.srv @@ -0,0 +1,12 @@ +# FTP::Write +# +# Call FTP::Open first. +# :success: indicates success end of request +# :r_errno: remote errno if applicapable + +string file_path +uint64 offset +uint8[] data +--- +bool success +int32 r_errno diff --git a/src/external/mavros_msgs/srv/GimbalGetInformation.srv b/src/external/mavros_msgs/srv/GimbalGetInformation.srv new file mode 100644 index 0000000..c91bda2 --- /dev/null +++ b/src/external/mavros_msgs/srv/GimbalGetInformation.srv @@ -0,0 +1,10 @@ +# MAVLink command: MAV_CMD_REQUEST_MESSAGE +# https://mavlink.io/en/messages/common.html#MAV_CMD_REQUEST_MESSAGE +# Specifically used to request Information messages from Gimbal Device and Gimbal Manager +# https://mavlink.io/en/messages/common.html#GIMBAL_MANAGER_INFORMATION +# https://mavlink.io/en/messages/common.html#GIMBAL_DEVICE_INFORMATION + +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/GimbalManagerCameraTrack.srv b/src/external/mavros_msgs/srv/GimbalManagerCameraTrack.srv new file mode 100644 index 0000000..ef46dc9 --- /dev/null +++ b/src/external/mavros_msgs/srv/GimbalManagerCameraTrack.srv @@ -0,0 +1,28 @@ +# MAVLink commands: CAMERA_TRACK_POINT, CAMERA_TRACK_RECTANGLE, CAMERA_STOP_TRACKING +# https://mavlink.io/en/messages/common.html#MAV_CMD_CAMERA_TRACK_POINT +# https://mavlink.io/en/messages/common.html#MAV_CMD_CAMERA_TRACK_RECTANGLE +# https://mavlink.io/en/messages/common.html#MAV_CMD_CAMERA_STOP_TRACKING + +uint8 mode # enumerator to indicate camera track mode setting - see CAMERA_TRACK_MODE +#CAMERA_TRACK_MODE +uint8 CAMERA_TRACK_MODE_POINT = 0 # If the camera supports point visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_POINT is set), this command allows to initiate the tracking. [CAMERA_TRACK_POINT] +uint8 CAMERA_TRACK_MODE_RECTANGLE = 1 # If the camera supports rectangle visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE is set), this command allows to initiate the tracking. [CAMERA_TRACK_RECTANGLE] +uint8 CAMERA_TRACK_MODE_STOP_TRACKING = 2 # Stops ongoing tracking. [CAMERA_STOP_TRACKING] + +#For CAMERA_TRACK_POINT +float32 x # Point to track x value (normalized 0..1, 0 is left, 1 is right). +float32 y # Point to track y value (normalized 0..1, 0 is top, 1 is bottom). +float32 radius # Point radius (normalized 0..1, 0 is image left, 1 is image right). + +#For CAMERA_TRACK_RECTANGLE +float32 top_left_x # Top left corner of rectangle x value (normalized 0..1, 0 is left, 1 is right). +float32 top_left_y # Top left corner of rectangle y value (normalized 0..1, 0 is top, 1 is bottom). +float32 bottom_right_x # Bottom right corner of rectangle x value (normalized 0..1, 0 is left, 1 is right). +float32 bottom_right_y # Bottom right corner of rectangle y value (normalized 0..1, 0 is top, 1 is bottom). + +#CAMERA_STOP_TRACKING doesn't take extra parameters + +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/GimbalManagerConfigure.srv b/src/external/mavros_msgs/srv/GimbalManagerConfigure.srv new file mode 100644 index 0000000..c0a2176 --- /dev/null +++ b/src/external/mavros_msgs/srv/GimbalManagerConfigure.srv @@ -0,0 +1,32 @@ +# MAVLink command: DO_GIMBAL_MANAGER_CONFIGURE +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE +# Note: default MAV_COMP_ID_ONBOARD_COMPUTER = 191, see MAV_COMPONENT documentation +# https://mavlink.io/en/messages/common.html#MAV_COMPONENT + +int16 sysid_primary # Sysid for primary control (0: no one in control, + # -1: leave unchanged, -2: set itself in control + # (for missions where the own sysid is still unknown), + # -3: remove control if currently in control). +int16 compid_primary # Compid for primary control (0: no one in control, + # -1: leave unchanged, -2: set itself in control + # (for missions where the own sysid is still unknown), + # -3: remove control if currently in control). +int16 sysid_secondary # Sysid for secondary control (0: no one in control, + # -1: leave unchanged, -2: set itself in control + # (for missions where the own sysid is still unknown), + # -3: remove control if currently in control). +int16 compid_secondary # Compid for secondary control (0: no one in control, + # -1: leave unchanged, -2: set itself in control + # (for missions where the own sysid is still unknown), + # -3: remove control if currently in control). + +uint8 gimbal_device_id # Component ID of gimbal device to address + # (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device + # components. Send command multiple times for more than + # one gimbal (but not all gimbals). + # Note: Default Mavlink gimbal device ids: 154, 171-175 + +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/GimbalManagerPitchyaw.srv b/src/external/mavros_msgs/srv/GimbalManagerPitchyaw.srv new file mode 100644 index 0000000..6e3c14e --- /dev/null +++ b/src/external/mavros_msgs/srv/GimbalManagerPitchyaw.srv @@ -0,0 +1,27 @@ +# MAVLink commands: DO_GIMBAL_MANAGER_PITCHYAW +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW + + +float32 pitch # Pitch angle (positive to pitch up, relative to vehicle for FOLLOW mode, relative to world horizon for LOCK mode). (-180 to 180 deg) +float32 yaw # Yaw angle (positive to yaw to the right, relative to vehicle for FOLLOW mode, absolute to North for LOCK mode). (-180 to 180 deg) +float32 pitch_rate # Pitch rate (positive to pitch up). (deg/s) +float32 yaw_rate # Yaw rate (positive to yaw to the right). (deg/s) + +uint32 flags # High level gimbal manager flags to use - See GIMBAL_MANAGER_FLAGS +#GIMBAL_MANAGER_FLAGS +uint32 GIMBAL_MANAGER_FLAGS_RETRACT = 1 # Based on GIMBAL_DEVICE_FLAGS_RETRACT +uint32 GIMBAL_MANAGER_FLAGS_NEUTRAL = 2 # Based on GIMBAL_DEVICE_FLAGS_NEUTRAL +uint32 GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4 # Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK +uint32 GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8 # Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK +uint32 GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16 # Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK + +uint8 gimbal_device_id # Component ID of gimbal device to address + # (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device + # components. Send command multiple times for more than + # one gimbal (but not all gimbals). Default Mavlink gimbal + # device ids: 154, 171-175 + +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/GimbalManagerSetRoi.srv b/src/external/mavros_msgs/srv/GimbalManagerSetRoi.srv new file mode 100644 index 0000000..02904d8 --- /dev/null +++ b/src/external/mavros_msgs/srv/GimbalManagerSetRoi.srv @@ -0,0 +1,38 @@ +# MAVLink commands: DO_SET_ROI_LOCATION, DO_SET_ROI_WPNEXT_OFFSET, DO_SET_ROI_SYSID, DO_SET_ROI_NONE +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI_LOCATION +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI_SYSID +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ROI_NONE + +uint8 mode # enumerator to indicate ROI mode setting - see ROI_MODE +#ROI_MODE +uint8 ROI_MODE_LOCATION = 0 # Sets the region of interest (ROI) to a location. [DO_SET_ROI_LOCATION] +uint8 ROI_MODE_WP_NEXT_OFFSET = 1 # Sets the region of interest (ROI) to be toward next waypoint, with optional pitch/roll/yaw offset. [DO_SET_ROI_WPNEXT_OFFSET] +uint8 ROI_MODE_SYSID = 2 # Mount tracks system with specified system ID [DO_SET_ROI_SYSID] +uint8 ROI_MODE_NONE = 3 # Cancels any previous ROI setting and returns vehicle to defaults [DO_SET_ROI_NONE] + +uint8 gimbal_device_id # Component ID of gimbal device to address + # (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device + # components. Send command multiple times for more than + # one gimbal (but not all gimbals). Default Mavlink gimbal + # device ids: 154, 171-175 + +#For ROI_MODE_LOCATION +float32 latitude +float32 longitude +float32 altitude # Meters + +#For ROI_MODE_WP_NEXT_OFFSET +float32 pitch_offset # Pitch offset from next waypoint, positive pitching up +float32 roll_offset # Roll offset from next waypoint, positive rolling to the right +float32 yaw_offset # Yaw offset from next waypoint, positive yawing to the right + +#For ROI_MODE_SYSID +uint8 sysid # System ID to track (min: 1, max: 255) + +#ROI_MODE_NONE doesn't take extra parameters + +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/LogRequestData.srv b/src/external/mavros_msgs/srv/LogRequestData.srv new file mode 100644 index 0000000..b306df6 --- /dev/null +++ b/src/external/mavros_msgs/srv/LogRequestData.srv @@ -0,0 +1,11 @@ +# Request a chunk of a log +# +# :id: - log id from LogEntry message +# :offset: - offset into the log +# :count: - number of bytes to get + +uint16 id +uint32 offset +uint32 count +--- +bool success diff --git a/src/external/mavros_msgs/srv/LogRequestEnd.srv b/src/external/mavros_msgs/srv/LogRequestEnd.srv new file mode 100644 index 0000000..956e89f --- /dev/null +++ b/src/external/mavros_msgs/srv/LogRequestEnd.srv @@ -0,0 +1,4 @@ +# Stop log transfer and resume normal logging + +--- +bool success diff --git a/src/external/mavros_msgs/srv/LogRequestList.srv b/src/external/mavros_msgs/srv/LogRequestList.srv new file mode 100644 index 0000000..14eb46c --- /dev/null +++ b/src/external/mavros_msgs/srv/LogRequestList.srv @@ -0,0 +1,9 @@ +# Request a list of available logs +# +# :start: - first log id (0 for first available) +# :end: - last log id (0xffff for last available) + +uint16 start +uint16 end +--- +bool success diff --git a/src/external/mavros_msgs/srv/MessageInterval.srv b/src/external/mavros_msgs/srv/MessageInterval.srv new file mode 100644 index 0000000..5db5436 --- /dev/null +++ b/src/external/mavros_msgs/srv/MessageInterval.srv @@ -0,0 +1,7 @@ +# sets message interval +# See MAV_CMD_SET_MESSAGE_INTERVAL + +uint32 message_id +float32 message_rate +--- +bool success diff --git a/src/external/mavros_msgs/srv/MountConfigure.srv b/src/external/mavros_msgs/srv/MountConfigure.srv new file mode 100644 index 0000000..2b9afaf --- /dev/null +++ b/src/external/mavros_msgs/srv/MountConfigure.srv @@ -0,0 +1,28 @@ +# MAVLink message: DO_MOUNT_CONTROL +# https://mavlink.io/en/messages/common.html#MAV_CMD_DO_MOUNT_CONFIGURE + +std_msgs/Header header + +uint8 mode # See enum MAV_MOUNT_MODE. +#MAV_MOUNT_MODE +uint8 MODE_RETRACT = 0 +uint8 MODE_NEUTRAL = 1 +uint8 MODE_MAVLINK_TARGETING = 2 +uint8 MODE_RC_TARGETING = 3 +uint8 MODE_GPS_POINT = 4 + +bool stabilize_roll # stabilize roll? (1 = yes, 0 = no) +bool stabilize_pitch # stabilize pitch? (1 = yes, 0 = no) +bool stabilize_yaw # stabilize yaw? (1 = yes, 0 = no) +uint8 roll_input # roll input (See enum MOUNT_INPUT) +uint8 pitch_input # pitch input (See enum MOUNT_INPUT) +uint8 yaw_input # yaw input (See enum MOUNT_INPUT) + +#MOUNT_INPUT +uint8 INPUT_ANGLE_BODY_FRAME = 0 +uint8 INPUT_ANGULAR_RATE = 1 +uint8 INPUT_ANGLE_ABSOLUTE_FRAME = 2 +--- +bool success +# raw result returned by COMMAND_ACK +uint8 result \ No newline at end of file diff --git a/src/external/mavros_msgs/srv/ParamGet.srv b/src/external/mavros_msgs/srv/ParamGet.srv new file mode 100644 index 0000000..cf092f0 --- /dev/null +++ b/src/external/mavros_msgs/srv/ParamGet.srv @@ -0,0 +1,8 @@ +# Request parameter from attached device + +# XXX DEPRECATED: use ros2 parameters api instead + +string param_id +--- +bool success +ParamValue value diff --git a/src/external/mavros_msgs/srv/ParamPull.srv b/src/external/mavros_msgs/srv/ParamPull.srv new file mode 100644 index 0000000..db11796 --- /dev/null +++ b/src/external/mavros_msgs/srv/ParamPull.srv @@ -0,0 +1,8 @@ +# Request parameters from device +# +# Returns success status and param_recived count + +bool force_pull +--- +bool success +uint32 param_received diff --git a/src/external/mavros_msgs/srv/ParamPush.srv b/src/external/mavros_msgs/srv/ParamPush.srv new file mode 100644 index 0000000..fe0d4f8 --- /dev/null +++ b/src/external/mavros_msgs/srv/ParamPush.srv @@ -0,0 +1,9 @@ +# Send current send +# +# Returns success status and param_transfered count + +# XXX DEPRECATED: not used. param plugin listen to parameter changes + +--- +bool success +uint32 param_transfered diff --git a/src/external/mavros_msgs/srv/ParamSet.srv b/src/external/mavros_msgs/srv/ParamSet.srv new file mode 100644 index 0000000..f5b64d9 --- /dev/null +++ b/src/external/mavros_msgs/srv/ParamSet.srv @@ -0,0 +1,9 @@ +# Request set parameter value + +# XXX DEPRECATED: replaced by ParamSetV2 + +string param_id +mavros_msgs/ParamValue value +--- +bool success +mavros_msgs/ParamValue value diff --git a/src/external/mavros_msgs/srv/ParamSetV2.srv b/src/external/mavros_msgs/srv/ParamSetV2.srv new file mode 100644 index 0000000..e06b85a --- /dev/null +++ b/src/external/mavros_msgs/srv/ParamSetV2.srv @@ -0,0 +1,14 @@ +# Request set parameter value +# +# That interface allow to bypass some checks +# and send value as is to the FCU if force_set is true. +# +# Use that api only if ROS2 Parameter API is not sufficient +# for your application. + +bool force_set +string param_id +rcl_interfaces/ParameterValue value +--- +bool success +rcl_interfaces/ParameterValue value diff --git a/src/external/mavros_msgs/srv/SetMavFrame.srv b/src/external/mavros_msgs/srv/SetMavFrame.srv new file mode 100644 index 0000000..b12f76a --- /dev/null +++ b/src/external/mavros_msgs/srv/SetMavFrame.srv @@ -0,0 +1,36 @@ +# Set MAV_FRAME for setpoints + +# XXX DEPRECATED + +# [[[cog: +# import mavros_cog +# mavros_cog.idl_decl_enum('MAV_FRAME', 'FRAME_') +# ]]] +# MAV_FRAME +uint8 FRAME_GLOBAL = 0 # Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). +uint8 FRAME_LOCAL_NED = 1 # NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth. +uint8 FRAME_MISSION = 2 # NOT a coordinate frame, indicates a mission command. +uint8 FRAME_GLOBAL_RELATIVE_ALT = 3 # Global (WGS84) coordinate frame + altitude relative to the home position. First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home location. +uint8 FRAME_LOCAL_ENU = 4 # ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth. +uint8 FRAME_GLOBAL_INT = 5 # Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL). +uint8 FRAME_GLOBAL_RELATIVE_ALT_INT = 6 # Global (WGS84) coordinate frame (scaled) + altitude relative to the home position. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home location. +uint8 FRAME_LOCAL_OFFSET_NED = 7 # NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle. +uint8 FRAME_BODY_NED = 8 # Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/accelaration values. +uint8 FRAME_BODY_OFFSET_NED = 9 # This is the same as MAV_FRAME_BODY_FRD. +uint8 FRAME_GLOBAL_TERRAIN_ALT = 10 # Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model. +uint8 FRAME_GLOBAL_TERRAIN_ALT_INT = 11 # Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model. +uint8 FRAME_BODY_FRD = 12 # FRD local tangent frame (x: Forward, y: Right, z: Down) with origin that travels with vehicle. The forward axis is aligned to the front of the vehicle in the horizontal plane. +uint8 FRAME_RESERVED_13 = 13 # MAV_FRAME_BODY_FLU - Body fixed frame of reference, Z-up (x: Forward, y: Left, z: Up). +uint8 FRAME_RESERVED_14 = 14 # MAV_FRAME_MOCAP_NED - Odometry local coordinate frame of data given by a motion capture system, Z-down (x: North, y: East, z: Down). +uint8 FRAME_RESERVED_15 = 15 # MAV_FRAME_MOCAP_ENU - Odometry local coordinate frame of data given by a motion capture system, Z-up (x: East, y: North, z: Up). +uint8 FRAME_RESERVED_16 = 16 # MAV_FRAME_VISION_NED - Odometry local coordinate frame of data given by a vision estimation system, Z-down (x: North, y: East, z: Down). +uint8 FRAME_RESERVED_17 = 17 # MAV_FRAME_VISION_ENU - Odometry local coordinate frame of data given by a vision estimation system, Z-up (x: East, y: North, z: Up). +uint8 FRAME_RESERVED_18 = 18 # MAV_FRAME_ESTIM_NED - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-down (x: North, y: East, z: Down). +uint8 FRAME_RESERVED_19 = 19 # MAV_FRAME_ESTIM_ENU - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-up (x: East, y: North, z: Up). +uint8 FRAME_LOCAL_FRD = 20 # FRD local tangent frame (x: Forward, y: Right, z: Down) with origin fixed relative to earth. The forward axis is aligned to the front of the vehicle in the horizontal plane. +uint8 FRAME_LOCAL_FLU = 21 # FLU local tangent frame (x: Forward, y: Left, z: Up) with origin fixed relative to earth. The forward axis is aligned to the front of the vehicle in the horizontal plane. +# [[[end]]] (checksum: c5ddb537c91e87c4efba8b24c9cde50e) + +uint8 mav_frame +--- +bool success diff --git a/src/external/mavros_msgs/srv/SetMode.srv b/src/external/mavros_msgs/srv/SetMode.srv new file mode 100644 index 0000000..2637c0e --- /dev/null +++ b/src/external/mavros_msgs/srv/SetMode.srv @@ -0,0 +1,22 @@ +# set FCU mode +# +# Known custom modes listed here: +# http://wiki.ros.org/mavros/CustomModes + +# basic modes from MAV_MODE +uint8 MAV_MODE_PREFLIGHT = 0 +uint8 MAV_MODE_STABILIZE_DISARMED = 80 +uint8 MAV_MODE_STABILIZE_ARMED = 208 +uint8 MAV_MODE_MANUAL_DISARMED = 64 +uint8 MAV_MODE_MANUAL_ARMED = 192 +uint8 MAV_MODE_GUIDED_DISARMED = 88 +uint8 MAV_MODE_GUIDED_ARMED = 216 +uint8 MAV_MODE_AUTO_DISARMED = 92 +uint8 MAV_MODE_AUTO_ARMED = 220 +uint8 MAV_MODE_TEST_DISARMED = 66 +uint8 MAV_MODE_TEST_ARMED = 194 + +uint8 base_mode # filled by MAV_MODE enum value or 0 if custom_mode != '' +string custom_mode # string mode representation or integer +--- +bool mode_sent # Mode known/parsed correctly and SET_MODE are sent diff --git a/src/external/mavros_msgs/srv/StreamRate.srv b/src/external/mavros_msgs/srv/StreamRate.srv new file mode 100644 index 0000000..a66ca54 --- /dev/null +++ b/src/external/mavros_msgs/srv/StreamRate.srv @@ -0,0 +1,17 @@ +# sets stream rate +# See REQUEST_DATA_STREAM message + +uint8 STREAM_ALL = 0 +uint8 STREAM_RAW_SENSORS = 1 +uint8 STREAM_EXTENDED_STATUS = 2 +uint8 STREAM_RC_CHANNELS = 3 +uint8 STREAM_RAW_CONTROLLER = 4 +uint8 STREAM_POSITION = 6 +uint8 STREAM_EXTRA1 = 10 +uint8 STREAM_EXTRA2 = 11 +uint8 STREAM_EXTRA3 = 12 + +uint8 stream_id +uint16 message_rate +bool on_off +--- diff --git a/src/external/mavros_msgs/srv/VehicleInfoGet.srv b/src/external/mavros_msgs/srv/VehicleInfoGet.srv new file mode 100644 index 0000000..9e32236 --- /dev/null +++ b/src/external/mavros_msgs/srv/VehicleInfoGet.srv @@ -0,0 +1,14 @@ +# Request the Vehicle Info +# use this to request the current target sysid / compid defined in mavros +# set get_all = True to request all available vehicles + +uint8 GET_MY_SYSID = 0 +uint8 GET_MY_COMPID = 0 + +uint8 sysid +uint8 compid +bool get_all +--- +bool success +mavros_msgs/VehicleInfo[] vehicles + diff --git a/src/external/mavros_msgs/srv/WaypointClear.srv b/src/external/mavros_msgs/srv/WaypointClear.srv new file mode 100644 index 0000000..ac3d34c --- /dev/null +++ b/src/external/mavros_msgs/srv/WaypointClear.srv @@ -0,0 +1,4 @@ +# Request clear waypoint + +--- +bool success diff --git a/src/external/mavros_msgs/srv/WaypointPull.srv b/src/external/mavros_msgs/srv/WaypointPull.srv new file mode 100644 index 0000000..2d7ac2c --- /dev/null +++ b/src/external/mavros_msgs/srv/WaypointPull.srv @@ -0,0 +1,7 @@ +# Requests waypoints from device +# +# Returns success status and received count + +--- +bool success +uint32 wp_received diff --git a/src/external/mavros_msgs/srv/WaypointPush.srv b/src/external/mavros_msgs/srv/WaypointPush.srv new file mode 100644 index 0000000..e29727b --- /dev/null +++ b/src/external/mavros_msgs/srv/WaypointPush.srv @@ -0,0 +1,11 @@ +# Send waypoints to device +# +# :start_index: will define a partial waypoint update. Set to 0 for full update +# +# Returns success status and transfered count + +uint16 start_index +mavros_msgs/Waypoint[] waypoints +--- +bool success +uint32 wp_transfered diff --git a/src/external/mavros_msgs/srv/WaypointSetCurrent.srv b/src/external/mavros_msgs/srv/WaypointSetCurrent.srv new file mode 100644 index 0000000..b99612f --- /dev/null +++ b/src/external/mavros_msgs/srv/WaypointSetCurrent.srv @@ -0,0 +1,7 @@ +# Request set current waypoint +# +# wp_seq - index in waypoint array + +uint16 wp_seq +--- +bool success