18 #ifndef _IMUSENSOR_HH_
19 #define _IMUSENSOR_HH_
45 protected:
void Load(
const std::string &_worldName, sdf::ElementPtr _sdf);
48 protected:
virtual void Load(
const std::string &_worldName);
51 public:
virtual void Init();
54 protected:
virtual void UpdateImpl(
bool _force);
57 protected:
virtual void Fini();
84 private:
void OnLinkData(ConstLinkDataPtr &_msg);
108 private: msgs::IMU imuMsg;
111 private:
mutable boost::mutex mutex;
114 private: boost::shared_ptr<msgs::LinkData const> incomingLinkData[2];
117 private:
unsigned int dataIndex;
120 private:
bool dataDirty;
123 private:
enum NoiseModelType
131 private:
bool noiseActive;
134 private:
enum NoiseModelType noiseType;
138 private:
double accelNoiseMean;
142 private:
double accelNoiseStdDev;
145 private:
double accelBias;
149 private:
double rateNoiseMean;
153 private:
double rateNoiseStdDev;
156 private:
double rateBias;