gz/sensors/LogicalCameraSensor.hh
Go to the documentation of this file.
Logical Camera Sensor Class.
Definition: gz/sensors/LogicalCameraSensor.hh:62
msgs::LogicalCameraImage Image() const
Get the latest image. An image is an instance of msgs::LogicalCameraImage, which contains a list of d...
double AspectRatio() const
Get the aspect ratio, which is the width divided by height of the near or far planes.
double Near() const
Get the near distance. This is the distance from the frustum's vertex to the closest plane.
gz::math::Angle HorizontalFOV() const
Get the horizontal field of view. The field of view is the angle between the frustum's vertex and the...
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Force the sensor to generate data.
virtual ~LogicalCameraSensor()
destructor
void SetModelPoses(std::map< std::string, math::Pose3d > &&_models)
Set the models currently in the world.
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
double Far() const
Get the far distance. This is the distance from the frustum's vertex to the farthest plane.
Definition: gz/sensors/AirPressureSensor.hh:32