Ignition Sensors

API Reference

6.3.0
DistortionFactory Class Reference

Use this distortion manager for creating and loading distortion models. More...

#include <ignition/sensors/Distortion.hh>

Static Public Member Functions

static DistortionPtr NewDistortionModel (sdf::ElementPtr _sdf, const std::string &_sensorType="")
 Load a distortion model based on the input sdf parameters and sensor type. More...
 
static DistortionPtr NewDistortionModel (const sdf::Camera &_sdf, const std::string &_sensorType="")
 Load a distortion model based on the input sdf parameters and sensor type. More...
 

Detailed Description

Use this distortion manager for creating and loading distortion models.

Member Function Documentation

◆ NewDistortionModel() [1/2]

static DistortionPtr NewDistortionModel ( sdf::ElementPtr  _sdf,
const std::string _sensorType = "" 
)
static

Load a distortion model based on the input sdf parameters and sensor type.

Parameters
[in]_sdfDistortion sdf parameters.
[in]_sensorTypeType of sensor. This is currently used to distinguish between image and non image sensors in order to create the appropriate distortion model.
Returns
Pointer to the distortion model created.

◆ NewDistortionModel() [2/2]

static DistortionPtr NewDistortionModel ( const sdf::Camera &  _sdf,
const std::string _sensorType = "" 
)
static

Load a distortion model based on the input sdf parameters and sensor type.

Parameters
[in]_sdfDistortion sdf parameters.
[in]_sensorTypeType of sensor. This is currently used to distinguish between image and non image sensors in order to create the appropriate distortion model.
Returns
Pointer to the distortion model created.

The documentation for this class was generated from the following file: