|
se2ez
|
An abstract class that all collision managers must implement. More...
#include <collision.h>
Classes | |
| struct | SignedDistance |
| A class that contains all information about the signed distance of a frame to another. More... | |
Public Types | |
| using | SignedDistanceMap = tf::EigenMap< std::string, SignedDistance > |
| A map of frame names to their signed distances. More... | |
Public Member Functions | |
| CollisionManager () | |
| Constructor. More... | |
| virtual bool | collide (StatePtr &state)=0 |
| Check if a state is in collision. More... | |
| virtual bool | collide (StatePtr &state, std::set< std::string > &frames)=0 |
| Check if a state is in collision. More... | |
| virtual SignedDistance | distance (StatePtr &state)=0 |
| Computes the signed distance of a scene to collision. More... | |
| virtual SignedDistance | distance (StatePtr &state, SignedDistanceMap &frames)=0 |
| Computes the signed distance of a scene to collision. More... | |
| virtual void | compile ()=0 |
| Compiles internal data structures for collision checking. Needs to be called if the robot is updated. More... | |
| virtual void | setACM (const ACMPtr &acm) |
| Sets a new ACM to use. More... | |
| virtual ACMPtr | getACM () |
| Gets the current ACM. More... | |
Protected Attributes | |
| ACMPtr | acm_ {nullptr} |
| ACM for collision manager. More... | |
An abstract class that all collision managers must implement.
Definition at line 70 of file collision.h.
A map of frame names to their signed distances.
Definition at line 92 of file collision.h.
| CollisionManager::CollisionManager | ( | ) |
Constructor.
Definition at line 51 of file collision.cpp.
|
pure virtual |
Check if a state is in collision.
| [in] | state | State to check for collisions using an allowed collision map. |
Implemented in se2ez::Box2DCollisionManager.
|
pure virtual |
Check if a state is in collision.
| [in] | state | State to check for collisions using an allowed collision map. |
| [out] | frames | What frames are in collision. |
Implemented in se2ez::Box2DCollisionManager.
|
pure virtual |
Compiles internal data structures for collision checking. Needs to be called if the robot is updated.
Implemented in se2ez::Box2DCollisionManager.
|
pure virtual |
Computes the signed distance of a scene to collision.
| [in] | state | State to computed signed distance for. |
Implemented in se2ez::Box2DCollisionManager.
|
pure virtual |
Computes the signed distance of a scene to collision.
| [in] | state | State to computed signed distance for. |
| [out] | frames | Distance of frame to collision. |
Implemented in se2ez::Box2DCollisionManager.
|
virtual |
|
virtual |
Sets a new ACM to use.
| [in] | acm | New ACM to use. |
Definition at line 55 of file collision.cpp.
|
protected |
ACM for collision manager.
Definition at line 140 of file collision.h.