1#ifndef __WIIMOTE_SENSOR_DEVICE_HPP__
2#define __WIIMOTE_SENSOR_DEVICE_HPP__
4#include "StreamingDevice.hpp"
6#include <yarp/os/Value.h>
7#include <yarp/dev/IJoypadController.h>
24 bool initialize(
bool usingStreamingPreset)
override;
32 enum cmd_mode { NONE, FWD, BKWD, ROT };
34 yarp::dev::IJoypadController * iJoypadController {
nullptr};
36 bool usingPose {
false};
40 bool yawActive {
false};
Abstract class for a YARP streaming device.
Definition StreamingDevice.hpp:46
Represents a Wiimote device wrapped as an analog sensor by YARP.
Definition WiimoteDevice.hpp:19
bool acquireData() override
Acquires data from remote device.
Definition WiimoteDevice.cpp:73
void stopMotion() override
Sends a movement command that would stop motion.
Definition WiimoteDevice.cpp:178
void sendMovementCommand(double timestamp) override
Sends movement command to the cartesian controller.
Definition WiimoteDevice.cpp:148
bool hasValidMovementData() const override
Checks whether the device may forward acquired and processed data to the controller.
Definition WiimoteDevice.cpp:143
bool initialize(bool usingStreamingPreset) override
Perform any custom initialization needed. This method is called after the successful creation of the ...
Definition WiimoteDevice.cpp:45
bool transformData(double scaling) override
Performs required operations on stored data.
Definition WiimoteDevice.cpp:108
bool acquireInterfaces() override
Acquires plugin interfaces.
Definition WiimoteDevice.cpp:22
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6