17 #ifndef _GAZEBO_SENSORS_IMUSENSOR_PRIVATE_HH_
18 #define _GAZEBO_SENSORS_IMUSENSOR_PRIVATE_HH_
22 #include <ignition/math/Vector3.hh>
23 #include <ignition/math/Pose3.hh>
61 public:
mutable std::mutex
mutex;
64 public: std::array<boost::shared_ptr<msgs::LinkData const>, 2>
Definition: ImuSensorPrivate.hh:34
ignition::math::Pose3d referencePose
Imu reference pose.
Definition: ImuSensorPrivate.hh:37
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
transport::SubscriberPtr linkDataSub
Subscriber to link data published by parent entity.
Definition: ImuSensorPrivate.hh:52
ignition::math::Vector3d lastLinearVel
Save previous imu linear velocity for computing acceleration.
Definition: ImuSensorPrivate.hh:40
Forward declarations for transport.
std::array< boost::shared_ptr< msgs::LinkData const >, 2 > incomingLinkData
Buffer for storing link data.
Definition: ImuSensorPrivate.hh:65
ignition::math::Vector3d gravity
store gravity vector to be added to the imu output.
Definition: ImuSensorPrivate.hh:46
default namespace for gazebo
transport::PublisherPtr pub
Imu data publisher.
Definition: ImuSensorPrivate.hh:49
bool dataDirty
True if new link data is received.
Definition: ImuSensorPrivate.hh:71
unsigned int dataIndex
Index for accessing element in the link data array.
Definition: ImuSensorPrivate.hh:68
physics::LinkPtr parentEntity
Parent entity which the IMU is attached to.
Definition: ImuSensorPrivate.hh:55
msgs::IMU imuMsg
Imu message.
Definition: ImuSensorPrivate.hh:58
ignition::math::Vector3d angularVel
Noise free angular velocity.
Definition: ImuSensorPrivate.hh:74
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
std::mutex mutex
Mutex to protect reads and writes.
Definition: ImuSensorPrivate.hh:61
ignition::math::Vector3d linearAcc
Noise free linear acceleration.
Definition: ImuSensorPrivate.hh:43
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:100