kinematics-dynamics
|
Abstract class for a YARP streaming device.
#include <StreamingDevice.hpp>
Public Member Functions | |
StreamingDevice (yarp::os::Searchable &config) | |
Constructor. More... | |
virtual | ~StreamingDevice () |
Destructor. | |
virtual bool | acquireInterfaces ()=0 |
Acquires plugin interfaces. More... | |
virtual bool | initialize (bool usingStreamingPreset) |
Perform any custom initialization needed. This method is called after the successful creation of the device and once all interface handles are acquired. More... | |
virtual bool | acquireData ()=0 |
Acquires data from remote device. More... | |
virtual bool | transformData (double scaling) |
Performs required operations on stored data. More... | |
virtual int | getActuatorState () |
If actuator command data is available, return its current state. More... | |
virtual bool | hasValidMovementData () const |
Checks whether the device may forward acquired and processed data to the controller. More... | |
virtual void | sendMovementCommand (double timestamp)=0 |
Sends movement command to the cartesian controller. More... | |
virtual void | stopMotion ()=0 |
Sends a movement command that would stop motion. | |
void | setCartesianControllerHandle (ICartesianControl *iCartesianControl) |
Stores handle to an ICartesianControl instance. More... | |
Protected Attributes | |
ICartesianControl * | iCartesianControl |
std::vector< double > | data |
std::vector< bool > | fixedAxes |
int | 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::WiimoteSensorDevice, roboticslab::InvalidDevice, roboticslab::SpnavSensorDevice, and roboticslab::LeapMotionSensorDevice.
|
pure virtual |
Implemented in roboticslab::WiimoteSensorDevice, roboticslab::InvalidDevice, roboticslab::SpnavSensorDevice, and roboticslab::LeapMotionSensorDevice.
|
inlinevirtual |
Reimplemented in roboticslab::SpnavSensorDevice, and roboticslab::LeapMotionSensorDevice.
|
virtual |
Reimplemented in roboticslab::WiimoteSensorDevice, and roboticslab::SpnavSensorDevice.
|
inlinevirtual |
usingStreamingPreset | Whether the cartesian controller supports streaming command presets or not. |
Reimplemented in roboticslab::WiimoteSensorDevice, roboticslab::SpnavSensorDevice, and roboticslab::LeapMotionSensorDevice.
|
pure virtual |
timestamp | Current timestamp. |
Implemented in roboticslab::WiimoteSensorDevice, roboticslab::InvalidDevice, roboticslab::SpnavSensorDevice, and roboticslab::LeapMotionSensorDevice.
|
inline |
iCartesianControl | Handle to an ICartesianControl instance. |
|
virtual |
scaling | Scaling factor applied to each data value. |
Reimplemented in roboticslab::WiimoteSensorDevice, roboticslab::SpnavSensorDevice, and roboticslab::LeapMotionSensorDevice.