- Please download the JetRacer image through this link:https://drive.google.com/file/d/1bgCAUJ9m16g5FGuYgKy3WmGI-pGjPXN0/view
- Prepare a SD card (min 32GB) and flash the image to the SD card by Etcher
- Insert to Jetson Nano and power it up.
Please do not type sudo apt-get upgrade into terminal otherwise the camera cannot open and you may need to reflash the image again
Please connect to a display and connect jetson nano to a network. Afterward, the OLED on JetRacer should be able to display the ip address of itself. If yes, you can contine the following step.
-
Open Jupyter notebook with your ip address through browser (e.g. 192.168.0.134:8888)
-
Configure power mode of Jetson Nano
$ sudo nvpmodel -m1
$ sudo nvpmodel -q
The response of nano should be MODE : 5W
- Open
interactive_regression.ipynb
and click the cell sequentially - After click all the cell, the view of the notebook will become like that
- Open
teleoperation.ipynb
to control the car and move it around the track - Keep clicking on the centre of the track on the left image and move the car via controller to different place to get the pictures
- Set epochs to 10 when collect enough data
- Click evaluate to view the model result and click save model button to save it
- Two example code are offered for reference, please refer your own situation to change PID parameter
follower_0.17_pwm.py
for having car.throttle = 0.17 and the setting will shown below
follower_0.18_pwm.py
for having car.throttle = 0.18 and the setting will shown below
- The JetRacer Pro can implement with deep reinforcement learning, please refer to https://github.com/masato-ka/airc-rl-agent