gz/sim/Model.hh
Go to the documentation of this file.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:67
This class provides wrappers around entities and components which are more convenient and straight-fo...
Definition: gz/sim/Model.hh:60
gz::sim::Entity JointByName(const EntityComponentManager &_ecm, const std::string &_name)
Get the ID of a joint entity which is an immediate child of this model.
bool WindMode(const EntityComponentManager &_ecm) const
Get whether this model has wind enabled.
uint64_t JointCount(const EntityComponentManager &_ecm) const
Get the number of joints which are immediate children of this model.
uint64_t LinkCount(const EntityComponentManager &_ecm) const
Get the number of links which are immediate children of this model.
gz::sim::Entity Entity() const
Get the entity which this Model is related to.
gz::sim::Entity LinkByName(const EntityComponentManager &_ecm, const std::string &_name)
Get the ID of a link entity which is an immediate child of this model.
Model & operator=(Model &&_model) noexcept
Move assignment operator.
std::vector< gz::sim::Entity > Models(const EntityComponentManager &_ecm) const
Get all models which are immediate children of this model.
gz::sim::Entity CanonicalLink(const EntityComponentManager &_ecm) const
Get the model's canonical link entity.
bool SelfCollide(const EntityComponentManager &_ecm) const
Get whether this model has self-collide enabled.
std::string SourceFilePath(const EntityComponentManager &_ecm) const
Get the source file where this model came from. If empty, the model wasn't loaded directly from a fil...
std::vector< gz::sim::Entity > Links(const EntityComponentManager &_ecm) const
Get all links which are immediate children of this model.
bool Valid(const EntityComponentManager &_ecm) const
Check whether this model correctly refers to an entity that has a components::Model.
void SetWorldPoseCmd(EntityComponentManager &_ecm, const math::Pose3d &_pose)
Set a command to change the model's pose.
bool Static(const EntityComponentManager &_ecm) const
Get whether this model is static.
std::string Name(const EntityComponentManager &_ecm) const
Get the model's unscoped name.
std::vector< gz::sim::Entity > Joints(const EntityComponentManager &_ecm) const
Get all joints which are immediate children of this model.
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
class IGNITION_GAZEBO_HIDDEN ModelPrivate
Definition: gz/sim/Model.hh:38
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58