gz/physics/GetEntities.hh
Go to the documentation of this file.
Placeholder class for the Engine API. Every Engine feature MUST inherit this class.
Definition: gz/physics/Feature.hh:41
Definition: gz/physics/Feature.hh:93
Placeholder class in case a Feature does not define its own Joint API.
Definition: gz/physics/Feature.hh:77
Placeholder class in case a Feature does not define its own Link API.
Definition: gz/physics/Feature.hh:68
Placeholder class in case a Feature does not define its own Model API.
Definition: gz/physics/Feature.hh:59
Placeholder class in case a Feature does not define its own Shape API.
Definition: gz/physics/Feature.hh:86
Placeholder class in case a Feature does not define its own World API.
Definition: gz/physics/Feature.hh:50
This class defines the concept of a Feature. It should be inherited by classes that define some plugi...
Definition: gz/physics/Feature.hh:36
Definition: gz/physics/GetEntities.hh:35
const std::string & GetName() const
Get the name of this engine. The meaning of an engine name is plugin-defined.
std::size_t GetIndex() const
Get the index of this engine. The meaning of an engine index is plugin-defined.
Definition: gz/physics/GetEntities.hh:47
virtual const std::string & GetEngineName(const Identity &_engineID) const =0
virtual std::size_t GetEngineIndex(const Identity &_engineID) const =0
This feature retrieves the physics engine name in use.
Definition: gz/physics/GetEntities.hh:32
Definition: gz/physics/GetEntities.hh:407
virtual const std::string & GetJointName(const Identity &_jointID) const =0
virtual Identity GetModelOfJoint(const Identity &_jointID) const =0
virtual Identity GetJoint(const Identity &_modelID, std::size_t _jointIndex) const =0
virtual std::size_t GetJointCount(const Identity &_modelID) const =0
virtual std::size_t GetJointIndex(const Identity &_jointID) const =0
virtual Identity GetJoint(const Identity &_modelID, const std::string &_jointName) const =0
Definition: gz/physics/GetEntities.hh:386
ModelPtr< PolicyT, FeaturesT > ModelPtrType
Definition: gz/physics/GetEntities.hh:388
const std::string & GetName() const
Get the name of this Joint.
ConstModelPtrType GetModel() const
ConstModelPtr< PolicyT, FeaturesT > ConstModelPtrType
Definition: gz/physics/GetEntities.hh:389
std::size_t GetIndex() const
Get the index of this Joint within its Model.
ModelPtrType GetModel()
Get the model that contains this Link.
Definition: gz/physics/GetEntities.hh:355
JointPtr< PolicyT, FeaturesT > JointPtrType
Definition: gz/physics/GetEntities.hh:357
std::size_t GetJointCount() const
Get the number of Joints within this Model.
ConstJointPtrType GetJoint(const std::string &_name) const
ConstJointPtr< PolicyT, FeaturesT > ConstJointPtrType
Definition: gz/physics/GetEntities.hh:358
ConstJointPtrType GetJoint(std::size_t _index) const
JointPtrType GetJoint(const std::string &_name)
Get a Joint that exists within this Model.
JointPtrType GetJoint(std::size_t _index)
Get a Joint that exists within this Model.
This feature retrieves the joint pointer from the model by specifying model index and joint index/nam...
Definition: gz/physics/GetEntities.hh:352
Definition: gz/physics/GetEntities.hh:327
virtual const std::string & GetLinkName(const Identity &_linkID) const =0
virtual std::size_t GetLinkCount(const Identity &_modelID) const =0
virtual Identity GetLink(const Identity &_modelID, std::size_t _linkIndex) const =0
virtual Identity GetLink(const Identity &_modelID, const std::string &_linkName) const =0
virtual Identity GetModelOfLink(const Identity &_linkID) const =0
virtual std::size_t GetLinkIndex(const Identity &_linkID) const =0
Definition: gz/physics/GetEntities.hh:306
ModelPtr< PolicyT, FeaturesT > ModelPtrType
Definition: gz/physics/GetEntities.hh:308
const std::string & GetName() const
Get the name of this Link.
ConstModelPtrType GetModel() const
ConstModelPtr< PolicyT, FeaturesT > ConstModelPtrType
Definition: gz/physics/GetEntities.hh:309
std::size_t GetIndex() const
Get the index of this Link within its Model.
ModelPtrType GetModel()
Get the model that contains this Link.
Definition: gz/physics/GetEntities.hh:275
ConstLinkPtrType GetLink(std::size_t _index) const
LinkPtr< PolicyT, FeaturesT > LinkPtrType
Definition: gz/physics/GetEntities.hh:277
ConstLinkPtr< PolicyT, FeaturesT > ConstLinkPtrType
Definition: gz/physics/GetEntities.hh:278
ConstLinkPtrType GetLink(const std::string &_name) const
LinkPtrType GetLink(std::size_t _index)
Get a Link that exists within this Model.
std::size_t GetLinkCount() const
Get the number of Links within this Model.
LinkPtrType GetLink(const std::string &_name)
Get a Link that exists within this Model.
This feature retrieves the link pointer from the model by specifying model index and link index/name.
Definition: gz/physics/GetEntities.hh:272
Definition: gz/physics/GetEntities.hh:195
virtual Identity GetModel(const Identity &_worldID, const std::string &_modelName) const =0
virtual std::size_t GetModelCount(const Identity &_worldID) const =0
virtual std::size_t GetModelIndex(const Identity &_modelID) const =0
virtual const std::string & GetModelName(const Identity &_modelID) const =0
virtual Identity GetModel(const Identity &_worldID, std::size_t _modelIndex) const =0
virtual Identity GetWorldOfModel(const Identity &_modelID) const =0
Definition: gz/physics/GetEntities.hh:174
ConstWorldPtr< PolicyT, FeaturesT > ConstWorldPtrType
Definition: gz/physics/GetEntities.hh:177
ConstWorldPtrType GetWorld() const
const std::string & GetName() const
Get the name of this Model.
WorldPtrType GetWorld()
Get the World that contains this Model.
WorldPtr< PolicyT, FeaturesT > WorldPtrType
Definition: gz/physics/GetEntities.hh:176
std::size_t GetIndex() const
Get the index of this Model within its World.
Definition: gz/physics/GetEntities.hh:143
ConstModelPtrType GetModel(const std::string &_name) const
ModelPtr< PolicyT, FeaturesT > ModelPtrType
Definition: gz/physics/GetEntities.hh:145
ConstModelPtrType GetModel(std::size_t _index) const
std::size_t GetModelCount() const
Get the number of Models inside this World.
ConstModelPtr< PolicyT, FeaturesT > ConstModelPtrType
Definition: gz/physics/GetEntities.hh:146
ModelPtrType GetModel(std::size_t _index)
Get a Model that exists within this World.
ModelPtrType GetModel(const std::string &_name)
Get a Model that exists within this World.
This feature retrieves the model pointer from the simulation world by specifying world index and mode...
Definition: gz/physics/GetEntities.hh:140
Definition: gz/physics/GetEntities.hh:256
virtual Identity GetNestedModel(const Identity &_modelID, std::size_t _modelIndex) const =0
virtual Identity GetNestedModel(const Identity &_modelID, const std::string &_modelName) const =0
virtual std::size_t GetNestedModelCount(const Identity &_modelID) const =0
Definition: gz/physics/GetEntities.hh:224
ModelPtrType GetNestedModel(const std::string &_name)
Get a nested Model that exists within this Model.
ModelPtr< PolicyT, FeaturesT > ModelPtrType
Definition: gz/physics/GetEntities.hh:226
std::size_t GetNestedModelCount() const
Get the number of nested Models inside this Model.
ModelPtrType GetNestedModel(std::size_t _index)
Get a nested Model that exists within this Model.
ConstModelPtrType GetNestedModel(std::size_t _index) const
ConstModelPtr< PolicyT, FeaturesT > ConstModelPtrType
Definition: gz/physics/GetEntities.hh:227
ConstModelPtrType GetNestedModel(const std::string &_name) const
This feature retrieves the nested model pointer from the parent model by specifying the name or index...
Definition: gz/physics/GetEntities.hh:221
Definition: gz/physics/GetEntities.hh:487
virtual std::size_t GetShapeCount(const Identity &_linkID) const =0
virtual Identity GetLinkOfShape(const Identity &_shapeID) const =0
virtual Identity GetShape(const Identity &_linkID, const std::string &_shapeName) const =0
virtual Identity GetShape(const Identity &_linkID, std::size_t _shapeIndex) const =0
virtual std::size_t GetShapeIndex(const Identity &_shapeID) const =0
virtual const std::string & GetShapeName(const Identity &_shapeID) const =0
Definition: gz/physics/GetEntities.hh:435
ShapePtrType GetShape(const std::string &_name)
Get a Shape that exists within this Link.
std::size_t GetShapeCount() const
Get the number of Shapes within this Link.
ConstShapePtrType GetShape(const std::string &_name) const
ShapePtr< PolicyT, FeaturesT > ShapePtrType
Definition: gz/physics/GetEntities.hh:437
ConstShapePtrType GetShape(std::size_t _index) const
ShapePtrType GetShape(std::size_t _index)
Get a Shape that exists within this Link.
ConstShapePtr< PolicyT, FeaturesT > ConstShapePtrType
Definition: gz/physics/GetEntities.hh:438
Definition: gz/physics/GetEntities.hh:466
LinkPtr< PolicyT, FeaturesT > LinkPtrType
Definition: gz/physics/GetEntities.hh:468
ConstLinkPtrType GetLink() const
ConstLinkPtr< PolicyT, FeaturesT > ConstLinkPtrType
Definition: gz/physics/GetEntities.hh:469
const std::string & GetName() const
Get the name of this Shape.
std::size_t GetIndex() const
Get the index of this Shape within its Link.
LinkPtrType GetLink()
Get the Link that contains this Shape.
This feature retrieves the shape pointer from the link by specifying link index and shape index/name.
Definition: gz/physics/GetEntities.hh:432
Definition: gz/physics/GetEntities.hh:63
std::size_t GetWorldCount() const
Get the number of worlds inside this engine.
ConstWorldPtrType GetWorld(const std::string &_name) const
ConstWorldPtr< PolicyT, FeaturesT > ConstWorldPtrType
Definition: gz/physics/GetEntities.hh:66
ConstWorldPtrType GetWorld(std::size_t _index) const
WorldPtrType GetWorld(const std::string &_name)
Get a world that is being managed by this engine.
WorldPtr< PolicyT, FeaturesT > WorldPtrType
Definition: gz/physics/GetEntities.hh:65
WorldPtrType GetWorld(std::size_t _index)
Get a world that is being managed by this engine.
Definition: gz/physics/GetEntities.hh:115
virtual Identity GetWorld(const Identity &_engineID, std::size_t _worldIndex) const =0
virtual Identity GetEngineOfWorld(const Identity &_worldID) const =0
virtual const std::string & GetWorldName(const Identity &_worldID) const =0
virtual std::size_t GetWorldCount(const Identity &_engineID) const =0
virtual Identity GetWorld(const Identity &_engineID, const std::string &_worldName) const =0
virtual std::size_t GetWorldIndex(const Identity &_worldID) const =0
Definition: gz/physics/GetEntities.hh:94
EnginePtrType GetEngine()
Get the Engine that is managing this World.
const std::string & GetName() const
Get the name of this World.
ConstEnginePtr< PolicyT, FeaturesT > ConstEnginePtrType
Definition: gz/physics/GetEntities.hh:97
std::size_t GetIndex() const
Get the index of this World within its engine.
EnginePtr< PolicyT, FeaturesT > EnginePtrType
Definition: gz/physics/GetEntities.hh:96
ConstEnginePtrType GetEngine() const
This feature retrieves the world pointer using index or name from the physics engine in use.
Definition: gz/physics/GetEntities.hh:60
Use a FeatureList to aggregate a list of Features.
Definition: gz/physics/FeatureList.hh:62
If your feature is known to require any other features, then you should have your feature class inher...
Definition: gz/physics/FeatureList.hh:118
Definition: gz/physics/GetEntities.hh:516