gz/sensors/GpuLidarSensor.hh
Go to the documentation of this file.
gz::math::Angle HFOV() const
Get the horizontal field of view of the laser sensor.
virtual gz::common::ConnectionPtr ConnectNewLidarFrame(std::function< void(const float *_scan, unsigned int _width, unsigned int _heighti, unsigned int _channels, const std::string &)> _subscriber) override
Connect function pointer to internal GpuRays callback.
void SetScene(gz::rendering::ScenePtr _scene) override
Makes possible to change sensor scene.
void RemoveGpuRays(gz::rendering::ScenePtr _scene)
Remove sensor from scene.
double RayCountRatio() const
Return the ratio of horizontal ray count to vertical ray count.
virtual bool Load(sdf::ElementPtr _sdf) override
Load sensor sata from SDF.
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
virtual bool CreateLidar() override
Create Lidar sensor.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Force the sensor to generate data.
bool IsHorizontal() const
Gets if sensor is horizontal.
bool HasConnections() const
Check if there are any subscribers.
gz::rendering::GpuRaysPtr GpuRays() const
Get Gpu Rays object used in the sensor.
Definition: gz/sensors/AirPressureSensor.hh:32