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