|
se2ez
|
#include <geometry.h>
Public Types | |
| enum | Type { BOX = 0, CIRCLE = 1, CONVEX = 2, SIMPLE = 3 } |
| Type of geometry. More... | |
Public Member Functions | |
Constructors | |
| Geometry (const GeometryPtr &g) | |
| Constructor. More... | |
| Geometry (Type type, const Eigen::VectorXd &dimensions, const Eigen::Isometry2d &offset, const Eigen::Vector4d &color={0., 0., 0., 1.}) | |
| Constructor. More... | |
| Geometry (Type type, const Eigen::VectorXd &dimensions, const Eigen::Vector3d &offset, const Eigen::Vector4d &color={0., 0., 0., 1.}) | |
| Constructor. More... | |
| Geometry (Type type, const tf::EigenVector< Eigen::Vector2d > &points, const Eigen::Isometry2d &offset, const Eigen::Vector4d &color={0., 0., 0., 1.}) | |
| Constructor. More... | |
| Geometry (Type type, const tf::EigenVector< Eigen::Vector2d > &points, const Eigen::Vector3d &offset, const Eigen::Vector4d &color={0., 0., 0., 1.}) | |
| Constructor. More... | |
| Geometry (const Geometry &)=delete | |
| Geometry (Geometry &&)=delete | |
Debug | |
| std::string | printGeometry () const |
| Returns a string representation of the geometry. More... | |
Static Public Member Functions | |
| static Type | stringToType (const std::string &geometry) |
| Try to convert a string into a geometry type. Not case-sensitive. More... | |
| static const std::string & | typeToString (const Type &type) |
| Converts a geometry type into its string representation. More... | |
Public Attributes | |
| const Type | type |
| Type of geometry. More... | |
| Eigen::VectorXd | dimensions |
| The geometry's dimensions. More... | |
| tf::EigenVector< Eigen::Vector2d > | points |
| Point list for polygons. More... | |
| Eigen::Isometry2d | offset |
| Offset of geometry from base frame. More... | |
| bool | isOffset |
| Is this geometry offset? More... | |
| Eigen::Vector4d | color |
| The color to display this geometry as. More... | |
Static Public Attributes | |
| static const unsigned int | TYPE_MAX = SIMPLE |
| Maximum value a geometry type can have. More... | |
| static const std::string | TYPE_STRINGS [] = {"box", "circle", "convex", "simple"} |
| String representation of geometry type. More... | |
Definition at line 24 of file geometry.h.
Type of geometry.
| Enumerator | |
|---|---|
| BOX | A rectangular prism. |
| CIRCLE | A filled circle. |
| CONVEX | A convex polygon. |
| SIMPLE | A simple polygon (no holes). |
Definition at line 31 of file geometry.h.
| Geometry::Geometry | ( | const GeometryPtr & | g | ) |
Constructor.
| [in] | g | geometry to copy values from; |
Definition at line 30 of file geometry.cpp.
| Geometry::Geometry | ( | Type | type, |
| const Eigen::VectorXd & | dimensions, | ||
| const Eigen::Isometry2d & | offset, | ||
| const Eigen::Vector4d & | color = {0., 0., 0., 1.} |
||
| ) |
Constructor.
| [in] | type | Type of the geometry(box or circle). |
| [in] | dimensions | The dimensions of this geometry. |
| [in] | offset | The offset of this geometry from its root frame. |
| [in] | color | Color to display for this geometry. |
Definition at line 35 of file geometry.cpp.
| Geometry::Geometry | ( | Type | type, |
| const Eigen::VectorXd & | dimensions, | ||
| const Eigen::Vector3d & | offset, | ||
| const Eigen::Vector4d & | color = {0., 0., 0., 1.} |
||
| ) |
Constructor.
| [in] | type | Type of the geometry (box or circle). |
| [in] | dimensions | The dimensions of this geometry. |
| [in] | offset | The offset of this geometry from its root frame. |
| [in] | color | Color to display for this geometry. |
Definition at line 57 of file geometry.cpp.
| Geometry::Geometry | ( | Type | type, |
| const tf::EigenVector< Eigen::Vector2d > & | points, | ||
| const Eigen::Isometry2d & | offset, | ||
| const Eigen::Vector4d & | color = {0., 0., 0., 1.} |
||
| ) |
Constructor.
| [in] | type | Type of the geometry (convex or polygon). |
| [in] | points | Points of the polygon. |
| [in] | offset | The offset of this geometry from its root frame. |
| [in] | color | Color to display for this geometry. |
Definition at line 63 of file geometry.cpp.
| Geometry::Geometry | ( | Type | type, |
| const tf::EigenVector< Eigen::Vector2d > & | points, | ||
| const Eigen::Vector3d & | offset, | ||
| const Eigen::Vector4d & | color = {0., 0., 0., 1.} |
||
| ) |
Constructor.
| [in] | type | Type of the geometry (convex or polygon). |
| [in] | points | Points of the polygon. |
| [in] | offset | The offset of this geometry from its root frame. |
| [in] | color | Color to display for this geometry. |
Definition at line 95 of file geometry.cpp.
|
delete |
|
delete |
| std::string Geometry::printGeometry | ( | ) | const |
Returns a string representation of the geometry.
Definition at line 101 of file geometry.cpp.
|
static |
Try to convert a string into a geometry type. Not case-sensitive.
| [in] | geometry | String of geometry type. See TYPE_STRINGS. |
Definition at line 13 of file geometry.cpp.
|
static |
Converts a geometry type into its string representation.
| [in] | type | The type to convert. |
Definition at line 22 of file geometry.cpp.
| Eigen::Vector4d se2ez::Geometry::color |
The color to display this geometry as.
Definition at line 122 of file geometry.h.
| Eigen::VectorXd se2ez::Geometry::dimensions |
The geometry's dimensions.
Definition at line 118 of file geometry.h.
| bool se2ez::Geometry::isOffset |
Is this geometry offset?
Definition at line 121 of file geometry.h.
| Eigen::Isometry2d se2ez::Geometry::offset |
Offset of geometry from base frame.
Definition at line 120 of file geometry.h.
| tf::EigenVector<Eigen::Vector2d> se2ez::Geometry::points |
Point list for polygons.
Definition at line 119 of file geometry.h.
| const Type se2ez::Geometry::type |
Type of geometry.
Definition at line 117 of file geometry.h.
|
static |
Maximum value a geometry type can have.
Definition at line 40 of file geometry.h.
|
static |
String representation of geometry type.
Definition at line 43 of file geometry.h.