26 #ifndef __UUV_MAGNETOMETER_ROS_PLUGIN_HH__ 27 #define __UUV_MAGNETOMETER_ROS_PLUGIN_HH__ 29 #include "SensorMagnetic.pb.h" 30 #include <gazebo/gazebo.hh> 33 #include <sensor_msgs/MagneticField.h> 65 public:
virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf);
68 protected:
virtual bool OnUpdate(
const common::UpdateInfo& _info);
83 protected: sensor_msgs::MagneticField
rosMsg;
87 #endif // __UUV_MAGNETOMETER_ROS_PLUGIN_HH__ MagnetometerParameters parameters
Magnetometer configuration parameters:
ignition::math::Vector3d measMagneticField
Last measurement of magnetic field.
double declination
Declination of reference earth magnetic field [rad].
double heading
Heading angle of reference earth magnetic field [rad].
double intensity
Intensity of reference earth magnetic field [muT].
ignition::math::Vector3d turnOnBias
Constant turn-on bias [muT].
sensor_msgs::MagneticField rosMsg
ROS message.
double noiseZ
Discrete-time standard dev. of output noise in z-axis [muT].
ignition::math::Vector3d magneticFieldWorld
Reference magnetic field in world frame:
double inclination
Inclination of reference earth magnetic field [rad].
double turnOnBias
Standard deviation of constant systematic offset of measurements [muT].
double noiseXY
Discrete-time standard dev. of output noise in xy-axis [muT].