Mission Planning
mission_planning
Classes:
-
CameraAction–List of available camera actions.
-
CameraCommand–CameraCommands are used to control the camera from a mission.
-
ControlModeCommand–A ControlModeCommand is used to set vertical and horizontal
-
ControlModeHorizontal–Control mode for the horizontal axis of the drone.
-
ControlModeVertical–Control mode for the vertical axis of the drone.
-
DepthSetPoint–Depth set point is used to describe a depth set-point
-
DepthSetPointCommand–A DepthSetPointCommand is used to go to a desired depth or
-
DepthZeroReference–Depth zero reference from surface for depth, and seabed for
-
GoToHomeCommand–GoToHomeCommand is used to go to the home position.
-
GoToSeabedCommand–GoToSeabedCommand is used to go to the seabed.
-
GoToSurfaceCommand–GoToSurfaceCommand is used to go to the surface.
-
Instruction–A mission consists of one or multiple instructions. One
-
InstructionType–List of available instruction types.
-
Mission–A list of waypoints describes a mission that the auto pilot
-
MissionState–List of mission supervisor states.
-
MissionStatus–Mission Status is used for showing the status of the mission.
-
PathSegment–Path segment used to describe segments of a mission as a line
-
ReferenceAutoPilot–Reference for the auto pilot when a mission is active.
-
SurveyCommand–A SurveyCommand defines a survey (lawn-mower) pattern over a
-
TiltMainCameraCommand–The TiltMainCameraCommand can set the desired camera tilt
-
TiltMultibeamCommand–The TiltMultibeamCommand is used to set the tilt angle of the
-
WaitForCommand–WaitForCommand is used to wait during a mission.
-
Waypoint–Waypoints used to describe a path for the auto pilot.
-
WaypointCommand–A WaypointCommand will request the drone to drive to a point
CameraAction
List of available camera actions.
Attributes:
-
CAMERA_ACTION_UNSPECIFIED(0) –Unspecified command.
-
CAMERA_ACTION_TAKE_PHOTO(1) –Take one photo.
-
CAMERA_ACTION_TAKE_PHOTOS_TIME(2) –Take a photo every x second.
-
CAMERA_ACTION_TAKE_PHOTOS_DISTANCE(3) –Take a photo every x meter.
-
CAMERA_ACTION_STOP_TAKING_PHOTOS(4) –Stop taking photos.
-
CAMERA_ACTION_START_RECORDING(5) –Start recording.
-
CAMERA_ACTION_STOP_RECORDING(6) –Stop recording.
CameraCommand
CameraCommands are used to control the camera from a mission.
Attributes:
-
camera_action(CameraAction) –Camera command.
-
action_param(float) –Used for taking photos based on a time or distance interval.
ControlModeCommand
A ControlModeCommand is used to set vertical and horizontal control mode during a mission.
Attributes:
-
control_mode_vertical(ControlModeVertical) –Desired control mode in heave.
-
control_mode_horizontal(ControlModeHorizontal) –Desired control mode in surge and yaw.
ControlModeHorizontal
Control mode for the horizontal axis of the drone.
Attributes:
-
CONTROL_MODE_HORIZONTAL_UNSPECIFIED(0) –Unspecified.
-
CONTROL_MODE_HORIZONTAL_MANUAL(1) –Manual control mode.
-
CONTROL_MODE_HORIZONTAL_AUTO_HEADING(2) –Auto heading control mode.
-
CONTROL_MODE_HORIZONTAL_STATION_KEEPING(3) –Station keeping control mode.
ControlModeVertical
Control mode for the vertical axis of the drone.
Attributes:
-
CONTROL_MODE_VERTICAL_UNSPECIFIED(0) –Unspecified.
-
CONTROL_MODE_VERTICAL_MANUAL(1) –Manual control mode.
-
CONTROL_MODE_VERTICAL_AUTO_DEPTH(2) –Auto depth control mode.
-
CONTROL_MODE_VERTICAL_AUTO_ALTITUDE(3) –Auto altitude control mode.
DepthSetPoint
Depth set point is used to describe a depth set-point relative to the surface or the seabed.
Attributes:
-
depth(float) –Desired depth at the wp (m).
-
speed_to_depth(float) –Desired speed to desired depth set point (m/s).
-
depth_zero_reference(DepthZeroReference) –Used to distinguish desired altitude or depth.
DepthSetPointCommand
A DepthSetPointCommand is used to go to a desired depth or altitude.
Attributes:
-
depth_set_point(DepthSetPoint) –Depth set point to go to.
DepthZeroReference
Depth zero reference from surface for depth, and seabed for altitude.
Attributes:
-
DEPTH_ZERO_REFERENCE_UNSPECIFIED(0) –No description available.
-
DEPTH_ZERO_REFERENCE_SURFACE(1) –No description available.
-
DEPTH_ZERO_REFERENCE_SEABED(2) –No description available.
GoToHomeCommand
GoToHomeCommand is used to go to the home position.
Attributes:
-
desired_speed(float) –Desired speed to home (m/s).
GoToSeabedCommand
GoToSeabedCommand is used to go to the seabed.
Attributes:
-
desired_speed(float) –Desired speed to seabed (m/s).
GoToSurfaceCommand
GoToSurfaceCommand is used to go to the surface.
Attributes:
-
desired_speed(float) –Desired speed to surface (m/s).
Instruction
A mission consists of one or multiple instructions. One instruction can be of different types.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
-
id(int) – -
group_id(int) –Group id used for polygons.
-
auto_continue(bool) –False will pause the mission after this instruction.
-
waypoint_command(WaypointCommand) –Go to waypoint.
This field is a member of
oneof_command. -
depth_set_point_command(DepthSetPointCommand) –Go to depth.
This field is a member of
oneof_command. -
camera_command(CameraCommand) –Camera commands.
This field is a member of
oneof_command. -
control_mode_command(ControlModeCommand) –Set control modes.
This field is a member of
oneof_command. -
tilt_main_camera_command(TiltMainCameraCommand) –Set camera to angle x.
This field is a member of
oneof_command. -
tilt_multibeam_command(TiltMultibeamCommand) –Set multibeam tilt angle.
This field is a member of
oneof_command. -
wait_for_command(WaitForCommand) –Wait for x seconds.
This field is a member of
oneof_command. -
go_to_surface_command(GoToSurfaceCommand) –Go to surface.
This field is a member of
oneof_command. -
go_to_seabed_command(GoToSeabedCommand) –Go to seabed.
This field is a member of
oneof_command. -
go_to_home_command(GoToHomeCommand) –Go to home position.
This field is a member of
oneof_command. -
survey_command(SurveyCommand) –Execute a survey pattern over a polygon area.
This field is a member of
oneof_command.
InstructionType
List of available instruction types.
Attributes:
-
INSTRUCTION_TYPE_UNSPECIFIED(0) –Unspecified.
-
INSTRUCTION_TYPE_NONE(1) –None.
-
INSTRUCTION_TYPE_GO_TO_WAYPOINT(2) –Go to waypoint.
-
INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT(3) –Go to waypoint with depth set point.
-
INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT(4) –Go to depth set point.
-
INSTRUCTION_TYPE_SET_CAMERA_ACTION(5) –Command used to take photo repeatedly or start, stop recording.
-
INSTRUCTION_TYPE_SET_CONTROL_MODE(6) –Sets a new control mode.
-
INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA(7) –Sets a new angle for the tilt servo.
-
INSTRUCTION_TYPE_SET_TILT_SERVO(8) –Sets a new angle for the tilt servo.
-
INSTRUCTION_TYPE_WAIT_FOR_SEC(9) –Waiting for requested time in seconds.
-
INSTRUCTION_TYPE_GO_TO_SURFACE(10) –Go to the surface.
-
INSTRUCTION_TYPE_GO_TO_SEABED(11) –Go to the seabed.
-
INSTRUCTION_TYPE_GO_TO_HOME(12) –Returning to home.
-
INSTRUCTION_TYPE_SURVEY(13) –Execute a survey pattern over a polygon area.
Mission
A list of waypoints describes a mission that the auto pilot can execute.
Attributes:
-
id(int) –Mission id, defined by the client.
-
name(str) –Mission name provided from the app.
-
instructions(MutableSequence[Instruction]) –List of instructions in the mission.
-
path_segments(MutableSequence[PathSegment]) –Calculated path segments from the reference generator (optional).
-
total_distance(int) –Total distance of the mission (m) (optional).
-
total_duration_time(int) –Total duration time of the mission (s) (optional).
-
default_surge_speed(float) –Default cruise speed of the mission (m/s) (optional).
-
default_heave_speed(float) –Default heave speed of the mission (m/s) (optional).
-
default_circle_of_acceptance(float) –Default circle of acceptance for waypoints (m) (optional).
MissionState
List of mission supervisor states.
Attributes:
-
MISSION_STATE_UNSPECIFIED(0) –Unspecified.
-
MISSION_STATE_INACTIVE(1) –Mission supervisor is inactive.
-
MISSION_STATE_READY(2) –Ready to start mission.
-
MISSION_STATE_RUNNING(3) –Mission is running.
-
MISSION_STATE_PAUSED(4) –Mission is paused.
-
MISSION_STATE_COMPLETED(5) –Mission is completed.
-
MISSION_STATE_ABORTED(6) –Mission is aborted by the mission supervisor.
-
MISSION_STATE_FAILED_TO_LOAD_MISSION(7) –Mission has failed to load.
-
MISSION_STATE_FAILED_TO_START_MISSION(8) –Mission has failed to start.
MissionStatus
Mission Status is used for showing the status of the mission.
Attributes:
-
state(MissionState) –State of the mission supervisor.
-
time_elapsed(int) –Time elapsed since mission started (s).
-
estimated_time_to_complete(int) –Estimated time to complete the mission (s).
-
distance_to_complete(int) –Distance left of the mission (m).
-
completed_instruction_ids(MutableSequence[int]) –Ids of the completed instructions.
-
total_number_of_instructions(int) –Total number of instructions in the mission.
-
completed_path_segment_ids(MutableSequence[int]) –Ids of the completed path segments.
-
total_number_of_path_segments(int) –Total number of path segments in the mission.
-
id(int) –Mission id of the active mission.
PathSegment
Path segment used to describe segments of a mission as a line between to waypoints.
Attributes:
-
id(int) –Path segment id starting at 0, -1 for inactive.
-
speed_to_target(float) –Desired speed over ground in (m/s).
-
course_to_target(float) –Course to target relative to north (rad) [-pi, pi].
-
depth_speed(float) –Desired speed in heave (m/s).
-
horizontal_length(float) –Horizontal length of the path segment (m).
-
vertical_length(float) –Vertical length of the path segment (m).
-
from_wp_id(int) –Id of the starting waypoint.
-
to_wp_id(int) –Id of the ending waypoint.
-
duration_time(float) –Estimated time it takes to complete given length and desired speed (s).
ReferenceAutoPilot
Reference for the auto pilot when a mission is active.
Attributes:
-
instruction_type(InstructionType) –Instruction type.
-
active_instruction_id(int) –Id of the active instruction.
-
active_path_segment_id(int) –Id of the active path segment.
-
course_to_target(float) –Course to the next waypoint from north (rad) [-pi, pi].
-
speed_over_ground(float) –Desired speed over ground (m/s).
-
horizontal_distance_to_target(float) –Horizontal distance to the next waypoint (m).
-
circle_of_acceptance(float) –Circle of acceptance to mark waypoint as visited (m).
-
depth_set_point(float) –Desired depth set point (m).
-
heave_velocity(float) –Desired heave velocity (m/s).
-
vertical_distance_to_target(float) –Vertical distance to the next waypoint (m).
-
depth_zero_reference(DepthZeroReference) –Indicates if depth is measured from the surface or seabed.
-
time_to_complete(float) –Estimated time to complete the instruction (s).
SurveyCommand
A SurveyCommand defines a survey (lawn-mower) pattern over a polygon area. The planner generates waypoints from the polygon + parameters and stores them in the waypoints field. The drone executes these pre-computed waypoints directly without re-running the survey algorithm. The polygon and parameters remain editable in the planner — regenerate waypoints when they change. Planners SHOULD validate that the polygon is simple (non-self-intersecting) before generating waypoints, as behavior is undefined for invalid polygons.
Attributes:
-
vertices(MutableSequence[LatLongPosition]) –Polygon vertices defining the survey area boundary (decimal degrees). The polygon is implicitly closed: the last vertex connects back to the first. Clients MUST NOT repeat the first vertex at the end of the list. Vertices should be ordered clockwise when viewed from above. The boundary must form a simple polygon (no self-intersections). At least three distinct vertices are required.
-
survey_line_heading(float) –Survey line heading relative to north in degrees (0-360). NOTE: Unlike PathSegment.course_to_target (which uses radians), this field uses degrees to match compass convention. Convert radians before assigning.
-
lane_spacing(float) –Distance between parallel scan lines (m).
-
turnaround_distance(float) –Overshoot distance past polygon boundary at each turn (m).
-
cruise_speed(float) –Desired speed over ground during survey (m/s).
-
circle_of_acceptance(float) –Radius of acceptance circle for generated waypoints (m).
-
depth_set_point(DepthSetPoint) –Optional depth set point for all generated waypoints.
-
reverse(bool) –If true, reverse the scan line order (swap start and end points).
-
waypoints(MutableSequence[Waypoint]) –Pre-computed waypoints generated by the planner from the polygon and parameters. The drone executes these directly. Individual waypoint parameters (speed, CoA, depth) can be tweaked after generation without modifying the survey shape. Regenerated automatically when polygon or survey parameters change.
-
swath_width(float) –Sensor swath width (m). When set with overlap_percent, overrides lane_spacing.
-
overlap_percent(float) –Desired overlap between adjacent scan lines (0-100%). Used with swath_width.
TiltMainCameraCommand
The TiltMainCameraCommand can set the desired camera tilt angle.
Attributes:
-
tilt_angle(TiltAngle) –Tilt angle of the camera (-30..30).
TiltMultibeamCommand
The TiltMultibeamCommand is used to set the tilt angle of the servo.
Attributes:
-
multibeam_servo(MultibeamServo) –Tilt angle for the multibeam servo.
WaitForCommand
WaitForCommand is used to wait during a mission.
Attributes:
-
wait_for_seconds(float) –Wait for x seconds.
Waypoint
Waypoints used to describe a path for the auto pilot.
Attributes:
-
id(int) –Waypoint id.
-
name(str) –Waypoint name provided from the app.
-
global_position(LatLongPosition) –Position if the waypoint (decimal degrees).
-
circle_of_acceptance(float) –Radius of the acceptance circle around the waypoint (m).
-
speed_to_target(float) –Desired speed over ground to waypoint (m/s).
-
depth_set_point(DepthSetPoint) –Depth set point (optional).
WaypointCommand
A WaypointCommand will request the drone to drive to a point automatically.
Attributes:
-
waypoint(Waypoint) –Waypoint to go to.