gz/sensors/ImuSensor.hh
Go to the documentation of this file.
math::Vector3d LinearAcceleration() const
Get the linear acceleration of the imu.
bool OrientationEnabled() const
Get whether or not orientation is enabled.
void SetOrientationEnabled(bool _enabled)
Set whether to output orientation. Not all imu's generate orientation values as they use filters to p...
void SetGravity(const math::Vector3d &_gravity)
Set the gravity vector.
math::Vector3d AngularVelocity() const
Get the angular velocity of the imu.
void SetOrientationReference(const math::Quaterniond &_orient)
Set the orientation reference, i.e. initial imu orientation. Imu orientation data generated will be r...
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
void SetLinearAcceleration(const math::Vector3d &_linearAcc)
Set the linear acceleration of the imu.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Update the sensor and generate data.
math::Quaterniond Orientation() const
Get the orienation of the imu with respect to reference frame.
void SetWorldPose(const math::Pose3d _pose)
Set the world pose of the imu.
void SetWorldFrameOrientation(const math::Quaterniond &_rot, WorldFrameEnumType _relativeTo)
Specify the rotation offset of the coordinates of the World frame relative to a geo-referenced frame.
void SetAngularVelocity(const math::Vector3d &_angularVel)
Set the angular velocity of the imu.
math::Quaterniond OrientationReference() const
Get the world orienation reference of the imu.
bool HasConnections() const
Check if there are any subscribers.
WorldFrameEnumType
Inline bracket to help doxygen filtering.
Definition: gz/sensors/ImuSensor.hh:41
@ NED
NED (North-East-Down): x - North, y - East, z - Down.
Definition: gz/sensors/AirPressureSensor.hh:32