gz/sim/Sensor.hh
void ResetEntity(gazebo::Entity _newEntity)
Reset Entity to a new one.
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58
This library is part of the Gazebo project.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:66
std::optional< std::string > Name(const EntityComponentManager &_ecm) const
Get the sensor's unscoped name.
std::optional< math::Pose3d > Pose(const EntityComponentManager &_ecm) const
Get the pose of the sensor.
Component< gz::math::Pose3d, class PoseTag > Pose
A component type that contains pose, gz::math::Pose3d, information.
Definition: gz/sim/components/Pose.hh:35
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
std::optional< gazebo::Entity > Parent(const EntityComponentManager &_ecm) const
Get the parent entity. This can be a link or a joint.
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.
bool Valid(const EntityComponentManager &_ecm) const
Check whether this sensor correctly refers to an entity that has a components::Sensor.
Component< NoData, class SensorTag > Sensor
A component that identifies an entity as being a sensor.
Definition: gz/sim/components/Sensor.hh:35
Component< std::string, class NameTag, serializers::StringSerializer > Name
This component holds an entity's name. The component has no concept of scoped names nor does it care ...
Definition: gz/sim/components/Name.hh:37
This class provides wrappers around entities and components which are more convenient and straight-fo...
Definition: gz/sim/Sensor.hh:61