GenericParam.cpp
44 return (value.empty() || value == falseValue || value == "false" || value == "FALSE" || value == "False" ||
60 bool ompl::base::ParamSet::setParams(const std::map<std::string, std::string> &kv, bool ignoreUnknown)
102 const std::map<std::string, ompl::base::GenericParamPtr> &ompl::base::ParamSet::getParams() const
void include(const ParamSet &other, const std::string &prefix="")
Include the params of a different ParamSet into this one. Optionally include a prefix for each of the...
Definition: GenericParam.cpp:134
Motion planning algorithms often employ parameters to guide their exploration process. (e.g., goal biasing). Motion planners (and some of their components) use this class to declare what the parameters are, in a generic way, so that they can be set externally.
Definition: GenericParam.h:64
bool getParam(const std::string &key, std::string &value) const
Get the value of the parameter named key. Store the value as string in value and return true if the p...
Definition: GenericParam.cpp:74
bool setParams(const std::map< std::string, std::string > &kv, bool ignoreUnknown=false)
Set the values for a set of parameters. The parameter names are the keys in the map kv...
Definition: GenericParam.cpp:60
void getParamNames(std::vector< std::string > ¶ms) const
List the names of the known parameters.
Definition: GenericParam.cpp:85
void print(std::ostream &out) const
Print the parameters to a stream.
Definition: GenericParam.cpp:160
bool setParam(const std::string &key, const std::string &value)
Algorithms in OMPL often have parameters that can be set externally. While each algorithm will have t...
Definition: GenericParam.cpp:50
void remove(const std::string &name)
Remove a parameter from the set.
Definition: GenericParam.cpp:150
GenericParam & operator[](const std::string &key)
Access operator for parameters, by name. If the parameter is not defined, an exception is thrown...
Definition: GenericParam.cpp:127
void getParams(std::map< std::string, std::string > ¶ms) const
Get the known parameter as a map from names to their values cast as string.
Definition: GenericParam.cpp:116
bool hasParam(const std::string &key) const
Check whether this set of parameters includes the parameter named key.
Definition: GenericParam.cpp:122
const std::map< std::string, GenericParamPtr > & getParams() const
Get the map from parameter names to parameter descriptions.
Definition: GenericParam.cpp:102
void getParamValues(std::vector< std::string > &vals) const
List the values of the known parameters, in the same order as getParamNames()
Definition: GenericParam.cpp:93