Skip to main content
Version: Leo Rover 1.8

How to Calibrate the IMU

tip

Since LeoOS 2.0 version you don't need to calibrate the IMU on the rover.

Prerequisites​

📄Connect to Rover AP
A step-by-step guide on how to connect your host device to the Leo Rover's built-in Wi-Fi access point using the default network credentials.
📄Connect via SSH
A guide on how to establish a secure shell (SSH) connection to a Leo Rover to gain remote terminal access using the default credentials.

No matter what board do you have on your rover, there may occur some problems with Internal Measure Unit - both integrated and external. The IMU readings may show the rover spinning in Z axis - which would seem as rover is rotating in place, even if the robot is not moving at all.

Running Calibration​

To resolve this problem, we have prepared a script for calibrating the IMU sensor, which will measure the offset causing the robot's drift and take it into account in provided data from the sensor.

To calibrate your IMU all you have to do is to connect to the rover via SSH, and execute the command:

rosrun leo_fw calibrate_imu
warning

Perform the calibration while the rover is not moving, and is placed on a flat ground in normal orientation (no tilt) to ensure the proper measurements.
Otherwise the imu won't be calibrated correctly.

The script has one optional argument which specifies how long the offset will be measured. It default to 10 seconds, so if you would like to measure it only 5 seconds, you can execute:

rosrun leo_fw calibrate_imu 5

When the script finishes, the offset is automatically saved on the rover and used to provide accurate measurements.