Represents a Wiimote device wrapped as an analog sensor by YARP.
#include <WiimoteDevice.hpp>
|
| enum | cmd_mode { NONE
, FWD
, BKWD
, ROT
} |
| |
|
|
yarp::dev::IJoypadController * | iJoypadController {nullptr} |
| |
|
cmd_mode | mode {NONE} |
| |
|
bool | usingPose {false} |
| |
|
double | step {0.0} |
| |
|
bool | buttonA {false} |
| |
|
bool | buttonB {false} |
| |
|
bool | yawActive {false} |
| |
◆ acquireData()
| bool WiimoteDevice::acquireData |
( |
| ) |
|
|
overridevirtual |
◆ acquireInterfaces()
| bool WiimoteDevice::acquireInterfaces |
( |
| ) |
|
|
overridevirtual |
◆ hasValidMovementData()
| bool WiimoteDevice::hasValidMovementData |
( |
| ) |
const |
|
overridevirtual |
◆ initialize()
- Parameters
-
| params | Configuration parameters for the cartesian controller. |
- Returns
- true on success, false otherwise
Reimplemented from roboticslab::StreamingDevice.
◆ sendMovementCommand()
| void WiimoteDevice::sendMovementCommand |
( |
double |
timestamp | ) |
|
|
overridevirtual |
◆ stopMotion()
| void WiimoteDevice::stopMotion |
( |
| ) |
|
|
overridevirtual |
◆ transformData()
| bool WiimoteDevice::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/WiimoteDevice.hpp
- programs/streamingDeviceController/WiimoteDevice.cpp