gz/physics/RequestFeatures.hh
Go to the documentation of this file.
Definition: gz/physics/Entity.hh:43
This class can be used to request features from an entity, or identify what features are missing from...
Definition: gz/physics/RequestFeatures.hh:35
typename ToFeatureList::Features Features
Definition: gz/physics/RequestFeatures.hh:36
static EntityPtr< EntityT< PolicyT, ToFeatureList > > From(const EntityPtr< EntityT< PolicyT, FromFeatureList >> &_from)
Cast an entity to another entity pointer, with the requested set of features.
static std::set< std::string > MissingFeatureNames(const EntityPtr< EntityT< PolicyT, FromFeatureList >> &_entity)
Check which features from the requested list are missing from the entity's plugin.