|
iCub-main
|
An implementation of the Node class that represents the springy finger. More...
#include <springyFingers.h>
Inheritance diagram for iCub::perception::SpringyFinger:Public Member Functions | |
| bool | fromProperty (const yarp::os::Property &options) |
| Configure the finger taking its parameters from a Property object. | |
| void | toProperty (yarp::os::Property &options) const |
| Return a Property representation of all the node parameters. | |
| bool | toStream (std::ostream &str) const |
| Similar to the toProperty() method but it operates on output streams (e.g. | |
| bool | calibrate (const yarp::os::Property &options) |
| Allow to send calibration commands to the finger. | |
| bool | getSensorsData (yarp::os::Value &data) const |
| Retrieve data finger from the joints used both for calibration and normal operation. | |
| bool | getOutput (yarp::os::Value &out) const |
| Retrieve the finger output. | |
| bool | isCalibrated () const |
| Return the internal status of the calibration. | |
| void | setCalibVel (const double vel) |
| Set the finger actuation velocity used while calibrating. | |
| double | getCalibVel () const |
| Return the finger actuation velocity used while calibrating. | |
Public Member Functions inherited from iCub::perception::Node | |
| Node () | |
| Constructor. | |
| std::string | getName () const |
| Retrieve the node name. | |
| void | attachSensor (Sensor &sensor) |
| Attach a sensor object to the node. | |
| void | attachCallback (EventCallback &callback) |
| Attach an event callback to the node. | |
| void | addNeighbor (Node &node) |
| Add a node as a neighbor for the process of building the architecture. | |
| bool | removeNeighbor (const std::string &name) |
| Remove a node previously added as neighbor. | |
| Node * | getNeighbor (const std::string &name) const |
| Retrieve a neighbor node by its name. | |
| virtual | ~Node () |
| Destructor. | |
Protected Member Functions | |
| bool | extractSensorsData (yarp::sig::Vector &in, yarp::sig::Vector &out) const |
Protected Attributes | |
| iCub::learningmachine::FixedRangeScaler | scaler |
| iCub::learningmachine::LSSVMLearner | lssvm |
| double | calibratingVelocity |
| double | outputGain |
| bool | calibrated |
Protected Attributes inherited from iCub::perception::Node | |
| std::string | name |
| std::map< std::string, Sensor * > | sensors |
| std::map< std::string, EventCallback * > | callbacks |
| std::map< std::string, Node * > | neighbors |
An implementation of the Node class that represents the springy finger.
Definition at line 84 of file springyFingers.h.
|
virtual |
Allow to send calibration commands to the finger.
| options | a Property containing the calibration parameters. Available options are: reset: resets the internal machine. feed: feeds the internal machine with the current couple of input-output data for calibration purpose. train: issues the final training stage after having collected a sufficient number of input-output data couples through the "feed" command. |
Implements iCub::perception::Node.
Definition at line 230 of file springyFingers.cpp.
|
protected |
Definition at line 179 of file springyFingers.cpp.
|
virtual |
Configure the finger taking its parameters from a Property object.
| options | a Property containing the configuration parameters. Available options are: name: the name of the finger; it can be "thumb", "index", "middle", "ring" or "little". calib_vel: a double that specifies the velocity [deg/s] with which the finger is actuated during calibration. output_gain: a double that is used to multiply the final output for normalization purpose. calibrated: it can be "true" or "false" and indicates whether the configured finger has to be considered calibrated or not. scaler: the string that configures the internal scaler used by the learning machine. lssvm: the string that configures the Least-Squares SVM machine. |
Implements iCub::perception::Node.
Definition at line 43 of file springyFingers.cpp.
|
inline |
Return the finger actuation velocity used while calibrating.
Definition at line 190 of file springyFingers.h.
|
virtual |
Retrieve the finger output.
| out | a Value containing the finger output in the form: output_gain*norm(out-pred). |
Implements iCub::perception::Node.
Definition at line 211 of file springyFingers.cpp.
|
virtual |
Retrieve data finger from the joints used both for calibration and normal operation.
| data | a Value containing the representation of the data in the format: ((in (1.0)) (out (2.0 3.0))). |
Implements iCub::perception::Node.
Definition at line 126 of file springyFingers.cpp.
|
inlinevirtual |
Return the internal status of the calibration.
Implements iCub::perception::Node.
Definition at line 172 of file springyFingers.h.
|
inline |
Set the finger actuation velocity used while calibrating.
| vel | the velocity [deg/s]. |
Definition at line 181 of file springyFingers.h.
|
virtual |
Return a Property representation of all the node parameters.
| options | a Property filled with the configuration parameters. |
Implements iCub::perception::Node.
Definition at line 99 of file springyFingers.cpp.
|
virtual |
Similar to the toProperty() method but it operates on output streams (e.g.
string, ofstream, ...). It allows to better manage the storing of the configuration over files.
| str | the reference to the output stream. |
Implements iCub::perception::Node.
Definition at line 112 of file springyFingers.cpp.
|
protected |
Definition at line 91 of file springyFingers.h.
|
protected |
Definition at line 89 of file springyFingers.h.
|
mutableprotected |
Definition at line 88 of file springyFingers.h.
|
protected |
Definition at line 90 of file springyFingers.h.
|
mutableprotected |
Definition at line 87 of file springyFingers.h.