gz/sensors/DepthCameraSensor.hh
Go to the documentation of this file.
Depth camera sensor class.
Definition: gz/sensors/DepthCameraSensor.hh:73
virtual void SetScene(gz::rendering::ScenePtr _scene) override
Set the rendering scene.
bool HasDepthConnections() const
Check if there are any depth subscribers.
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
virtual unsigned int ImageHeight() const override
Get image height.
void OnNewDepthFrame(const float *_scan, unsigned int _width, unsigned int _height, unsigned int, const std::string &)
Depth data callback used to get the data from the sensor.
gz::common::ConnectionPtr ConnectImageCallback(std::function< void(const gz::msgs::Image &)> _callback)
Set a callback to be called when image frame data is generated.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Force the sensor to generate data.
void OnNewRgbPointCloud(const float *_data, unsigned int _width, unsigned int _height, unsigned int, const std::string &)
Point cloud data callback used to get the data from the sensor.
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
bool HasPointConnections() const
Check if there are any point subscribers.
virtual unsigned int ImageWidth() const override
Get image width.
virtual rendering::DepthCameraPtr DepthCamera()
Force the sensor to generate data.
Definition: gz/sensors/AirPressureSensor.hh:32