Compare commits
45 Commits
d21bc6b069
...
0ce78b964a
@ -0,0 +1,7 @@
|
||||
[submodule "src/external/angles"]
|
||||
path = src/external/angles
|
||||
url = https://github.com/ros/angles.git
|
||||
[submodule "src/external/geographic_info"]
|
||||
path = src/external/geographic_info
|
||||
url = https://github.com/ros-geographic-info/geographic_info.git
|
||||
branch = ros2
|
||||
@ -0,0 +1 @@
|
||||
Subproject commit a96224f9ab3ac51fe8fd981c1e1554528dc4345a
|
||||
@ -0,0 +1 @@
|
||||
Subproject commit 24806adc767414eb3a34a58aefeb648ee415b09a
|
||||
File diff suppressed because it is too large
Load Diff
@ -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:
|
||||
@ -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'
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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.
|
||||
@ -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
|
||||
@ -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)
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -0,0 +1,37 @@
|
||||
# FCU GPS INPUT message for the gps_input plugin
|
||||
# <a href="https://mavlink.io/en/messages/common.html#GPS_INPUT">mavlink GPS_INPUT message</a>.
|
||||
|
||||
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.
|
||||
@ -0,0 +1,37 @@
|
||||
# FCU GPS RAW message for the gps_status plugin
|
||||
# A merge of <a href="https://mavlink.io/en/messages/common.html#GPS_RAW_INT">mavlink GPS_RAW_INT</a> and
|
||||
# <a href="https://mavlink.io/en/messages/common.html#GPS2_RAW">mavlink GPS2_RAW</a> 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
|
||||
@ -0,0 +1,18 @@
|
||||
# FCU GPS RTK message for the gps_status plugin
|
||||
# A copy of <a href="https://mavlink.io/en/messages/common.html#GPS_RTK">mavlink GPS_RTK message</a>
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@ -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.
|
||||
@ -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)
|
||||
@ -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.
|
||||
@ -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)
|
||||
@ -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.
|
||||
@ -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).
|
||||
@ -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.
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -0,0 +1,4 @@
|
||||
std_msgs/Header header
|
||||
|
||||
uint8 report
|
||||
float32 confidence
|
||||
@ -0,0 +1,7 @@
|
||||
# Manual Control state
|
||||
std_msgs/Header header
|
||||
float32 x
|
||||
float32 y
|
||||
float32 z
|
||||
float32 r
|
||||
uint16 buttons
|
||||
@ -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 <mavros_msgs/mavlink_convert.hpp>
|
||||
# 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
|
||||
@ -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.
|
||||
@ -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
|
||||
@ -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.
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -0,0 +1,5 @@
|
||||
# RAW RC input state
|
||||
|
||||
std_msgs/Header header
|
||||
uint8 rssi
|
||||
uint16[] channels
|
||||
@ -0,0 +1,4 @@
|
||||
# RAW Servo out state
|
||||
|
||||
std_msgs/Header header
|
||||
uint16[] channels
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -0,0 +1,5 @@
|
||||
# Thrust to send to the FCU
|
||||
|
||||
std_msgs/Header header
|
||||
|
||||
float32 thrust
|
||||
@ -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)
|
||||
@ -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
|
||||
@ -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)
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -0,0 +1,7 @@
|
||||
# That message represent MISSION_ITEM_REACHED
|
||||
#
|
||||
# :wp_seq: index number of reached waypoint
|
||||
|
||||
std_msgs/Header header
|
||||
|
||||
uint16 wp_seq
|
||||
@ -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
|
||||
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||
<package format="3">
|
||||
<name>mavros_msgs</name>
|
||||
<version>2.9.0</version>
|
||||
<description>
|
||||
mavros_msgs defines messages for <a href="http://wiki.ros.org/mavros">MAVROS</a>.
|
||||
</description>
|
||||
|
||||
<maintainer email="vooon341@gmail.com">Vladimir Ermakov</maintainer>
|
||||
|
||||
<license>GPLv3</license>
|
||||
<license>LGPLv3</license>
|
||||
<license>BSD</license>
|
||||
|
||||
<url type="website">http://wiki.ros.org/mavros_msgs</url>
|
||||
<url type="repository">https://github.com/mavlink/mavros.git</url>
|
||||
<url type="bugtracker">https://github.com/mavlink/mavros/issues</url>
|
||||
|
||||
<author email="vooon341@gmail.com">Vladimir Ermakov</author>
|
||||
|
||||
<buildtool_depend>ament_cmake</buildtool_depend>
|
||||
|
||||
<buildtool_depend>rosidl_default_generators</buildtool_depend>
|
||||
<exec_depend>rosidl_default_runtime</exec_depend>
|
||||
|
||||
<!-- <depend>builtin_interfaces</depend> -->
|
||||
<depend>rcl_interfaces</depend>
|
||||
<depend>geographic_msgs</depend>
|
||||
<depend>geometry_msgs</depend>
|
||||
<depend>sensor_msgs</depend>
|
||||
<!-- <depend>std_msgs</depend> -->
|
||||
<!-- XXX needed for users of mavlink_convert.h
|
||||
<build_export_depend>libmavconn</build_export_depend>
|
||||
-->
|
||||
|
||||
<test_depend>ament_lint_auto</test_depend>
|
||||
<test_depend>ament_lint_common</test_depend>
|
||||
|
||||
<member_of_group>rosidl_interface_packages</member_of_group>
|
||||
|
||||
<export>
|
||||
<build_type>ament_cmake</build_type>
|
||||
<ros1_bridge mapping_rules="mavros_msgs_mapping_rule.yaml" />
|
||||
</export>
|
||||
</package>
|
||||
@ -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
|
||||
@ -0,0 +1,6 @@
|
||||
# Common type for switch commands
|
||||
|
||||
bool value
|
||||
---
|
||||
bool success
|
||||
uint8 result
|
||||
@ -0,0 +1,10 @@
|
||||
# request set new home position
|
||||
|
||||
bool current_gps
|
||||
float32 yaw
|
||||
float32 latitude
|
||||
float32 longitude
|
||||
float32 altitude
|
||||
---
|
||||
bool success
|
||||
uint8 result
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue