RoadMapPlanner¶
Module¶
The RoadMapPlanner module provides navigation support based on a Road Map.
Most functions require a special permission, see pilot.permission_e.
Functions¶
Common Parameters¶
goal_options_t options- Optional goal options, see pilot.goal_options_t. If not specified will use default values.
Hash64 job- Optional job id, to identify the new goal. If not specified (or set to zero) will generate a new random id. See vnx.Hash64.
General Functions¶
-
RoadMapData *
get_road_map() const¶ Returns the currently used Road Map, if any. See pilot.RoadMapData.
-
MapStation *
find_station(string name) const¶ Returns the corresponding map station by that name, if any. See pilot.MapStation.
Movement Functions¶
-
void
set_goal_station(string name, goal_options_t options, Hash64 job)¶ Sets a new goal using the provided station
nameand returns immediately. Any pending goals are canceled beforehand. The station must exist in the current Road Map. Requires permissionMOVE.
-
void
move_to_station(string name, goal_options_t options, Hash64 job)¶ Same as
set_goal_station(...)but will block until goal is reached or canceled. Requires permissionMOVE.