Represents a spacenav-compatible device, like the SpaceNavigator 6-DOF mouse from 3Dconnexion.
#include <SpnavSensorDevice.hpp>
|
| SpnavSensorDevice (yarp::os::Searchable &config, bool usingMovi, double gain=0.0) |
| Constructor.
|
|
bool | acquireInterfaces () override |
| Acquires plugin interfaces.
|
|
bool | initialize (bool usingStreamingPreset) override |
| Perform any custom initialization needed. This method is called after the successful creation of the device and once all interface handles are acquired.
|
|
bool | acquireData () override |
| Acquires data from remote device.
|
|
bool | transformData (double scaling) override |
| Performs required operations on stored data.
|
|
int | getActuatorState () override |
| If actuator command data is available, return its current state.
|
|
bool | hasValidMovementData () const override |
| Checks whether the device may forward acquired and processed data to the controller.
|
|
void | sendMovementCommand (double timestamp) override |
| Sends movement command to the cartesian controller.
|
|
void | stopMotion () override |
| Sends a movement command that would stop motion.
|
|
| StreamingDevice (yarp::os::Searchable &config) |
| Constructor.
|
|
virtual | ~StreamingDevice () |
| Destructor.
|
|
void | setCartesianControllerHandle (ICartesianControl *iCartesianControl) |
| Stores handle to an ICartesianControl instance.
|
|
|
yarp::dev::IAnalogSensor * | iAnalogSensor |
|
std::vector< double > | currentX |
|
bool | usingPose |
|
double | gain |
|
bool | buttonClose |
|
bool | buttonOpen |
|
|
ICartesianControl * | iCartesianControl |
|
std::vector< double > | data |
|
std::vector< bool > | fixedAxes |
|
int | actuatorState |
|
◆ acquireData()
bool SpnavSensorDevice::acquireData |
( |
| ) |
|
|
overridevirtual |
◆ acquireInterfaces()
bool SpnavSensorDevice::acquireInterfaces |
( |
| ) |
|
|
overridevirtual |
◆ getActuatorState()
int SpnavSensorDevice::getActuatorState |
( |
| ) |
|
|
overridevirtual |
◆ hasValidMovementData()
bool SpnavSensorDevice::hasValidMovementData |
( |
| ) |
const |
|
overridevirtual |
◆ initialize()
bool SpnavSensorDevice::initialize |
( |
bool |
usingStreamingPreset | ) |
|
|
overridevirtual |
- Parameters
-
usingStreamingPreset | Whether the cartesian controller supports streaming command presets or not. |
- Returns
- true on success, false otherwise
Reimplemented from roboticslab::StreamingDevice.
◆ sendMovementCommand()
void SpnavSensorDevice::sendMovementCommand |
( |
double |
timestamp | ) |
|
|
overridevirtual |
◆ stopMotion()
void SpnavSensorDevice::stopMotion |
( |
| ) |
|
|
overridevirtual |
◆ transformData()
bool SpnavSensorDevice::transformData |
( |
double |
scaling | ) |
|
|
overridevirtual |
- Parameters
-
scaling | Scaling factor applied to each data value. |
- Returns
- true on success, false otherwise
Reimplemented from roboticslab::StreamingDevice.
The documentation for this class was generated from the following files:
- programs/streamingDeviceController/SpnavSensorDevice.hpp
- programs/streamingDeviceController/SpnavSensorDevice.cpp