Follow these examples to get started with JetRacer
Ensure JetRacer is connected to WiFi and you've note the IP address as in the software setup
In this example we'll show how to control JetRacer programatically from a web browser.
-
Navigate to
http://<jetson_ip_address>:8888
-
Sign in with the default password
jetson
-
Browse to the folder
~/jetracer/notebooks
in the Jupyter Lab file browser -
Run through the notebook
basic_motion.ipynb
-
Navigate to
http://<jetson_ip_address>:8888
-
Sign in with the default password
jetson
-
Browse to the folder
~/jetracer/notebooks
in the Jupyter Lab file browser -
Open the notebook
interactive_regression.ipynb
You may want to use
5W
mode to prevent the Jetson Nano from drawing to much current and shutting down. Try opening a terminal and enteringsudo nvpmodel -m1
.
-
In the cell Task Definition set
TASK = 'road_following'
to set the task name -
Also set
CATEGORIES = ['apex']
to set the class names of the xy target category -
Execute all of the remaining cells
-
Place the car in different positions, offsets and orientations along the track
-
Imagine the ideal path the car would follow in these positions overlaid on the camera feed
-
Click on the live camera feed as far along that ideal path as possible, such that the robot would not exit the track or collide with an object
-
Repeat this many times (say 50 to start)
-
Train the model for several epochs (say 10 to start) and see how the model performs
-
Iterate! Try training a model, visualize the output in the live demo, find scenarios where the model is inaccurate and add data for those points, train again...
-
When you want to demo the model, save it to the path
road_following_model.pth
and restart theinteractive_regression.ipynb
notebook
- Open and follow the notebook
road_following.ipynb