|
iCub-main
|
Helper class providing useful methods to deal with pid options. More...
#include <pids.h>
Inheritance diagram for iCub::ctrl::helperPID:Static Public Member Functions | |
| static void | addVectorToOption (yarp::os::Bottle &option, const char *key, const yarp::sig::Vector &val) |
| Add the data contained in the specified vector to the specified bottle, using property-like form (i.e. | |
| static bool | getVectorFromOption (const yarp::os::Bottle &options, const char *key, yarp::sig::Vector &val, int &size) |
| Fill the specified vector with the data associated with the specified key in the specified property-like bottle. | |
Helper class providing useful methods to deal with pid options.
|
static |
Add the data contained in the specified vector to the specified bottle, using property-like form (i.e.
"key-value" pairs).
| option | is the bottle to which add the data |
| key | is the string representing the key of the vector |
| val | is the vector containing the data to add |
|
static |
Fill the specified vector with the data associated with the specified key in the specified property-like bottle.
If the vector size is less than the size of the data found in the bottle, the exceeding data will be discarded.
| options | is the property-like bottle containing the data |
| key | is the string representing the key to look for |
| val | is the vector to fill with the retrieved data |
| size | is the number of values written in val |