Route network path planner.
Edge stores graph edge data for a way point.
Parameters: |
|
---|
Exception raised when there is no path to the goal.
Planner plans a route through a RouteNetwork.
Parameters: | graph – geographic_msgs/RouteNetwork message. |
---|
Compute 2D Euclidean distance between two utm points.
Parameters: |
|
---|---|
Returns: | Distance in meters within the UTM XY plane. Altitudes are ignored. |
Return type: | float64 |
Plan the shortest path between a start and a destination geopoint.
Unlike the ‘planner’ method, the ‘geo_path’ method can receive GeoPoints out of the graph, upon such a case, the nearest segments on the OSM map are detected, and the planning is carried out.
Pram req: | The request message. |
---|---|
Parameters: | req – geographic_msgs/GetGeoPath |
Returns: | The computed path, as well as the ids of the RouteNetwork and the start and end segments, plus the length of the path. The length is set to -1 in case of failure. |
Return type: | (geographic_msgs/GeoPoint[], uuid_msgs/UniqueID, uuid_msgs/UniqueID, uuid_msgs/UniqueID, length) |
Raises: | ValueError if invalid request. |
Determine the nearest segment to the given point.
Parameters: |
|
---|---|
Returns: | A tuple of the nearest segment, which has the minimum distance to given point, the distance to the segment and the perpendicular point. |
Return type: | (geographic_msgs/RouteSegment, float, geodesy.utm.UTMPoint) or (None, None, None), if the distance of given point to start or end of the segment is greater then max_dist |
Returns the orthongal projection of point utm_p onto a line segment (utm_start -> utm_end)
Parameters: |
|
---|---|
Returns: | The orthogonal projection (cut point) if no errors, None otherwise. |
Return type: | geodesy.utm.UTMPoint |
Plan route from start to goal.
Parameters: | req – geographic_msgs/GetRoutePlan request message. |
---|---|
Returns: | geographic_msgs/RoutePath message. |
Raises: | ValueError if invalid request. |
Raises: | NoPathToGoalError if goal not reachable. |