Struct CollisionResult

Inheritance Relationships

Base Type

Struct Documentation

struct CollisionResult : public hpp::fcl::QueryResult

collision result

Public Functions

inline CollisionResult()
inline void updateDistanceLowerBound(const FCL_REAL &distance_lower_bound_)

Update the lower bound only if the distance is inferior.

inline void addContact(const Contact &c)

add one contact into result structure

inline bool operator==(const CollisionResult &other) const

whether two CollisionResult are the same or not

inline bool isCollision() const

return binary collision result

inline size_t numContacts() const

number of contacts found

inline const Contact &getContact(size_t i) const

get the i-th contact calculated

inline void setContact(size_t i, const Contact &c)

set the i-th contact calculated

inline void getContacts(std::vector<Contact> &contacts_) const

get all the contacts

inline const std::vector<Contact> &getContacts() const
inline void clear()

clear the results obtained

void swapObjects()

reposition Contact objects when fcl inverts them during their construction.

Public Members

FCL_REAL distance_lower_bound

Lower bound on distance between objects if they are disjoint. See Collision

Note

computed only on request (or if it does not add any computational overhead).

Vec3f nearest_points[2]

nearest points available only when distance_lower_bound is inferior to CollisionRequest::break_distance.