Convenience classes for manipulating way points and their associated Universal Transverse Mercator (UTM) coordinates.
WuPoint represents a map way point with associated UTM information.
Parameters: |
|
---|
Returns : | String representation of WuPoint object. |
---|
Returns: | Corresponding geographic_msgs/GeoPoint message. |
---|
Returns: | Corresponding geometry_msgs/Point message. |
---|
Returns: | geometry_msgs/Point with X and Y coordinates, and Z coordinate of zero. |
---|
Returns: | Corresponding geographic_msgs/WayPoint message. |
---|
WuPointSet is a container for the way points in a geographic_msgs/GeographicMap or geographic_msgs/RouteNetwork message. UTM coordinates are available for each way point, but they are evaluated lazily, only when needed.
Parameters: | points – array of geographic_msgs/WayPoint messages |
---|
WuPointSet supports these standard container operations:
Returns : | The number of points in the set. |
---|
Returns : | The point with key uuid. Raises a KeyError if uuid is not in the set. |
---|
Returns : | True if wu_set has a key uuid, else False. |
---|
Equivalent to not uuid in wu_set.
Returns : | An iterator over the points in the set. |
---|
These methods are also provided:
Compute 2D Euclidean distance between points.
Parameters: |
|
---|---|
Returns: | Distance in meters within the UTM XY plane. Altitudes are ignored. |
Compute 3D Euclidean distance between points.
Parameters: |
|
---|---|
Returns: | Distance in meters between two UTM points, including altitudes. |
Get point, if defined.
Parameters: |
|
---|---|
Returns: | Named WuPoint, if successful; otherwise default. |
Get index of point, if defined.
Parameters: |
|
---|---|
Returns: | Index of point, if successful; otherwise default. Beware: the index may be 0, which evaluates False as a predicate, use is not None to test for presence. |