In the following script, I have provided most detailed comments. Just to repeat again: the code is not of industrial quality, as it doesn't use proper localization. In other words, it only uses wheel odometry, and if wheels slip - and they will - the robot will navigate with errors. This problem will be fixed in the next tutorial.
10_charger_docking.py