#include <yarp/os/Bottle.h>
#include <algorithm>
#include <string.h>
#include <iostream>
#include <eomcParser.h>
#include <embObjMotionControlDefaults.h>
#include <yarp/os/LogStream.h>
#include "EoCommon.h"
#include "EOarray.h"
#include "EoProtocol.h"
#include "EoProtocolMN.h"
#include "EoProtocolMC.h"
#include "EoProtocolAS.h"
#include <vector>
Go to the source code of this file.
|
| void | loadStrings (std::vector< std::string > &dest, const yarp::os::Bottle &source) |
| bool | getCtrlOutTypeFromConfig (const std::string &configName, eOmc_ctrl_out_type_t &outType, std::string &description) |
| | A map of control output types from configuration strings to their enum values and descriptions.
|
◆ getCtrlOutTypeFromConfig()
| bool getCtrlOutTypeFromConfig |
( |
const std::string & | configName, |
|
|
eOmc_ctrl_out_type_t & | outType, |
|
|
std::string & | description ) |
A map of control output types from configuration strings to their enum values and descriptions.
NOTE: in this map the velocity output is mapped to eomc_ctrl_out_type_vel_pwm, and in the parse of velocitydirect control there is a check for the output required. If it is current, then the parse changes the output type to eomc_ctrl_out_type_vel_cur, otherwise it remains eomc_ctrl_out_type_vel_pwm.
Definition at line 72 of file eomcParser.cpp.
◆ loadStrings()
| void loadStrings |
( |
std::vector< std::string > & | dest, |
|
|
const yarp::os::Bottle & | source ) |
|
inline |
◆ ctrlOutTypeConfigMap
Initial value:=
{
}
static constexpr std::string_view vel_cur
static constexpr std::string_view pwm
static constexpr std::string_view n_a
static constexpr std::string_view current
static constexpr std::string_view velocity
Definition at line 58 of file eomcParser.cpp.