gz/sim/World.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/World.hh:61
uint64_t ActorCount(const EntityComponentManager &_ecm) const
Get the number of actors which are immediate children of this world.
std::optional< math::Vector3d > MagneticField(const EntityComponentManager &_ecm) const
Get the magnetic field in Tesla.
std::vector< gz::sim::Entity > Lights(const EntityComponentManager &_ecm) const
Get all lights which are immediate children of this world.
std::optional< math::SphericalCoordinates > SphericalCoordinates(const EntityComponentManager &_ecm) const
Get spherical coordinates for the world origin.
uint64_t ModelCount(const EntityComponentManager &_ecm) const
Get the number of models which are immediate children of this world.
gz::sim::Entity Entity() const
Get the entity which this World is related to.
World & operator=(World &&_world) noexcept
Move assignment operator.
std::optional< math::Vector3d > Gravity(const EntityComponentManager &_ecm) const
Get the gravity in m/s^2.
std::vector< gz::sim::Entity > Models(const EntityComponentManager &_ecm) const
Get all models which are immediate children of this world.
void SetSphericalCoordinates(EntityComponentManager &_ecm, const math::SphericalCoordinates &_sphericalCoordinates)
Set spherical coordinates for the world origin.
std::optional< std::string > Name(const EntityComponentManager &_ecm) const
Get the world's unscoped name.
gz::sim::Entity ActorByName(const EntityComponentManager &_ecm, const std::string &_name) const
Get the ID of a actor entity which is an immediate child of this world.
bool Valid(const EntityComponentManager &_ecm) const
Check whether this world correctly refers to an entity that has a components::World.
gz::sim::Entity LightByName(const EntityComponentManager &_ecm, const std::string &_name) const
Get the ID of a light entity which is an immediate child of this world.
gz::sim::Entity ModelByName(const EntityComponentManager &_ecm, const std::string &_name) const
Get the ID of a model entity which is an immediate child of this world.
uint64_t LightCount(const EntityComponentManager &_ecm) const
Get the number of lights which are immediate children of this world.
std::optional< sdf::Atmosphere > Atmosphere(const EntityComponentManager &_ecm) const
Get atmosphere information.
std::vector< gz::sim::Entity > Actors(const EntityComponentManager &_ecm) const
Get all actors which are immediate children of this world.
Component< math::SphericalCoordinates, class SphericalCoordinatesTag, serializers::SphericalCoordinatesSerializer > SphericalCoordinates
This component holds the spherical coordinates of the world origin.
Definition: gz/sim/components/SphericalCoordinates.hh:45
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
class IGNITION_GAZEBO_HIDDEN WorldPrivate
Definition: gz/sim/World.hh:41
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58