The intent of these functions is: More...
Functions | |
const MC_RBDYN_DLLAPI mc_rbdyn::Robot & | mc_rbdyn::robotFromConfig (const mc_rtc::Configuration &config, const mc_rbdyn::Robots &robots, const std::string &prefix, bool required=false, const std::string &robotIndexKey="robotIndex", const std::string &robotNameKey="robot", const std::string &defaultRobotName="") |
Obtains a reference to a loaded robot from configuration (using robotName or robotIndex) More... | |
std::string MC_RBDYN_DLLAPI | mc_rbdyn::robotNameFromConfig (const mc_rtc::Configuration &config, const mc_rbdyn::Robots &robots, const std::string &prefix="", bool required=false, const std::string &robotIndexKey="robotIndex", const std::string &robotNameKey="robot", const std::string &defaultRobotName="") |
Helper to obtain the robot name from configuration. More... | |
unsigned int MC_RBDYN_DLLAPI | mc_rbdyn::robotIndexFromConfig (const mc_rtc::Configuration &config, const mc_rbdyn::Robots &robots, const std::string &prefix="", bool required=false, const std::string &robotIndexKey="robotIndex", const std::string &robotNameKey="robot", const std::string &defaultRobotName="") |
Helper to obtain the robot index from configuration. More... | |
The intent of these functions is:
const MC_RBDYN_DLLAPI mc_rbdyn::Robot& mc_rbdyn::robotFromConfig | ( | const mc_rtc::Configuration & | config, |
const mc_rbdyn::Robots & | robots, | ||
const std::string & | prefix, | ||
bool | required = false , |
||
const std::string & | robotIndexKey = "robotIndex" , |
||
const std::string & | robotNameKey = "robot" , |
||
const std::string & | defaultRobotName = "" |
||
) |
Obtains a reference to a loaded robot from configuration (using robotName or robotIndex)
config | Configuration from which to look for robotName/robotIndex |
robots | Loaded robots |
prefix | Prefix used for printint outputs to the user (deprecation warning, non-existing robot, etc). |
required |
|
robotIndexKey | Configuration key for robotIndex |
robotNameKey | Configuration key for robotName |
defaultRobotName | When empty, return the main robot name, otherwise use the specified name |
unsigned int MC_RBDYN_DLLAPI mc_rbdyn::robotIndexFromConfig | ( | const mc_rtc::Configuration & | config, |
const mc_rbdyn::Robots & | robots, | ||
const std::string & | prefix = "" , |
||
bool | required = false , |
||
const std::string & | robotIndexKey = "robotIndex" , |
||
const std::string & | robotNameKey = "robot" , |
||
const std::string & | defaultRobotName = "" |
||
) |
Helper to obtain the robot index from configuration.
std::string MC_RBDYN_DLLAPI mc_rbdyn::robotNameFromConfig | ( | const mc_rtc::Configuration & | config, |
const mc_rbdyn::Robots & | robots, | ||
const std::string & | prefix = "" , |
||
bool | required = false , |
||
const std::string & | robotIndexKey = "robotIndex" , |
||
const std::string & | robotNameKey = "robot" , |
||
const std::string & | defaultRobotName = "" |
||
) |
Helper to obtain the robot name from configuration.