33 #ifndef DART_COLLISION_COLLISIONRESULT_HPP_ 34 #define DART_COLLISION_COLLISIONRESULT_HPP_ 36 #include <unordered_set> 38 #include "dart/dynamics/Contact.hpp" 55 void addContact(
const Contact& contact);
58 std::size_t getNumContacts()
const;
61 Contact& getContact(std::size_t index);
64 const Contact& getContact(std::size_t index)
const;
67 const std::vector<Contact>& getContacts()
const;
70 const std::unordered_set<const dynamics::BodyNode*>& getCollidingBodyNodes()
74 const std::unordered_set<const dynamics::ShapeFrame*>&
75 getCollidingShapeFrames()
const;
84 bool isCollision()
const;
87 operator bool()
const;
108 #endif // DART_COLLISION_COLLISIONRESULT_HPP_
Definition: Aspect.cpp:40
std::unordered_set< const dynamics::BodyNode * > mCollidingBodyNodes
Set of BodyNodes that are colliding.
Definition: CollisionResult.hpp:99
Definition: CollisionResult.hpp:51
Definition: CollisionObject.hpp:43
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:74
Definition: ShapeFrame.hpp:189
std::vector< Contact > mContacts
List of contact information for each contact.
Definition: CollisionResult.hpp:96
std::unordered_set< const dynamics::ShapeFrame * > mCollidingShapeFrames
Set of ShapeFrames that are colliding.
Definition: CollisionResult.hpp:102