DART  6.7.3
dart::collision::CollisionGroup::ObjectInfo Struct Referencefinal

Information on a collision object belonging to this group. More...

#include <CollisionGroup.hpp>

Public Attributes

const dynamics::ShapeFramemFrame
 The ShapeFrame for this object. More...
 
CollisionObjectPtr mObject
 The CollisionObject that was generated by the CollisionDetector. More...
 
std::size_t mLastKnownShapeID
 The ID of that last known shape that was held by the shape frame. More...
 
std::size_t mLastKnownVersion
 The last known version of the last known shape that was held by the shape frame. More...
 
std::unordered_set< const void * > mSources
 The set of all sources that indicate that this object should be in this group. More...
 

Detailed Description

Information on a collision object belonging to this group.

This info enables us to keep track of when a ShapeFrame has changed and therefore when the object needs to be updated. It also remembers what sources instructed this object to belong to this group.

Member Data Documentation

◆ mFrame

const dynamics::ShapeFrame* dart::collision::CollisionGroup::ObjectInfo::mFrame

The ShapeFrame for this object.

◆ mLastKnownShapeID

std::size_t dart::collision::CollisionGroup::ObjectInfo::mLastKnownShapeID

The ID of that last known shape that was held by the shape frame.

◆ mLastKnownVersion

std::size_t dart::collision::CollisionGroup::ObjectInfo::mLastKnownVersion

The last known version of the last known shape that was held by the shape frame.

◆ mObject

CollisionObjectPtr dart::collision::CollisionGroup::ObjectInfo::mObject

The CollisionObject that was generated by the CollisionDetector.

◆ mSources

std::unordered_set<const void*> dart::collision::CollisionGroup::ObjectInfo::mSources

The set of all sources that indicate that this object should be in this group.

In the current implementation, this may consist of: user (nullptr), Skeleton subscription, and/or BodyNode subscription.

When all sources are cleared out (via unsubscribing), this object will be removed from this group.