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
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
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
bool hasParam(const std::string &key) const
Check whether this set of parameters includes the parameter named key.
Definition: GenericParam.cpp:122
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
const std::map< std::string, GenericParamPtr > & getParams() const
Get the map from parameter names to parameter descriptions.
Definition: GenericParam.cpp:102
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
Motion planning algorithms often employ parameters to guide their exploration process....
Definition: GenericParam.h:128
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
void print(std::ostream &out) const
Print the parameters to a stream.
Definition: GenericParam.cpp:160
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
void getParamNames(std::vector< std::string > ¶ms) const
List the names of the known parameters.
Definition: GenericParam.cpp:85
void remove(const std::string &name)
Remove a parameter from the set.
Definition: GenericParam.cpp:150
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