pyrobosim.utils.polygon
Polygon representation and maniupulation utilities.
These tools rely heavily on the Shapely package.
Functions
|
Adds an offset (x,y) vector to a Shapely compatible list of coordinate tuples. |
|
Converts box dimensions and origin to a Shapely compatible list of coordinate tuples. |
|
Find the smallest bounding rectangle for a set of points. |
|
Gets a Shapely polygon centroid as a list. |
|
Inflates a Shapely polygon with options preconfigured for this world modeling framework. |
|
Returns a Shapely polygon and vertical (Z) height given footprint metadata. |
|
Returns the 2D footprint and the max height from a mesh NOTE: Right now this supports only DAE files, which is a commonly used format for Gazebo models. |
|
Samples a valid (x, y) tuple that is inside a Shapely polygon. |
|
Transforms a Shapely polygon by a Pose object. |