OpenWalker Project
Documentation of the ROS Packages
imu_sensor.h
Go to the documentation of this file.
1 
34 #ifndef OPEN_WALKER_CORE_IMPLEMENTATIONS_IMU_SENSOR_H
35 #define OPEN_WALKER_CORE_IMPLEMENTATIONS_IMU_SENSOR_H
36 
37 #include <ow_core/types.h>
39 
40 namespace ow_core
41 {
48 class ImuSensor :
49  public IImuSensor
50 {
51 public:
52 
53 protected:
56  ow::AngularVelocity omega_;
57 
58 public:
59  ImuSensor() :
60  xPP_(ow::LinearAcceleration::Zero()),
61  Q_(ow::AngularPosition::Identity()),
62  omega_(ow::AngularVelocity::Zero())
63  {}
64 
68  virtual ~ImuSensor()
69  {
70  }
71 
72 
73  virtual ow::LinearAcceleration& xPP()
74  {
75  return xPP_;
76  }
77 
78  virtual const ow::LinearAcceleration& xPP() const
79  {
80  return xPP_;
81  }
82 
83 
84  virtual ow::AngularPosition& Q()
85  {
86  return Q_;
87  }
88 
89  virtual const ow::AngularPosition& Q() const
90  {
91  return Q_;
92  }
93 
94 
95  virtual ow::AngularVelocity& omega()
96  {
97  return omega_;
98  }
99 
100  virtual const ow::AngularVelocity& omega() const
101  {
102  return omega_;
103  }
104 
105 };
106 
107 } // namespace ow_core
108 
109 
110 #endif // OPEN_WALKER_CORE_JOINT_POSITION_H
The IImuSensor class.
Definition: i_imu_sensor.h:47
The ImuSensor class.
Definition: imu_sensor.h:48
Definition: angular_acceleration.h:39
virtual ~ImuSensor()
Virtual destructor.
Definition: imu_sensor.h:68