1#ifndef __SPNAV_SENSOR_DEVICE_HPP__
2#define __SPNAV_SENSOR_DEVICE_HPP__
4#include "StreamingDevice.hpp"
6#include <yarp/dev/IJoypadController.h>
20 SpnavSensorDevice(yarp::os::Searchable & config,
bool usingPose,
double gain = 0.0);
23 bool initialize(
const std::map<ICartesianControl::Config, double> & params)
override;
32 yarp::dev::IJoypadController * iJoypadController {
nullptr};
33 std::vector<double> currentX;
34 bool usingPose {
false};
36 bool buttonClose {
false};
37 bool buttonOpen {
false};
Actuator
Actuator control vocabs.
Definition ICartesianControl.h:90
Represents a spacenav-compatible device, like the SpaceNavigator 6-DOF mouse from 3Dconnexion.
Definition SpnavSensorDevice.hpp:18
bool acquireData() override
Acquires data from remote device.
Definition SpnavSensorDevice.cpp:104
void stopMotion() override
Sends a movement command that would stop motion.
Definition SpnavSensorDevice.cpp:241
void sendMovementCommand(double timestamp) override
Sends movement command to the cartesian controller.
Definition SpnavSensorDevice.cpp:224
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 SpnavSensorDevice.cpp:60
ICartesianControl::Actuator getActuatorState() override
If actuator command data is available, return its current state.
Definition SpnavSensorDevice.cpp:175
bool transformData(double scaling) override
Performs required operations on stored data.
Definition SpnavSensorDevice.cpp:151
bool acquireInterfaces() override
Acquires plugin interfaces.
Definition SpnavSensorDevice.cpp:19
bool hasValidMovementData() const override
Checks whether the device may forward acquired and processed data to the controller.
Definition SpnavSensorDevice.cpp:204
Abstract class for a YARP streaming device.
Definition StreamingDevice.hpp:47
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6