DonkeyCar for JetRacer ROS Tutorial V: Collect Data
From Waveshare Wiki
DonkeyCar for JetRacer ROS Tutorial
- DonkeyCar for JetRacer ROS Tutorial I: Install Jetson Nano
- DonkeyCar for JetRacer ROS Tutorial II: Setup Linux PC
- DonkeyCar for JetRacer ROS Tutorial III: Web Control
- DonkeyCar for JetRacer ROS Tutorial IV: Joystick Control
- DonkeyCar for JetRacer ROS Tutorial V: Collect Data
- DonkeyCar for JetRacer ROS Tutorial VI: Training Data
- DonkeyCar for JetRacer ROS Tutorial VII: Autonomous Driving
Collect Data
In order to ensure the data collection, it is recommended to control the joystick manually. Enter the virtual environment and run the following command to enable the program to collect data.
cd ~/mycar python manage.py drive --js
- Practice driving around the track a few times. Make sure you can drive 10 laps correctly without going off the track.
- Run the following command to clear the previously useless data.
rm -r ~/mycar/data/*
- Please restart the python mange.py process to create a new tub session. Press Start Recording if using a network controller. The joystick will automatically record using any non-zero throttle.
- If you crash or run off the track, stop the car immediately to stop the recording. Press the X key to delete the last 5 seconds of the recording.
- After collecting 10-20 laps of good data (5-20k images), you can stop the car by pressing Ctrl+C to exit the program.
- The data you collect is located in the data folder.