DART  6.7.3
dart::collision::CollisionGroup::CollisionSource< Source, Child > Struct Template Reference

This struct is used to store sources of ShapeFrames that the CollisionGroup is subscribed to, alongside the last version number of that source, as known by this CollisionGroup. More...

Classes

struct  ChildInfo
 This is information pertaining to a child of the source. More...
 

Public Member Functions

 CollisionSource (const Source &source, std::size_t lastKnownVersion)
 Constructor. More...
 

Public Attributes

Source mSource
 The source of ShapeFrames. More...
 
std::size_t mLastKnownVersion
 The last known version of that source. More...
 
std::unordered_map< const dynamics::ShapeFrame *, ObjectInfo * > mObjects
 The set of objects that pertain to this source. More...
 
std::unordered_map< const Child *, ChildInfomChildren
 The last known versions of the children related to this source. More...
 

Detailed Description

template<typename Source, typename Child = void>
struct dart::collision::CollisionGroup::CollisionSource< Source, Child >

This struct is used to store sources of ShapeFrames that the CollisionGroup is subscribed to, alongside the last version number of that source, as known by this CollisionGroup.

Constructor & Destructor Documentation

◆ CollisionSource()

template<typename Source , typename Child = void>
dart::collision::CollisionGroup::CollisionSource< Source, Child >::CollisionSource ( const Source &  source,
std::size_t  lastKnownVersion 
)
inline

Constructor.

Member Data Documentation

◆ mChildren

template<typename Source , typename Child = void>
std::unordered_map<const Child*, ChildInfo> dart::collision::CollisionGroup::CollisionSource< Source, Child >::mChildren

The last known versions of the children related to this source.

This is used by SkeletonSources to keep track of their child BodyNode versions.

◆ mLastKnownVersion

template<typename Source , typename Child = void>
std::size_t dart::collision::CollisionGroup::CollisionSource< Source, Child >::mLastKnownVersion

The last known version of that source.

◆ mObjects

template<typename Source , typename Child = void>
std::unordered_map<const dynamics::ShapeFrame*, ObjectInfo*> dart::collision::CollisionGroup::CollisionSource< Source, Child >::mObjects

The set of objects that pertain to this source.

◆ mSource

template<typename Source , typename Child = void>
Source dart::collision::CollisionGroup::CollisionSource< Source, Child >::mSource

The source of ShapeFrames.