4. Robot calibration

Note: The parameters of the product have been calibrated before leaving the factory, so generally no calibration is required. If you feel that the control deviation of the robot is large, you need to calibrate [imu], [linear speed], and [angular speed]; when calibrating, put the robot in place in advance and do not move the robot.

4.1. imu calibration

NAVROBO has already calibrated the imu before leaving the factory, so users do not need to calibrate. The following tutorial refers to the program that should be started if imu calibration is required.

4.1.1. Calibration steps

Note: When calibrating, make sure the robot is stationary.

1) Startup

Stop the automatic chassis service

Startup

As shown in the figure below, press Enter to calibrate the data in the X+, X-, Y+, Y-, Z+, and Z- directions in sequence. After the calibration is completed, it will be automatically saved in the specified folder.

image-20240618115734503

When leaving the factory, the calibration data is saved in,

4.1.2, use the calibrated imu data

The above command is to use the calibrated imu data when starting the chassis driver.

4.2, Linear speed calibration

4.2.1, Preparation

1), Use a ruler to measure a distance of 1 meter and mark it.

2), Put the car at the starting point.

Note: To start control, you need to first turn the SWB button to the upper gear position (control command mode) to release the remote control

image-20240626150400610

4.2.2, Start

1), Terminal input

image-20240618172955662

2) Click the right square of [start_test] and start moving [test_distance]. At this time, observe whether the car actually moves [test_distance]. If not, adjust the parameter [odom_linear_scale_correction] and put the car back to the starting point to continue testing.

image-20240618173046375

Note: The car starts by calibrating the linear speed in the X-axis direction by default. After switching the direction in [direction], click [start_test] to start calibrating the linear speed in the Y-axis.

This type of chassis car does not need to calibrate the Y-axis direction! !

Remember the value of [odom_linear_scale_correction] after the test.

2), calibrate_linear.py program flow chart

image-20220303191939643

4.3, Angular velocity calibration

4.3.1, Preparation

1), Put the car in a position where it is easy to rotate the angles.

4.3.2, Startup

1), Terminal input

image-20240618173229304

2), Click the right square of [start_test] and start moving [test_angle] distance. At this time, observe whether the car actually rotates [test_angle]. If not, adjust the parameter [odom_angule_scale_correction] and put the car back to the starting point to continue testing.

image-20240618175909254

After the test, remember the value of [odom_angule_scale_correction].

3), calibrate_angular.py program flow chart

image-20220303192636410