This will show you how to calibrate or test the calibration of a TurtleBot which is highly recommended when running any navigation based application. This is only necessary if you have a Create base. The Kobuki comes with a factory calibrated gyro.
Note: Determine which gyro your TurtleBot is using, TurtleBots made by different manufacturers have gyros with different measurement rates. You will need to look at the small chip on the right side of the turtlebot power/sensor board and find its part number (example). Some common ones are:
Chip Setting ADXRS613 150 ADXRS652 250
This link may help: http://www.alldatasheet.com/view.jsp?Searchword=ADXRS6
Set the gyro_measurement_range value before you run calibration by using dynamic_reconfigure or editing the configuration file as explained in the results section below.
First position TurtleBot at the center of a long straight wall (at least 2 meters long), facing towards the wall, at about 30 cm away from the wall.
This assumes you have already started the robot
Now ssh (ssh help) into the TurtleBot and run the calibration routine:
roslaunch turtlebot_calibration calibrate.launch
Turtlebot will perform a number of calibration spins. When it finishes, you’ll see a print on the screen like this:
[INFO] [WallTime: 1299286750.821002] Multiply the 'turtlebot_node/gyro_scale_correction' parameter with 1.002262
[INFO] [WallTime: 1299286750.822427] Multiply the 'turtlebot_node/odom_angular_scale_correction' parameter with 1.000263
The calibration routine will output 2 numbers. The correction for the gyro and the correction for the odometry. The values are factors to multiply with the current parameters to get the best results (see also this QA and this QA).
After running the calibration set the parameters to the old value multiplied by the correction.
The two parameters are:
For a single run you can set the parameters using dynamic_reconfigure:
rosrun dynamic_reconfigure reconfigure_gui
Then select the turtlebot_node and set the parameters. Return to the calibration step and repeat the process until both multipliers are close to 1.
Once both correction parameters have converged to stable values, edit the turtlebot.launch file to use these parameters in the future.
Comments loading please wait.
Unfortunately if this is an https site comments will not load. Please change to use http for comments to load. in the future we plan to support https comments too.