21#include <gz/utils/ImplPtr.hh>
30 inline namespace SDF_VERSION_NAMESPACE {
272 GZ_UTILS_IMPL_PTR(dataPtr)
Imu contains information about an imu sensor.
Definition: Imu.hh:34
bool OrientationEnabled() const
Get whether orientation data generation is enabled.
const Noise & AngularVelocityZNoise() const
Get the noise values related to the body-frame angular velocity around the Z-axis.
sdf::ElementPtr ToElement(sdf::Errors &_errors) const
Create and return an SDF element filled with data from this imu sensor.
const std::string & Localization() const
This string represents special hardcoded use cases that are commonly seen with typical robot IMU's:
sdf::ElementPtr ToElement() const
Create and return an SDF element filled with data from this imu sensor.
void SetLinearAccelerationZNoise(const Noise &_noise)
Set the noise values related to the body-frame linear acceleration on the Z-axis.
const std::string & CustomRpyParentFrame() const
Get the name of parent frame which the custom_rpy transform is defined relative to.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetGravityDirX(const gz::math::Vector3d &_grav)
Used when localization is set to GRAV_UP or GRAV_DOWN, a projection of this vector into a plane that ...
bool operator==(const Imu &_imu) const
Return true if both Imu objects contain the same values.
const gz::math::Vector3d & GravityDirX() const
Used when localization is set to GRAV_UP or GRAV_DOWN, a projection of this vector into a plane that ...
void SetLocalization(const std::string &_localization)
See Localization(const std::string &).
void SetAngularVelocityZNoise(const Noise &_noise)
Set the noise values related to the body-frame angular velocity around the Z-axis.
void SetAngularVelocityXNoise(const Noise &_noise)
Set the noise values related to the body-frame angular velocity around the X-axis.
void SetGravityDirXParentFrame(const std::string &_frame)
Set the name of parent frame which the GravityDirX vector is defined relative to.
const gz::math::Vector3d & CustomRpy() const
This field and CustomRpyParentFrame are used when Localization is set to CUSTOM.
bool operator!=(const Imu &_imu) const
Return true this Imu object does not contain the same values as the passed in parameter.
void SetOrientationEnabled(bool _enabled)
Set whether to enable orientation data generation.
void SetCustomRpy(const gz::math::Vector3d &_rpy)
See CustomRpy() const.
const Noise & LinearAccelerationXNoise() const
Get the noise values related to the body-frame linear acceleration on the X-axis.
const Noise & LinearAccelerationYNoise() const
Get the noise values related to the body-frame linear acceleration on the Y-axis.
Errors Load(ElementPtr _sdf)
Load the IMU based on an element pointer.
const Noise & LinearAccelerationZNoise() const
Get the noise values related to the body-frame linear acceleration on the Z-axis.
Imu()
Default constructor.
const std::string & GravityDirXParentFrame() const
Get the name of parent frame which the GravityDirX vector is defined relative to.
void SetAngularVelocityYNoise(const Noise &_noise)
Set the noise values related to the body-frame angular velocity around the Y-axis.
void SetLinearAccelerationXNoise(const Noise &_noise)
Set the noise values related to the body-frame linear acceleration on the X-axis.
void SetCustomRpyParentFrame(const std::string &_frame)
Set the name of parent frame which the custom_rpy transform is defined relative to.
const Noise & AngularVelocityYNoise() const
Get the noise values related to the body-frame angular velocity around the Y-axis.
void SetLinearAccelerationYNoise(const Noise &_noise)
Set the noise values related to the body-frame linear acceleration on the Y-axis.
const Noise & AngularVelocityXNoise() const
Get the noise values related to the body-frame angular velocity on the X-axis.
The Noise class contains information about a noise model, such as a Gaussian distribution.
Definition: Noise.hh:48
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:95
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55
namespace for Simulation Description Format parser
Definition: Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:25