gz/sim/Sensor.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/Sensor.hh:62
std::optional< math::Pose3d > Pose(const EntityComponentManager &_ecm) const
Get the pose of the sensor.
std::optional< std::string > Name(const EntityComponentManager &_ecm) const
Get the sensor's unscoped name.
void ResetEntity(gazebo::Entity _newEntity)
Reset Entity to a new one.
std::optional< gazebo::Entity > Parent(const EntityComponentManager &_ecm) const
Get the parent entity. This can be a link or a joint.
bool Valid(const EntityComponentManager &_ecm) const
Check whether this sensor correctly refers to an entity that has a components::Sensor.
gazebo::Entity Entity() const
Get the entity which this Sensor is related to.
std::optional< std::string > Topic(const EntityComponentManager &_ecm) const
Get the topic of the sensor.
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58