class
CameraSensorAttributesClass to suppoort creating camera sensors.
Base classes
- class AbstractVisualSensorAttributes
- Class to suppoort creating visual sensors by providing common attributes.
Constructors, destructors, conversion operators
-
CameraSensorAttributes(const std::
string& handle = "") explicit
Public functions
- void populateWithSensorSpec(const sensor::SensorSpec::ptr& spec) override
- Populate this CameraSensorAttributes from an appropriate sensor::
SensorSpec. -
void setHFOV(Magnum::
Deg hfov) - Set the horizontal Field of View (in degrees) for the CameraSensor built by this attributes.
-
auto getHFOV() const -> Magnum::
Deg - Get the horizontal Field of View (in degrees) for the CameraSensor built by this attributes.
- void setOrthoScale(float ortho_scale)
- Set the orthographic scale for the CameraSensor built by this attributes.
- auto getOrthoScale() const -> float
- Get the orthographic scale for the CameraSensor built by this attributes.
Protected functions
- void writeVisualSensorValuesToJsonInternal(io::JsonGenericValue& jsonObj, io::JsonAllocator& allocator) const override
- Write Camera Sensor-specific values to json object.
-
auto getAbstractVisualSensorInfoHeaderInternal() const -> std::
string override - get CameraSensorAttributes-specific info header
-
auto getAbstractVisualSensorInfoInternal() const -> std::
string override - get CameraSensorAttributes specific info for csv string