utility to calibrate the magnetometer of an imu using ros