|
kinematics-dynamics
|
Abstract class for a YARP streaming device.
#include <StreamingDevice.hpp>
Public Member Functions | |
| StreamingDevice (yarp::os::Searchable &config) | |
| Constructor. | |
| virtual | ~StreamingDevice () |
| Destructor. | |
| virtual bool | acquireInterfaces ()=0 |
| Acquires plugin interfaces. | |
| virtual bool | initialize (const std::map< ICartesianControl::Config, double > ¶ms) |
| Perform any custom initialization needed. This method is called after the successful creation of the device and once all interface handles are acquired. | |
| virtual bool | acquireData ()=0 |
| Acquires data from remote device. | |
| virtual bool | transformData (double scaling) |
| Performs required operations on stored data. | |
| virtual ICartesianControl::Actuator | getActuatorState () |
| If actuator command data is available, return its current state. | |
| virtual bool | hasValidMovementData () const |
| Checks whether the device may forward acquired and processed data to the controller. | |
| virtual void | sendMovementCommand (double timestamp)=0 |
| Sends movement command to the cartesian controller. | |
| virtual void | stopMotion ()=0 |
| Sends a movement command that would stop motion. | |
| void | setCartesianControllerHandle (ICartesianControl *iCartesianControl) |
| Stores handle to an ICartesianControl instance. | |
Protected Attributes | |
| ICartesianControl * | iCartesianControl |
| std::vector< double > | data |
| std::vector< bool > | fixedAxes |
| ICartesianControl::Actuator | actuatorState |
Private Member Functions | |
| void | configureFixedAxes (const yarp::os::Value &v) |
| Stores vector of values representing axes that are always fixed. | |
Private Attributes | |
| friend | CentroidTransform |
| StreamingDevice::StreamingDevice | ( | yarp::os::Searchable & | config | ) |
| config | List of options the YARP device should be opened with. |
|
pure virtual |
Implemented in roboticslab::LeapMotionSensorDevice, roboticslab::SpnavSensorDevice, roboticslab::InvalidDevice, and roboticslab::WiimoteDevice.
|
pure virtual |
Implemented in roboticslab::LeapMotionSensorDevice, roboticslab::SpnavSensorDevice, roboticslab::InvalidDevice, and roboticslab::WiimoteDevice.
|
inlinevirtual |
Reimplemented in roboticslab::LeapMotionSensorDevice, and roboticslab::SpnavSensorDevice.
|
virtual |
Reimplemented in roboticslab::SpnavSensorDevice, and roboticslab::WiimoteDevice.
|
inlinevirtual |
| params | Configuration parameters for the cartesian controller. |
Reimplemented in roboticslab::LeapMotionSensorDevice, roboticslab::SpnavSensorDevice, and roboticslab::WiimoteDevice.
|
pure virtual |
| timestamp | Current timestamp. |
Implemented in roboticslab::LeapMotionSensorDevice, roboticslab::SpnavSensorDevice, roboticslab::InvalidDevice, and roboticslab::WiimoteDevice.
|
inline |
| iCartesianControl | Handle to an ICartesianControl instance. |
|
pure virtual |
|
virtual |
| scaling | Scaling factor applied to each data value. |
Reimplemented in roboticslab::LeapMotionSensorDevice, roboticslab::SpnavSensorDevice, and roboticslab::WiimoteDevice.