3 #ifndef __JR3_PCI_HPP__
4 #define __JR3_PCI_HPP__
9 #include <yarp/dev/DeviceDriver.h>
10 #include <yarp/dev/IAnalogSensor.h>
11 #include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
13 #include <jr3pci-ioctl.h>
28 class Jr3Pci :
public yarp::dev::DeviceDriver,
29 public yarp::dev::IAnalogSensor,
30 public yarp::dev::ISixAxisForceTorqueSensors
40 bool open(yarp::os::Searchable& config)
override;
41 bool close()
override;
49 int read(yarp::sig::Vector &out)
override;
93 std::size_t getNrOfSixAxisForceTorqueSensors()
const override;
94 yarp::dev::MAS_status getSixAxisForceTorqueSensorStatus(std::size_t sens_index)
const override;
95 bool getSixAxisForceTorqueSensorName(std::size_t sens_index, std::string & name)
const override;
96 bool getSixAxisForceTorqueSensorFrameName(std::size_t sens_index, std::string & name)
const override;
97 bool getSixAxisForceTorqueSensorMeasure(std::size_t sens_index, yarp::sig::Vector & out,
double & timestamp)
const override;
100 void loadFilters(
int id);
104 unsigned long int filters[4];
105 std::vector<std::string> names {
"ch0",
"ch1",
"ch2",
"ch3"};
106 bool isDextrorotary {
false};
Implementation for the JR3 sensor (PCi board).
Definition: Jr3Pci.hpp:31
int getChannels() override
Definition: IAnalogSensorImpl.cpp:50
int calibrateSensor() override
Definition: IAnalogSensorImpl.cpp:57
int read(yarp::sig::Vector &out) override
Definition: IAnalogSensorImpl.cpp:15
int getState(int ch) override
Definition: IAnalogSensorImpl.cpp:43
int calibrateChannel(int ch) override
Definition: IAnalogSensorImpl.cpp:86
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6