Abstract class for a YARP streaming device.
#include <StreamingDevice.hpp>
|
| StreamingDevice (yarp::os::Searchable &config) |
| Constructor.
|
|
virtual | ~StreamingDevice () |
| Destructor.
|
|
virtual bool | acquireInterfaces ()=0 |
| Acquires plugin interfaces.
|
|
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.
|
|
virtual bool | acquireData ()=0 |
| Acquires data from remote device.
|
|
virtual bool | transformData (double scaling) |
| Performs required operations on stored data.
|
|
virtual int | 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.
|
|
|
ICartesianControl * | iCartesianControl |
|
std::vector< double > | data |
|
std::vector< bool > | fixedAxes |
|
int | actuatorState |
|
|
void | configureFixedAxes (const yarp::os::Value &v) |
| Stores vector of values representing axes that are always fixed.
|
|
◆ StreamingDevice()
StreamingDevice::StreamingDevice |
( |
yarp::os::Searchable & |
config | ) |
|
- Parameters
-
config | List of options the YARP device should be opened with. |
◆ acquireData()
virtual bool roboticslab::StreamingDevice::acquireData |
( |
| ) |
|
|
pure virtual |
◆ acquireInterfaces()
virtual bool roboticslab::StreamingDevice::acquireInterfaces |
( |
| ) |
|
|
pure virtual |
◆ getActuatorState()
virtual int roboticslab::StreamingDevice::getActuatorState |
( |
| ) |
|
|
inlinevirtual |
◆ hasValidMovementData()
bool StreamingDevice::hasValidMovementData |
( |
| ) |
const |
|
virtual |
◆ initialize()
virtual bool roboticslab::StreamingDevice::initialize |
( |
bool |
usingStreamingPreset | ) |
|
|
inlinevirtual |
◆ sendMovementCommand()
virtual void roboticslab::StreamingDevice::sendMovementCommand |
( |
double |
timestamp | ) |
|
|
pure virtual |
◆ setCartesianControllerHandle()
void roboticslab::StreamingDevice::setCartesianControllerHandle |
( |
ICartesianControl * |
iCartesianControl | ) |
|
|
inline |
◆ stopMotion()
virtual void roboticslab::StreamingDevice::stopMotion |
( |
| ) |
|
|
pure virtual |
◆ transformData()
bool StreamingDevice::transformData |
( |
double |
scaling | ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- programs/streamingDeviceController/StreamingDevice.hpp
- programs/streamingDeviceController/StreamingDevice.cpp