yarp-devices
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
Wiimote_ParamsParser Class Reference

#include <Wiimote_ParamsParser.h>

Inheritance diagram for Wiimote_ParamsParser:
Wiimote

Classes

struct  parser_version_type
 

Public Member Functions

bool parseParams (const yarp::os::Searchable &config) override
 
std::string getDeviceClassName () const override
 
std::string getDeviceName () const override
 
std::string getDocumentationOfDeviceParams () const override
 
std::vector< std::string > getListOfParams () const override
 

Public Attributes

const std::string m_device_classname = {"Wiimote"}
 
const std::string m_device_name = {"Wiimote"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
const std::string m_deviceId_defaultValue = {"1"}
 
const std::string m_calibZeroX_defaultValue = {"-30"}
 
const std::string m_calibZeroY_defaultValue = {"-22"}
 
const std::string m_calibZeroZ_defaultValue = {"72"}
 
const std::string m_calibOneX_defaultValue = {"69"}
 
const std::string m_calibOneY_defaultValue = {"-123"}
 
const std::string m_calibOneZ_defaultValue = {"-25"}
 
int m_deviceId = {1}
 
int m_calibZeroX = {-30}
 
int m_calibZeroY = {-22}
 
int m_calibZeroZ = {72}
 
int m_calibOneX = {69}
 
int m_calibOneY = {-123}
 
int m_calibOneZ = {-25}
 

Detailed Description

This class is the parameters parser for class Wiimote.

These are the used parameters:

Group name Parameter name Type Units Default Value Required Description Notes
- deviceId int - 1 0 Wiimote device number -
- calibZeroX int - -30 0 normalization value for X axis (zero) -
- calibZeroY int - -22 0 normalization value for Y axis (zero) -
- calibZeroZ int - 72 0 normalization value for Z axis (zero) -
- calibOneX int - 69 0 normalization value for X axis (one) -
- calibOneY int - -123 0 normalization value for Y axis (one) -
- calibOneZ int - -25 0 normalization value for Z axis (one) -

The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):

yarpdev --device Wiimote --deviceId 1 --calibZeroX -30 --calibZeroY -22 --calibZeroZ 72 --calibOneX 69 --calibOneY -123 --calibOneZ -25
yarpdev --device Wiimote

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