Represents a Wiimote device wrapped as an analog sensor by YARP.
#include <WiimoteSensorDevice.hpp>
|
enum | cmd_mode { NONE
, FWD
, BKWD
, ROT
} |
|
|
yarp::dev::IAnalogSensor * | iAnalogSensor |
|
cmd_mode | mode |
|
std::vector< double > | buffer |
|
bool | usingPose |
|
double | step |
|
|
ICartesianControl * | iCartesianControl |
|
std::vector< double > | data |
|
std::vector< bool > | fixedAxes |
|
int | actuatorState |
|
◆ acquireData()
bool WiimoteSensorDevice::acquireData |
( |
| ) |
|
|
overridevirtual |
◆ acquireInterfaces()
bool WiimoteSensorDevice::acquireInterfaces |
( |
| ) |
|
|
overridevirtual |
◆ hasValidMovementData()
bool WiimoteSensorDevice::hasValidMovementData |
( |
| ) |
const |
|
overridevirtual |
◆ initialize()
bool WiimoteSensorDevice::initialize |
( |
bool |
usingStreamingPreset | ) |
|
|
overridevirtual |
- Parameters
-
usingStreamingPreset | Whether the cartesian controller supports streaming command presets or not. |
- Returns
- true on success, false otherwise
Reimplemented from roboticslab::StreamingDevice.
◆ sendMovementCommand()
void WiimoteSensorDevice::sendMovementCommand |
( |
double |
timestamp | ) |
|
|
overridevirtual |
◆ transformData()
bool WiimoteSensorDevice::transformData |
( |
double |
scaling | ) |
|
|
overridevirtual |
- Parameters
-
scaling | Scaling factor applied to each data value. |
- Returns
- true on success, false otherwise
Reimplemented from roboticslab::StreamingDevice.
The documentation for this class was generated from the following files:
- programs/streamingDeviceController/WiimoteSensorDevice.hpp
- programs/streamingDeviceController/WiimoteSensorDevice.cpp