This class is the parameters parser for class argusCameraDriver. More...
Classes | |
struct | parser_version_type |
Public Member Functions | |
argusCameraDriver_ParamsParser () | |
~argusCameraDriver_ParamsParser () override=default | |
bool | parseParams (const yarp::os::Searchable &config) override |
Parse the DeviceDriver parameters. | |
std::string | getDeviceClassName () const override |
Get the name of the DeviceDriver class. | |
std::string | getDeviceName () const override |
Get the name of the device (i.e. | |
std::string | getDocumentationOfDeviceParams () const override |
Get the documentation of the DeviceDriver's parameters. | |
std::vector< std::string > | getListOfParams () const override |
Return a list of all params used by the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Public Attributes | |
const std::string | m_device_classname = {"argusCameraDriver"} |
const std::string | m_device_name = {"argusCamera"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
const std::string | m_d_defaultValue = {"0"} |
const std::string | m_period_defaultValue = {"0.033"} |
const std::string | m_rotation_defaultValue = {"0.0"} |
const std::string | m_width_defaultValue = {"640"} |
const std::string | m_height_defaultValue = {"480"} |
const std::string | m_rotation_with_crop_defaultValue = {"false"} |
int | m_d = {0} |
double | m_period = {0.033} |
double | m_rotation = {0.0} |
int | m_width = {640} |
int | m_height = {480} |
bool | m_rotation_with_crop = {false} |
This class is the parameters parser for class argusCameraDriver.
These are the used parameters:
Group name | Parameter name | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
- | d | int | - | 0 | 0 | Enumeration of the camera device | - |
- | period | double | seconds | 0.033 | 0 | Refresh period of acquistion of the camera in s | Check the camera documentation for the fps cap |
- | rotation | double | degrees | 0.0 | 0 | Rotation applied from the center of the image | Depending the size requested some rotations are not allowed. The rotation worse the performance of the device. Allowed values: 0.0, 90.0, -90.0, 180.0. |
- | width | int | pixel | 640 | 0 | Width of the images requested to the camera | The cameras has a value cap for the width of the image that can provide, check the documentation. Zero or negative value not accepted |
- | height | int | pixel | 480 | 0 | Height of the images requested to the camera | The cameras has a value cap for the width of the image that can provide, check the documentation. Zero or negative value not accepted |
- | rotation_with_crop | bool | - | false | 0 | The rotation, if the param is true, is obtained swapping x with y | The image will have a resolution swapper respect to what is requested |
The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):
Definition at line 46 of file argusCameraDriver_ParamsParser.h.
argusCameraDriver_ParamsParser::argusCameraDriver_ParamsParser | ( | ) |
Definition at line 23 of file argusCameraDriver_ParamsParser.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Get the name of the DeviceDriver class.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 78 of file argusCameraDriver_ParamsParser.h.
|
inlineoverridevirtual |
Get the name of the device (i.e.
the plugin name).
Implements yarp::dev::IDeviceDriverParams.
Definition at line 79 of file argusCameraDriver_ParamsParser.h.
|
overridevirtual |
Get the documentation of the DeviceDriver's parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 164 of file argusCameraDriver_ParamsParser.cpp.
|
overridevirtual |
Return a list of all params used by the device.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 28 of file argusCameraDriver_ParamsParser.cpp.
|
overridevirtual |
Parse the DeviceDriver parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 41 of file argusCameraDriver_ParamsParser.cpp.
int argusCameraDriver_ParamsParser::m_d = {0} |
Definition at line 70 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_d_defaultValue = {"0"} |
Definition at line 63 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_device_classname = {"argusCameraDriver"} |
Definition at line 53 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_device_name = {"argusCamera"} |
Definition at line 54 of file argusCameraDriver_ParamsParser.h.
int argusCameraDriver_ParamsParser::m_height = {480} |
Definition at line 74 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_height_defaultValue = {"480"} |
Definition at line 67 of file argusCameraDriver_ParamsParser.h.
bool argusCameraDriver_ParamsParser::m_parser_is_strict = false |
Definition at line 55 of file argusCameraDriver_ParamsParser.h.
const parser_version_type argusCameraDriver_ParamsParser::m_parser_version = {} |
Definition at line 61 of file argusCameraDriver_ParamsParser.h.
double argusCameraDriver_ParamsParser::m_period = {0.033} |
Definition at line 71 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_period_defaultValue = {"0.033"} |
Definition at line 64 of file argusCameraDriver_ParamsParser.h.
double argusCameraDriver_ParamsParser::m_rotation = {0.0} |
Definition at line 72 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_rotation_defaultValue = {"0.0"} |
Definition at line 65 of file argusCameraDriver_ParamsParser.h.
bool argusCameraDriver_ParamsParser::m_rotation_with_crop = {false} |
Definition at line 75 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_rotation_with_crop_defaultValue = {"false"} |
Definition at line 68 of file argusCameraDriver_ParamsParser.h.
int argusCameraDriver_ParamsParser::m_width = {640} |
Definition at line 73 of file argusCameraDriver_ParamsParser.h.
const std::string argusCameraDriver_ParamsParser::m_width_defaultValue = {"640"} |
Definition at line 66 of file argusCameraDriver_ParamsParser.h.