gz/sensors/SegmentationCameraSensor.hh
Go to the documentation of this file.
Segmentation camera sensor class.
Definition: gz/sensors/SegmentationCameraSensor.hh:57
virtual void SetScene(ignition::rendering::ScenePtr _scene) override
Set the rendering scene.
void OnNewSegmentationFrame(const uint8_t *_data, unsigned int _width, unsigned int _height, unsigned int _channels, const std::string &_format)
Segmentation data callback used to get the data from the sensor.
ignition::common::ConnectionPtr ConnectImageCallback(std::function< void(const ignition::msgs::Image &)> _callback)
Set a callback to be called when image frame data is generated.
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.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Force the sensor to generate data.
SegmentationCameraSensor()
constructor
rendering::SegmentationCameraPtr SegmentationCamera() const
Get the rendering segmentation camera.
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
virtual ~SegmentationCameraSensor()
destructor
virtual unsigned int ImageWidth() const override
Get image width.
Definition: gz/sensors/AirPressureSensor.hh:32