GenericParam.cpp
48 return !(value.empty() || value == "0" || value == "false" || value == "FALSE" || value == "False" ||
77 unsigned long long SpecificParam<unsigned long long>::lexical_cast(const std::string &value) const
99 static const int minChar = std::numeric_limits<char>::min(), maxChar = std::numeric_limits<char>::max();
124 bool ompl::base::ParamSet::setParams(const std::map<std::string, std::string> &kv, bool ignoreUnknown)
166 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:191
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:114
bool hasParam(const std::string &key) const
Check whether this set of parameters includes the parameter named key.
Definition: GenericParam.cpp:186
void getParamValues(std::vector< std::string > &vals) const
List the values of the known parameters, in the same order as getParamNames()
Definition: GenericParam.cpp:157
const std::map< std::string, GenericParamPtr > & getParams() const
Get the map from parameter names to parameter descriptions.
Definition: GenericParam.cpp:166
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:124
T lexical_cast(const std::string &value) const
Helper function to convert strings into objects of type T.
Motion planning algorithms often employ parameters to guide their exploration process....
Definition: GenericParam.h:129
double stod(const std::string &str)
convert string to double using classic "C" locale semantics
Definition: String.cpp:72
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:180
void print(std::ostream &out) const
Print the parameters to a stream.
Definition: GenericParam.cpp:224
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:138
void getParamNames(std::vector< std::string > ¶ms) const
List the names of the known parameters.
Definition: GenericParam.cpp:149
long double stold(const std::string &str)
convert string to long double using classic "C" locale semantics
Definition: String.cpp:77
float stof(const std::string &str)
convert string to float using classic "C" locale semantics
Definition: String.cpp:67
void remove(const std::string &name)
Remove a parameter from the set.
Definition: GenericParam.cpp:214
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65
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:198