1#ifndef __LEAP_MOTION_SENSOR_DEVICE_HPP__
2#define __LEAP_MOTION_SENSOR_DEVICE_HPP__
4#include "StreamingDevice.hpp"
8#include <kdl/frames.hpp>
10#include <yarp/dev/IAnalogSensor.h>
29 bool initialize(
const std::map<ICartesianControl::Config, double> & params)
override;
43 yarp::dev::IAnalogSensor * iAnalogSensor;
47 std::vector<double> initialTcpOffset;
48 std::vector<double> initialLeapOffset;
50 KDL::Frame frame_base_leap, frame_ee_leap, frame_leap_ee;
52 KDL::Frame previousPose;
53 double previousTimestamp;
Actuator
Actuator control vocabs.
Definition ICartesianControl.h:90
Represents a LeapMotion device wrapped as an analog sensor by YARP.
Definition LeapMotionSensorDevice.hpp:22
void sendMovementCommand(double timestamp) override
Sends movement command to the cartesian controller.
Definition LeapMotionSensorDevice.cpp:223
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 LeapMotionSensorDevice.cpp:59
bool transformData(double scaling) override
Performs required operations on stored data.
Definition LeapMotionSensorDevice.cpp:152
ICartesianControl::Actuator getActuatorState() override
If actuator command data is available, return its current state.
Definition LeapMotionSensorDevice.cpp:189
bool acquireInterfaces() override
Acquires plugin interfaces.
Definition LeapMotionSensorDevice.cpp:46
void stopMotion() override
Sends a movement command that would stop motion.
Definition LeapMotionSensorDevice.hpp:39
bool acquireData() override
Acquires data from remote device.
Definition LeapMotionSensorDevice.cpp:118
Abstract class for a YARP streaming device.
Definition StreamingDevice.hpp:47
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6