iCub-main
Public Member Functions | Public Attributes | List of all members
ServiceParser Class Reference

#include <serviceParser.h>

Public Member Functions

 ServiceParser ()
 
 ~ServiceParser ()
 
bool parseService (yarp::os::Searchable &config, servConfigMais_t &maisconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigStrain_t &strainconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigFTsensor_t &ftconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigImu_t &imuconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigSkin_t &skinconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigPSC_t &pscconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigPOS_t &pscconfig)
 
bool parseService (yarp::os::Searchable &config, servConfigMC_t &mcconfig)
 
bool parseService2 (yarp::os::Searchable &config, servConfigMC_t &mcconfig)
 
bool convert (std::string const &fromstring, eOmc_actuator_t &toactuatortype, bool &formaterror)
 
bool convert (std::string const &fromstring, eOmc_position_t &toposition, bool &formaterror)
 
bool convert (std::string const &fromstring, eOmc_encoder_t &toencodertype, bool &formaterror)
 
bool parse_connector (const std::string &fromstring, eObrd_connector_t &toconnector, bool &formaterror)
 
bool parse_mais (std::string const &fromstring, eObrd_portmais_t &pmais, bool &formaterror)
 
bool parse_port_conn (std::string const &fromstring, eObrd_type_t const board, uint8_t &toport, bool &formaterror)
 
bool parse_port_mais (std::string const &fromstring, uint8_t &toport, bool &formaterror)
 
bool parse_actuator_port (std::string const &fromstring, eObrd_ethtype_t const ethboard, eOmc_actuator_t const type, eOmc_actuator_descriptor_t &todes, bool &formaterror)
 
bool parse_encoder_port (std::string const &fromstring, eObrd_ethtype_t const ethboard, eOmc_encoder_t type, uint8_t &toport, bool &formaterror)
 
bool parse_psc (std::string const &fromstring, eObrd_portpsc_t &ppsc, bool &formaterror)
 
bool parse_port_psc (std::string const &fromstring, uint8_t &toport, bool &formaterror)
 
bool parse_POS_port (std::string const &fromstring, eObrd_portpos_t &ppos, bool &formaterror)
 
bool parse_port_pos (std::string const &fromstring, uint8_t &toport, bool &formaterror)
 
bool parse_POS_connector (std::string const &fromstring, const eObrd_type_t brd, eObrd_connector_t &conn, bool &formaterror)
 
bool parse_POS_CALIB_rotation (std::string const &fromstring, eoas_pos_ROT_t &rot, bool &formaterror)
 
bool parse_POS_CALIB_type (std::string const &fromstring, eoas_pos_TYPE_t &type, bool &formaterror)
 
bool convert (std::string const &fromstring, eOmn_serv_type_t &toservicetype, bool &formaterror)
 
bool convert (std::string const &fromstring, eOmn_serv_diagn_mode_t &todiagnmode, bool &formaterror)
 
bool convert (std::string const &fromstring, eObrd_type_t &tobrdtype, bool &formaterror)
 
bool convert (std::string const &fromstring, eObrd_cantype_t &tobrdcantype, bool &formaterror)
 
bool convert (std::string const &fromstring, eObrd_ethtype_t &tobrdethtype, bool &formaterror)
 
bool convert (std::string const &fromstring, bool &tobool, bool &formaterror)
 
bool convert (const int number, uint8_t &tou8, bool &formaterror)
 
bool convert (const int number, uint16_t &tou16, bool &formaterror)
 
bool convert (std::string const &fromstring, eOas_sensor_t &tosensortype, bool &formaterror)
 
bool convert (std::string const &fromstring, std::string &str, bool &formaterror)
 
bool convert (std::string const &fromstring, const uint8_t strsize, char *str, bool &formaterror)
 
bool convert (std::string const &fromstring, eObrd_location_t &location, bool &formaterror)
 
bool convert (std::string const &fromstring, eOlocation_t &location, bool &formaterror)
 
bool convert (eObrd_location_t const &loc, char *str, int len)
 
bool convert (eOlocation_t const &loc, char *str, int len)
 
bool convert (eObrd_canlocation_t const &canloc, char *str, int len)
 
bool convert (eObrd_protocolversion_t const &prot, char *str, int len)
 
bool convert (eObrd_firmwareversion_t const &firm, char *str, int len)
 
bool convert (std::string const &fromstring, eOmc_pidoutputtype_t &pidoutputtype, bool &formaterror)
 
bool convert (std::string const &fromstring, eOmc_jsetconstraint_t &jsetconstraint, bool &formaterror)
 
servMC_encoder_tgetEncoderAtMotor (int index)
 
servMC_encoder_tgetEncoderAtJoint (int index)
 
bool parse_debugEmbBoardsNotConnected (yarp::os::Searchable &config, bool &embBoardsConnected)
 

Public Attributes

servAScollector_t as_service
 
servASstrainSettings_t as_strain_settings
 
servSKcollector_t sk_service
 
eOmn_serv_config_data_sk_skin_t tmp
 
servMCcollector_t mc_service
 

Detailed Description

Definition at line 281 of file serviceParser.h.

Constructor & Destructor Documentation

◆ ServiceParser()

ServiceParser::ServiceParser ( )

Definition at line 51 of file serviceParser.cpp.

◆ ~ServiceParser()

ServiceParser::~ServiceParser ( )
inline

Definition at line 286 of file serviceParser.h.

Member Function Documentation

◆ convert() [1/23]

bool ServiceParser::convert ( const int  number,
uint16_t &  tou16,
bool &  formaterror 
)

Definition at line 329 of file serviceParser.cpp.

◆ convert() [2/23]

bool ServiceParser::convert ( const int  number,
uint8_t &  tou8,
bool &  formaterror 
)

Definition at line 312 of file serviceParser.cpp.

◆ convert() [3/23]

bool ServiceParser::convert ( eObrd_canlocation_t const &  canloc,
char *  str,
int  len 
)

Definition at line 621 of file serviceParser.cpp.

◆ convert() [4/23]

bool ServiceParser::convert ( eObrd_firmwareversion_t const &  firm,
char *  str,
int  len 
)

Definition at line 640 of file serviceParser.cpp.

◆ convert() [5/23]

bool ServiceParser::convert ( eObrd_location_t const &  loc,
char *  str,
int  len 
)

Definition at line 484 of file serviceParser.cpp.

◆ convert() [6/23]

bool ServiceParser::convert ( eObrd_protocolversion_t const &  prot,
char *  str,
int  len 
)

Definition at line 652 of file serviceParser.cpp.

◆ convert() [7/23]

bool ServiceParser::convert ( eOlocation_t const &  loc,
char *  str,
int  len 
)

Definition at line 586 of file serviceParser.cpp.

◆ convert() [8/23]

bool ServiceParser::convert ( std::string const &  fromstring,
bool &  tobool,
bool &  formaterror 
)

Definition at line 272 of file serviceParser.cpp.

◆ convert() [9/23]

bool ServiceParser::convert ( std::string const &  fromstring,
const uint8_t  strsize,
char *  str,
bool &  formaterror 
)

Definition at line 348 of file serviceParser.cpp.

◆ convert() [10/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOas_sensor_t &  tosensortype,
bool &  formaterror 
)

Definition at line 122 of file serviceParser.cpp.

◆ convert() [11/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eObrd_cantype_t &  tobrdcantype,
bool &  formaterror 
)

Definition at line 209 of file serviceParser.cpp.

◆ convert() [12/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eObrd_ethtype_t &  tobrdethtype,
bool &  formaterror 
)

Definition at line 240 of file serviceParser.cpp.

◆ convert() [13/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eObrd_location_t &  location,
bool &  formaterror 
)

Definition at line 394 of file serviceParser.cpp.

◆ convert() [14/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eObrd_type_t &  tobrdtype,
bool &  formaterror 
)

Definition at line 139 of file serviceParser.cpp.

◆ convert() [15/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOlocation_t &  location,
bool &  formaterror 
)

Definition at line 511 of file serviceParser.cpp.

◆ convert() [16/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmc_actuator_t &  toactuatortype,
bool &  formaterror 
)

◆ convert() [17/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmc_encoder_t &  toencodertype,
bool &  formaterror 
)

◆ convert() [18/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmc_jsetconstraint_t &  jsetconstraint,
bool &  formaterror 
)

Definition at line 186 of file serviceParser.cpp.

◆ convert() [19/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmc_pidoutputtype_t &  pidoutputtype,
bool &  formaterror 
)

Definition at line 163 of file serviceParser.cpp.

◆ convert() [20/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmc_position_t &  toposition,
bool &  formaterror 
)

◆ convert() [21/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmn_serv_diagn_mode_t &  todiagnmode,
bool &  formaterror 
)

Definition at line 82 of file serviceParser.cpp.

◆ convert() [22/23]

bool ServiceParser::convert ( std::string const &  fromstring,
eOmn_serv_type_t &  toservicetype,
bool &  formaterror 
)

Definition at line 65 of file serviceParser.cpp.

◆ convert() [23/23]

bool ServiceParser::convert ( std::string const &  fromstring,
std::string &  str,
bool &  formaterror 
)

Definition at line 374 of file serviceParser.cpp.

◆ getEncoderAtJoint()

servMC_encoder_t* ServiceParser::getEncoderAtJoint ( int  index)

◆ getEncoderAtMotor()

servMC_encoder_t* ServiceParser::getEncoderAtMotor ( int  index)

◆ parse_actuator_port()

bool ServiceParser::parse_actuator_port ( std::string const &  fromstring,
eObrd_ethtype_t const  ethboard,
eOmc_actuator_t const  type,
eOmc_actuator_descriptor_t &  todes,
bool &  formaterror 
)

◆ parse_connector()

bool ServiceParser::parse_connector ( const std::string &  fromstring,
eObrd_connector_t &  toconnector,
bool &  formaterror 
)

◆ parse_debugEmbBoardsNotConnected()

bool ServiceParser::parse_debugEmbBoardsNotConnected ( yarp::os::Searchable &  config,
bool &  embBoardsConnected 
)

◆ parse_encoder_port()

bool ServiceParser::parse_encoder_port ( std::string const &  fromstring,
eObrd_ethtype_t const  ethboard,
eOmc_encoder_t  type,
uint8_t &  toport,
bool &  formaterror 
)

◆ parse_mais()

bool ServiceParser::parse_mais ( std::string const &  fromstring,
eObrd_portmais_t &  pmais,
bool &  formaterror 
)

◆ parse_port_conn()

bool ServiceParser::parse_port_conn ( std::string const &  fromstring,
eObrd_type_t const  board,
uint8_t &  toport,
bool &  formaterror 
)

◆ parse_port_mais()

bool ServiceParser::parse_port_mais ( std::string const &  fromstring,
uint8_t &  toport,
bool &  formaterror 
)

◆ parse_port_pos()

bool ServiceParser::parse_port_pos ( std::string const &  fromstring,
uint8_t &  toport,
bool &  formaterror 
)

◆ parse_port_psc()

bool ServiceParser::parse_port_psc ( std::string const &  fromstring,
uint8_t &  toport,
bool &  formaterror 
)

◆ parse_POS_CALIB_rotation()

bool ServiceParser::parse_POS_CALIB_rotation ( std::string const &  fromstring,
eoas_pos_ROT_t &  rot,
bool &  formaterror 
)

◆ parse_POS_CALIB_type()

bool ServiceParser::parse_POS_CALIB_type ( std::string const &  fromstring,
eoas_pos_TYPE_t &  type,
bool &  formaterror 
)

◆ parse_POS_connector()

bool ServiceParser::parse_POS_connector ( std::string const &  fromstring,
const eObrd_type_t  brd,
eObrd_connector_t &  conn,
bool &  formaterror 
)

◆ parse_POS_port()

bool ServiceParser::parse_POS_port ( std::string const &  fromstring,
eObrd_portpos_t &  ppos,
bool &  formaterror 
)

◆ parse_psc()

bool ServiceParser::parse_psc ( std::string const &  fromstring,
eObrd_portpsc_t &  ppsc,
bool &  formaterror 
)

◆ parseService() [1/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigFTsensor_t ftconfig 
)

◆ parseService() [2/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigImu_t imuconfig 
)

◆ parseService() [3/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigMais_t maisconfig 
)

◆ parseService() [4/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigMC_t mcconfig 
)

◆ parseService() [5/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigPOS_t pscconfig 
)

◆ parseService() [6/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigPSC_t pscconfig 
)

◆ parseService() [7/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigSkin_t skinconfig 
)

◆ parseService() [8/8]

bool ServiceParser::parseService ( yarp::os::Searchable &  config,
servConfigStrain_t strainconfig 
)

◆ parseService2()

bool ServiceParser::parseService2 ( yarp::os::Searchable &  config,
servConfigMC_t mcconfig 
)

Member Data Documentation

◆ as_service

servAScollector_t ServiceParser::as_service

Definition at line 356 of file serviceParser.h.

◆ as_strain_settings

servASstrainSettings_t ServiceParser::as_strain_settings

Definition at line 357 of file serviceParser.h.

◆ mc_service

servMCcollector_t ServiceParser::mc_service

Definition at line 363 of file serviceParser.h.

◆ sk_service

servSKcollector_t ServiceParser::sk_service

Definition at line 359 of file serviceParser.h.

◆ tmp

eOmn_serv_config_data_sk_skin_t ServiceParser::tmp

Definition at line 360 of file serviceParser.h.


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