1#ifndef __WIIMOTE_SENSOR_DEVICE_HPP__
2#define __WIIMOTE_SENSOR_DEVICE_HPP__
4#include "StreamingDevice.hpp"
8#include <yarp/os/Value.h>
9#include <yarp/dev/IAnalogSensor.h>
11#define DEFAULT_STEP 0.01
30 bool initialize(
bool usingStreamingPreset)
override;
43 enum cmd_mode { NONE, FWD, BKWD, ROT };
45 yarp::dev::IAnalogSensor * iAnalogSensor;
49 std::vector<double> buffer;
Abstract class for a YARP streaming device.
Definition StreamingDevice.hpp:46
Represents a Wiimote device wrapped as an analog sensor by YARP.
Definition WiimoteSensorDevice.hpp:23
void sendMovementCommand(double timestamp) override
Sends movement command to the cartesian controller.
Definition WiimoteSensorDevice.cpp:132
bool hasValidMovementData() const override
Checks whether the device may forward acquired and processed data to the controller.
Definition WiimoteSensorDevice.cpp:127
bool transformData(double scaling) override
Performs required operations on stored data.
Definition WiimoteSensorDevice.cpp:87
bool initialize(bool usingStreamingPreset) override
Perform any custom initialization needed. This method is called after the successful creation of the ...
Definition WiimoteSensorDevice.cpp:38
bool acquireInterfaces() override
Acquires plugin interfaces.
Definition WiimoteSensorDevice.cpp:25
void stopMotion() override
Sends a movement command that would stop motion.
Definition WiimoteSensorDevice.cpp:162
bool acquireData() override
Acquires data from remote device.
Definition WiimoteSensorDevice.cpp:66
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6