a double implementation of the parameter. This is used to handle double-precision floating point numbers, though it can handle single precision as well. More...
#include <dd_double_param.h>
Public Member Functions | |
DDDouble (const string &name, unsigned int level, const string &description, double def, double min=-d_limit::infinity(), double max=d_limit::infinity()) | |
int | getLevel () const |
fetches the level of the parameter | |
string | getName () const |
gets the name of the parameter, that is, the ID used in the program when requesting it. | |
Value | getValue () const |
gets the value of this parameter. | |
void | prepConfig (Config &conf) |
updates a config message according to this param's info. | |
void | prepConfigDescription (ConfigDescription &conf_desc) |
updates a config description message according to this param's info. | |
void | prepGroup (Group &group) |
updates a group message according to this param's info. | |
bool | sameType (Value val) |
checks whether or not the raw value stored in the value is compatible with the given parameter. Compatible is a very broad word in this scenario. It means that the value can be placed in the parameter regardless of other limitations. | |
bool | sameValue (Value val) |
checks whether or not the value stored in the value object, when converted to the type of the internal value, are equal. This acts regardless of type. | |
void | setValue (Value val) |
sets the value of this parameter as this one. | |
Protected Attributes | |
double | def_ |
the default value (def_), the current value (val_), the minimum allowed value (min_), and the maximum allowed value (max_) | |
string | desc_ |
unsigned int | level_ |
the level of the parameter: the degree in which things need to be shut down if this param changes | |
double | max_ |
double | min_ |
string | name_ |
the name of the parameter (name_), and its description (desc_) | |
double | val_ |
a double implementation of the parameter. This is used to handle double-precision floating point numbers, though it can handle single precision as well.
Definition at line 18 of file dd_double_param.h.
ddynamic_reconfigure::DDDouble::DDDouble | ( | const string & | name, |
unsigned int | level, | ||
const string & | description, | ||
double | def, | ||
double | min = -d_limit::infinity() , |
||
double | max = d_limit::infinity() |
||
) | [inline] |
creates a new double param
name | the name of the parameter |
level | the change level |
def | the default value |
description | details about the parameter |
max | the maximum allowed value. Defaults to DBL_MAX |
min | the minimum allowed value. Defaults to -DBL_MAX |
Definition at line 47 of file dd_double_param.h.
int ddynamic_reconfigure::DDDouble::getLevel | ( | ) | const [virtual] |
fetches the level of the parameter
Implements ddynamic_reconfigure::DDParam.
Definition at line 39 of file dd_double_param.cpp.
string ddynamic_reconfigure::DDDouble::getName | ( | ) | const [virtual] |
gets the name of the parameter, that is, the ID used in the program when requesting it.
Implements ddynamic_reconfigure::DDParam.
Definition at line 8 of file dd_double_param.cpp.
Value ddynamic_reconfigure::DDDouble::getValue | ( | ) | const [virtual] |
gets the value of this parameter.
Implements ddynamic_reconfigure::DDParam.
Definition at line 55 of file dd_double_param.cpp.
void ddynamic_reconfigure::DDDouble::prepConfig | ( | Config & | conf | ) | [virtual] |
updates a config message according to this param's info.
conf | the group to update. |
Implements ddynamic_reconfigure::DDParam.
Definition at line 21 of file dd_double_param.cpp.
void ddynamic_reconfigure::DDDouble::prepConfigDescription | ( | ConfigDescription & | conf_desc | ) | [virtual] |
updates a config description message according to this param's info.
conf_desc | the config description to update. |
Implements ddynamic_reconfigure::DDParam.
Definition at line 28 of file dd_double_param.cpp.
void ddynamic_reconfigure::DDDouble::prepGroup | ( | Group & | group | ) | [virtual] |
updates a group message according to this param's info.
group | the group to update. |
Implements ddynamic_reconfigure::DDParam.
Definition at line 12 of file dd_double_param.cpp.
bool ddynamic_reconfigure::DDDouble::sameType | ( | Value | val | ) | [virtual] |
checks whether or not the raw value stored in the value is compatible with the given parameter. Compatible is a very broad word in this scenario. It means that the value can be placed in the parameter regardless of other limitations.
val | the value to test |
Implements ddynamic_reconfigure::DDParam.
Definition at line 43 of file dd_double_param.cpp.
bool ddynamic_reconfigure::DDDouble::sameValue | ( | Value | val | ) | [virtual] |
checks whether or not the value stored in the value object, when converted to the type of the internal value, are equal. This acts regardless of type.
val | the value to test |
Implements ddynamic_reconfigure::DDParam.
Definition at line 47 of file dd_double_param.cpp.
void ddynamic_reconfigure::DDDouble::setValue | ( | Value | val | ) | [virtual] |
sets the value of this parameter as this one.
val | the value to use |
Implements ddynamic_reconfigure::DDParam.
Definition at line 51 of file dd_double_param.cpp.
double ddynamic_reconfigure::DDDouble::def_ [protected] |
the default value (def_), the current value (val_), the minimum allowed value (min_), and the maximum allowed value (max_)
Definition at line 70 of file dd_double_param.h.
string ddynamic_reconfigure::DDDouble::desc_ [protected] |
Definition at line 75 of file dd_double_param.h.
unsigned int ddynamic_reconfigure::DDDouble::level_ [protected] |
the level of the parameter: the degree in which things need to be shut down if this param changes
Definition at line 63 of file dd_double_param.h.
double ddynamic_reconfigure::DDDouble::max_ [protected] |
Definition at line 70 of file dd_double_param.h.
double ddynamic_reconfigure::DDDouble::min_ [protected] |
Definition at line 70 of file dd_double_param.h.
string ddynamic_reconfigure::DDDouble::name_ [protected] |
the name of the parameter (name_), and its description (desc_)
Definition at line 75 of file dd_double_param.h.
double ddynamic_reconfigure::DDDouble::val_ [protected] |
Definition at line 70 of file dd_double_param.h.