gz/sensors/CameraSensor.hh
Go to the documentation of this file.
virtual void SetScene(gz::rendering::ScenePtr _scene) override
Set the rendering scene.
bool HasInfoConnections() const
Check if there are any info subscribers.
void PublishInfo(const std::chrono::steady_clock::duration &_now)
Publish camera info message.
const std::string & OpticalFrameId() const
Get the camera optical frame.
virtual unsigned int ImageHeight() const
Get image height.
std::string InfoTopic() const
Topic where camera info is published.
void PopulateInfo(const sdf::Camera *_cameraSdf)
Populate camera info message.
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
bool AdvertiseInfo(const std::string &_topic)
Advertise camera info topic. This version takes a string that allows one to override the camera_info ...
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
rendering::CameraPtr RenderingCamera() const
Get pointer to rendering camera object.
bool HasImageConnections() const
Check if there are any image subscribers.
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.
bool HasConnections() const
Check if there are any subscribers.
void SetBaseline(double _baseline)
Set baseline for stereo cameras. This is used to populate the projection matrix in the camera info me...
a rendering sensor class
Definition: gz/sensors/RenderingSensor.hh:54
Definition: gz/sensors/AirPressureSensor.hh:32