Container class that converts se2ez::Geometry into a Box2D geometry.
More...
Container class that converts se2ez::Geometry into a Box2D geometry.
Definition at line 66 of file collision.cpp.
◆ Box2DShape()
Constructor.
- Parameters
-
[in] | name | Name of frame this geometry is associated with. |
[in] | index | Index within frames' geometry vector this geometry is associated with. |
[in] | geometry | Geometry to convert. |
[in] | world | Box2D world. |
[in] | movable | Does this frame move? |
Definition at line 76 of file collision.cpp.
◆ ~Box2DShape()
se2ez::Box2DShape::~Box2DShape |
( |
| ) |
|
|
inline |
◆ createPolygon()
b2PolygonShape* se2ez::Box2DShape::createPolygon |
( |
const GeometryPtr & |
geometry | ) |
|
|
inlineprivate |
◆ createShapes()
void se2ez::Box2DShape::createShapes |
( |
| ) |
|
|
inlineprivate |
Convert the geometry of this body into a Box2D shape.
Definition at line 175 of file collision.cpp.
◆ getFixtures()
const std::vector<b2Fixture *>& se2ez::Box2DShape::getFixtures |
( |
| ) |
const |
|
inline |
Get the list of fixtures attached to this body.
- Returns
- The list of fixtures.
Definition at line 143 of file collision.cpp.
◆ getPose()
Eigen::Isometry2d se2ez::Box2DShape::getPose |
( |
| ) |
const |
|
inline |
Get the current pose of this body in the Box2D world.
- Returns
- The pose of the body.
Definition at line 125 of file collision.cpp.
◆ getTransform()
const b2Transform& se2ez::Box2DShape::getTransform |
( |
| ) |
const |
|
inline |
Get the current pose of this body in the Box2D world.
- Returns
- The pose of the body.
Definition at line 135 of file collision.cpp.
◆ setPose()
void se2ez::Box2DShape::setPose |
( |
const Eigen::Isometry2d & |
pose | ) |
|
|
inline |
Sets the pose of this body.
- Parameters
-
[in] | pose | Pose of this body. |
Definition at line 115 of file collision.cpp.
◆ body_
b2Body* se2ez::Box2DShape::body_ |
|
private |
◆ bodyDef_
b2BodyDef se2ez::Box2DShape::bodyDef_ |
|
private |
Box2D body definition to create body.
Definition at line 249 of file collision.cpp.
◆ fixture_
◆ geometries_
◆ geometry_
◆ index
const unsigned int se2ez::Box2DShape::index |
◆ movable
const bool se2ez::Box2DShape::movable |
Is this a moving frame piece of geometry?
Definition at line 148 of file collision.cpp.
◆ name
Name of the frame this geometry is attached to.
Definition at line 149 of file collision.cpp.
◆ points_
◆ shapeDef_
Box2d shape definitions to create fixtures.
Definition at line 250 of file collision.cpp.
◆ shapes_
The documentation for this class was generated from the following file: