CCNYRoboticsLab / imu_tools

ROS tools for IMU devices
Other
913 stars 428 forks source link

ROS2 Madgwick Mag Bias Range #118

Closed moormob closed 4 years ago

moormob commented 4 years ago

Madgwick for Eloquent does not allow typical values for magnetic bias (accepted values -10 to 10 with 0.01 resolution), however magnetic field msg uses Tesla units with typical values 1E-5. http://docs.ros.org/api/sensor_msgs/html/msg/MagneticField.html

Reason seems to be here: https://github.com/ccny-ros-pkg/imu_tools/blob/835cb4f718d43612b46bb9e89cb2ea1f823236b5/imu_filter_madgwick/src/imu_filter_ros.cpp#L107

Error message what(): parameter 'mag_bias_x' could not be set: Parameter {mag_bias_x} doesn't comply with floating point range.

mintar commented 4 years ago

Fixed by #122.