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(
const std::map<ICartesianControl::Config, double> & params)
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:47
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:90
void stopMotion() override
Sends a movement command that would stop motion.
Definition WiimoteDevice.cpp:199
void sendMovementCommand(double timestamp) override
Sends movement command to the cartesian controller.
Definition WiimoteDevice.cpp:169
bool initialize(const std::map< ICartesianControl::Config, double > ¶ms) override
Perform any custom initialization needed. This method is called after the successful creation of the ...
Definition WiimoteDevice.cpp:55
bool hasValidMovementData() const override
Checks whether the device may forward acquired and processed data to the controller.
Definition WiimoteDevice.cpp:164
bool transformData(double scaling) override
Performs required operations on stored data.
Definition WiimoteDevice.cpp:129
bool acquireInterfaces() override
Acquires plugin interfaces.
Definition WiimoteDevice.cpp:24
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6