26#include <yarp/dev/DeviceDriver.h>
27#include <yarp/dev/IGenericSensor.h>
28#include <yarp/os/Stamp.h>
29#include <yarp/dev/IPreciselyTimed.h>
30#include <yarp/os/PeriodicThread.h>
58 public yarp::dev::IPreciselyTimed,
59 public yarp::dev::DeviceDriver,
60 public yarp::os::PeriodicThread
69 std::string comPortString;
74 int expected_packet_size;
75 int expected_payload_size;
86 std::mutex data_mutex;
88 std::string comPortName;
90 yarp::os::Stamp lastStamp;
97 virtual bool read(yarp::sig::Vector &
out);
99 virtual bool open(yarp::os::Searchable &config);
100 virtual bool calibrate(
int ch,
double v);
101 virtual bool close();
109 void threadRelease();
imuST_M1 : driver for 3DM_GX3 IMU unit from MicroStrain
virtual bool read(yarp::sig::Vector &out)
void sample_setting(void)
virtual bool calibrate(int ch, double v)
virtual yarp::os::Stamp getLastInputStamp()
virtual bool getChannels(int *nc)
virtual bool open(yarp::os::Searchable &config)
Copyright (C) 2008 RobotCub Consortium.