MB-System Unix Manual Page

mbm_route2mission

Section: MB-System 5.0 (l)
Updated: 27 October 2008
Index
 

NAME

mbm_route2mission - Macro to convert an mbgrdviz route file into an MBARI AUV mission script.

 

VERSION

Version 5.0

 

SYNOPSIS

mbm_route2mission -Iroutefile [-Aaltitudemin/altitudeabort[/altitudedepthcom] -Bbehavior -Cmissiontime -Ddepthmax/depthabort/depthdescent -Fforwarddistance -Ggpsmode -Jdepthprofilefile -Lapproachdepth -M[sonarlist] -N -Omissionfile -P[startlon/startlat | startdistance] -Rtransmitpower/receivegain[/rangeminfraction] -Sspeed -Tstarttime -Wwaypointspacing -V -H]

 

DESCRIPTION

mbm_route2mission - Macro to convert an mbgrdviz route file into an MBARI AUV mission script.

MBARI Autonomous Underwater Vehicles, or AUVs, are controlled using a layered behavior system that is specified using a mission script. This macro generates an MBARI AUV mission script from an MB-System route file such as those generated interactively using MBgrdviz. The output MBARI AUV mission script is named using a ".cfg" suffix. A Winfrog waypoint file (ending in ".pts") is also output which mirrors the waypoints in the input route file.

The output AUV mission script includes safety behaviors that operate throughout a mission (e.g. missionTimer sets a mission timeout duration, and depthEnvelope sets depth and altitude limits). The script also includes the sequential behaviors required to take a vehicle from the start of a mission at the surface, obtaining the initial position from GPS, descent to depth, flying to the starting waypoint, running the desired survey lines with a desired depth or altitude profile, ascent to the surface, and reacquiring positioning from GPS. For seafloor mapping surveys, sonar settings and data logging are also controlled through the mission script.

The input route file specifies a survey mission as a set of sequential waypoints, and also includes the depth profile between those waypoints. Waypoints may be ordinary, the start of a survey line, or the end of a survey line (the start and end line waypoints are generated using the survey route planning feature of MBgrdviz). The spacing of the depth profile points between the waypoints derives from the bathymetric grid used to generate the route.

The output mission specifies a larger number of waypoints than the input route file. The mission waypoints are generated every waypointspacing meters (specified with the -W option), and the AUV is commanded to fly at particular depths (or depth profiles) between each waypoint. By default, the AUV will be flown using a control behavior called WaypointDepth in which the commanded vehicle depth follows a linearly interpolated profile between the depth at the starting waypoint and the depth at the ending waypoint. The simpler alternative waypoint behavior specifies a single vehicle depth while flying to the next mission; as it begins each segment the vehicle will ascend or descend sharply to the desired depth and then fly level until the next waypoint is reached.

The -A and -D options allows the user to set the basic vehicle depth and altitude controls. The vehicle's vertical position will be simulatneously controlled in terms of both altitude above the bottom and depth below the sea surface. The commanded depth between each waypoint is calculated by mbm_route2mission (using the bathymetry profiles in the input route file) to produce a vehicle altitude that is aaltitudedepthcom meters above the shallowest depth looking forwarddistance meters ahead. The forward looking feature allows the vehicle to be commanded to ascend prior to reaching large scarps. As the mission commences, the AUV attempts to fly at the commanded depth unless that would result in an altitude less than altitudemin meters. In that circumstance, the vehicle flies in an altitude-following mode. Thus, for consistent bottom-following, a common approach is to set altitudemin to the desired altitude and to set altitudedepthcom to a value slightly smaller than altitudemin. This strategy allows the look-ahead feature to bring the vehicle safely over steep rises while otherwise maintaining a constant altitude.

The -G option allows the user to specify that the vehicle ascend to the surface and reset positioning with GPS at the beginning and/or end of survey lines.

The -N option allows the user to specify that the vehicle first move to the initial survey waypoint, and then follow a spiral descent to the desired survey depth. The -Lapproachdepth option sets the vehicle depth as it approaches the first waypoint before the spiral descent. These options are used for deepwater missions in which the vehicle navigation is updated by acoustic modem during the free inertial descents.

The mission script must also allow sufficient time for the vehicle to transit from its starting point to the first waypoint in the survey mission. The -T and -P options allow the user specify the AUV starting position, the distance to the first waypoint, or the time required to reach the first waypoint.

The MBARI Mapping AUV is equipped with a 200 kHz multibeam sonar, a 2-16 kHz chirp subbottom profiler, a 110 kHz chirp sidescan, and a 410 kHz chirp sidescan. The -M option is used to enable these mapping sonars in the AUV mission script.

 

AUTHORSHIP

David W. Caress (caress@mbari.org)

  Monterey Bay Aquarium Research Institute
Dale N. Chayes (dale@ldeo.columbia.edu)

  Lamont-Doherty Earth Observatory

 

OPTIONS

-A
altitudemin/altitudeabort[/altitudedepthcom]
Sets the AUV altitude control paramters. The missions generated by this script directly command the AUV's depth. However, the commanded depth will be overridden by the minimum altitude, or altitudemin value; the vehicle will adjust it's depth so that it does not fly any closer to the bottom than altitudemin meters. If the vehicle reaches an altitude equal to or less than altitudeabort meters, then the mission will be aborted. The user may specify a desired altitude (altitudedepthcom) that is different than altitudemin, so that the commanded depths do not directly correspond to the minimum altitude.
-B
behavior
Sets the AUV behavior used to fly the mission. If behavior = 0, then the AUV uses the WayPoint behavior in which a single vehicle depth is specified for the approach to each waypoint. If behavior = 1, then the AUV uses the WayPointDepth behavior in which each mission segment has both a starting and an ending depth specified, and the vehicle is commanded to fly a depth profile that is a linear ramp between the two depths. Default: behavior = 1;
-C
missiontime
Sets the maximum time allowed for the AUV mission. If the missiontime is exceeded, the AUV will transition to it's internal abort plan. Default: mission abort time calculated from mission parameters.
-D
depthmax/depthabort/depthdescent
Sets the maximum vehicle depth depthmax in meters that the AUV will be commanded to fly. The depthabort value sets the AUV depth at which a mission will be aborted. The depthdescent value is the depth to which the vehicle descends before beginning to follow waypoints.
-F
forwarddistance
The program looks forwarddistance m ahead for the shallowest bottom depth along the survey route, and then commands the vehicle to fly at least altitudemin above that depth.
-G
gpsmode
Sets the frequency with which the AUV will surface between survey lines to get GPS fixes. By default, the vehicle only get GPS fixes at the surface at the beginning and end of the mission, and not surface during the mission. If gpsmode = 1, then the vehicle will ascend for gps fixes at the start of each survey line. If gpsmode = 2, then the vehicle will ascend for gps fixes at the end of each survey line. If gpsmode = 3, then the vehicle will ascend for gps fixes at the start and end of each survey line
-H
This "help" flag cause the program to print out a description of its operation and then exit immediately.
-I
routefile
Sets the filename of the input mbgrdviz route file. A route file specifies a desired survey route as a set of lines between waypoints. In addition to the waypoints, the file also includes the depth profiles along those lines.
-J
depthprofilefile
Sets the filename of an input desired depth profile file. This is the depth profile that the vehicle should follow when flying the mission (as opposed to following the bottom at a particular altitude).
-L
approachdepth
Sets the vehicle depth during the approach to the first waypoint when a spiral descent to depth at the first waypoint is specified using the -N option.
-M
[sonarlist] This option enables control of the Mapping AUV's mapping sonars. By default, the AUV mission is generated without turning on the mapping sonars. If -M is given alone, the multibeam, subbottom profiler, and both low and high frequency sidescan sonars will be enabled. The sonarlist parameter can optionally specify which sonars are enabled in addition to the multibeam (the multibeam serves as the ping timing master for all sonars, and thus must be enabled if any mapping sonars are enabled). The sonarlist value is made up of one or more of the following characters:
                S       subbottom profiler

                L       low frequency sidescan

                H       high frequency sidescan

Thus, -MSL will cause the multibeam, the subbottom profiler, and the low frequency sidescan to be enabled while leaving the high frequency sidescan off.
-N
approachdepth
Sets the mission to include a shallow transit to the first waypoint followed by a spiral descent to depth to start the survey.
-O
missionfile
Sets the filename of the output MBARI AUV mission script.
-P
lon/lat
This sets the expected starting position (lon longitude and lat latitude) of the Mapping AUV so that the expected time to run to the first waypoint can be estimated. If neither the -P or -T options are specified, a distance of 500 meters to the first waypoint is assumed.
-R
transmitpower/receivegain[/rangeminfraction]
This sets the key multibeam sonar parameters. Here transmitpower is the transmit power of the multibeam in dB, with a range of 0-220 dB. The multibeam receive gain has a range of 0-83 dB. The rangeminfraction variable sets the minimum range at which the multibeam will make bottom picks; this prevents the multibeam from picking on nearfield arrivals usually reflecting interference from other sonars. If the sonar is operating with an altitude of 50 m and rangeminfraction = 0.2, then the range gating minimum range will be 0.2 * 50 m = 10 m. Default: transmitpower = 220, receivegain = 220, rangeminfraction = 0.2.
-S
speed
This sets the commanded AUV speed in meters/second. Default: speed = 1.5 m/s.
-T
starttime
This sets the expected time required for the AUV to reach the first waypoint in the survey mission. If neither the -P or -T options are specified, a distance of 500 meters to the first waypoint is assumed.
-W
waypointspacing
Sets the spacing in meters of the waypoints output to the mission script.
-V
The -V option causes mbm_route2mission to print out status messages.

 

EXAMPLES

Soon...

 

SEE ALSO

mbsystem(l), mbgrdviz(l)

 

BUGS

Perhaps.


 

Index

NAME
VERSION
SYNOPSIS
DESCRIPTION
AUTHORSHIP
OPTIONS
EXAMPLES
SEE ALSO
BUGS


Last Updated: 27 October 2008


Return to list of MB-System manual pages...

Back to MB-System Home Page...