Diskussion:JetRacer: Spurführung mit künstlicher Intelligenz: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
(11 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 38: | Zeile 38: | ||
* Link Jetracer to MATLAB | * Link Jetracer to MATLAB | ||
* Install prerequisite for the jetracer like: CUDA, Cudnn, TensorRT | * Install and check prerequisite for the jetracer like: CUDA, Cudnn, TensorRT | ||
* programme Jetracer using MATLAB: | * Reinstall CUDA 10.2, CuDNN and SDL1.2 Paths | ||
* Attempt to programme Jetracer using MATLAB: | |||
#Image recognition | #Image recognition | ||
#Line following | #Line following | ||
Zeile 45: | Zeile 46: | ||
|| | || | ||
*Document Errors | *Document Errors + Solutions (E.g. Incompatible GPU, Missing Environment Variables paths like: CUDA_PATH and NVIDIA_CUDNN) | ||
*Speak with other student working on Autonome Spurführung mit einem JetRacer ROS AI Robot | *Speak with other student working on Autonome Spurführung mit einem JetRacer ROS AI Robot | ||
*Update the Professor by Email for Feedback | *Update the Professor by Email for Feedback | ||
Zeile 55: | Zeile 56: | ||
* Evaluation of the advantages and disadvantages of the programming environments. | * Evaluation of the advantages and disadvantages of the programming environments. | ||
|| | || | ||
* Successfully install and run ROS on jetracer | |||
* Recreate Alexnet Example on ROS image classification with GPU coder | |||
|- | |- | ||
| 7 || 12.08.2024 || | | 7 || 12.08.2024 || | ||
* Easy start without ROS: Run Image detection on GPU | * Easy start without ROS: Run Image detection on GPU with Professor's assistance | ||
*[https://de.mathworks.com/videos/deploying-a-deep-learning-network-on-nvidia-jetson-using-gpu-coder-1506357891312.html Deploying a Deep Learning Network on NVIDIA Jetson Using GPU Coder] | *[https://de.mathworks.com/videos/deploying-a-deep-learning-network-on-nvidia-jetson-using-gpu-coder-1506357891312.html Deploying a Deep Learning Network on NVIDIA Jetson Using GPU Coder] | ||
* [https://de.mathworks.com/matlabcentral/fileexchange/64534-getting-started-with-matlab-simulink-and-ros?s_tid=ta_fx_results Getting Started with MATLAB, Simulink, and ROS] | * [https://de.mathworks.com/matlabcentral/fileexchange/64534-getting-started-with-matlab-simulink-and-ros?s_tid=ta_fx_results Getting Started with MATLAB, Simulink, and ROS] | ||
Zeile 69: | Zeile 71: | ||
| 9 || 26.08.2024 || | | 9 || 26.08.2024 || | ||
* Programme Jetracer using | * Programme and teach Jetracer using Matlab and Simulink | ||
* | * Understand the Libraries used in JupytrLab | ||
|| | || | ||
* Working on previous Task | |||
|- | |- | ||
| 10 || 04.09.2024 || | | 10 || 04.09.2024 || | ||
Zeile 84: | Zeile 86: | ||
*Goal: the car should drive autonomously several laps in the right lane as fast as possible. | *Goal: the car should drive autonomously several laps in the right lane as fast as possible. | ||
|| | || | ||
* Student choosed a name fot the bachelorthesis. | |||
* Provide debug option to adjust speed(Throttle) of jetracer to a maximum (e. g. 1 m/s) only on matlab. | |||
* | |||
|- | |- | ||
| 11 || 09.09.2024 || | | 11 || 09.09.2024 - 13.09.2024 || | ||
* Student did not attend the meeting. | * Student did not attend the meeting. | ||
* Please cancle the meeting if you are not coming. | * Please cancle the meeting if you are not coming. | ||
* Drive the JetRacer in the right lane counterclockwise with the gamepad controller. Limit the speed via Software to a maximum (e. g. 1 m/s) wit Professor's assistance. | |||
* Take a video while driving a lap with MATLAB® using a MATLAB®-script. | |||
* Load the pretrained NN. | |||
|| | |||
* Successfully Drive the JetRacer in the right lane counterclockwise with the gamepad controller on matlab. Hard code the speed Limit via Software to a maximum (e. g. 1 m/s). | |||
* Successfully took a video while driving a lap with MATLAB<sup>®</sup> using a MATLAB<sup>®</sup>-script. | |||
* Load the pretrained NN. | |||
* Attempt to train the pretrained NN with MATLAB® with a MATLAB<sup>®</sup>-App (GUI) by clicking the desired path in the images. | |||
* Documented all my work on wiki platform | |||
|- | |||
| 12 || 16.09.2024 - 20.09.2024 || | |||
* Use classic lane tracking algorithms to teach the NN automatically. | |||
*Write a PD-contoller that uses the NN to drive in the right lane. Program this in MATLAB® and let it run on the JetRacer-GPU using GPU Coder. | |||
*Goal: the car should drive autonomously several laps in the right lane as fast as possible. | |||
|| | || | ||
<span style="color:red">Dokumentieren Sie bitte hier Ihren Fortschritt.</span> | <span style="color:red">Dokumentieren Sie bitte hier Ihren Fortschritt.</span> | ||
| | |- | ||
| 13 || 21.09.2024 || | |||
Student did not appear to the weekly appointment. | |||
|| | |||
<span style="color:red">Please document your work progress.</span> | |||
|- | |||
| 13 || 28.09.2024 || | |||
Student did not appear to the weekly appointment. | |||
|| | |||
<span style="color:red">Please document your work progress.</span> | |||
|} | |} | ||
Zeile 159: | Zeile 185: | ||
<span style="color:red">Dokumentieren Sie bitte hier Ihren Fortschritt.</span> | <span style="color:red">Dokumentieren Sie bitte hier Ihren Fortschritt.</span> | ||
|- | |- | ||
| || Cuda 10.2 || || | | || Cuda 10.2 set path || | ||
|| | |||
|- | |||
| || dpkg: error processing package nvidia-l4t-bootloader || || | |||
https://forums.developer.nvidia.com/t/solution-dpkg-error-processing-package-nvidia-l4t-bootloader-configure/208627 | |||
```Code: | |||
sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/backup/ | |||
sudo mkdir /var/lib/dpkg/info/ | |||
``` | |||
Next update repos and force install . | |||
```Code: | |||
sudo apt-get update | |||
sudo apt-get install -f | |||
``` | |||
Move the new structure dpkg/info to old info | |||
```Code: | |||
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/backup/ | |||
``` | |||
Remove the new dpkg structure folder and back the old | |||
```Code: | |||
sudo rm -rf /var/lib/dpkg/info | |||
sudo mv /var/lib/dpkg/backup/ /var/lib/dpkg/info/ | |||
``` | |||
resources: https://elinux.org/Jetson/Installing_CUDA | |||
|- | |- | ||
| || Nvcc not Found || | | || Nvcc not Found || | ||
|| | || | ||
- **Edit `.bashrc`:** | |||
Since `vim` and `nano` are unavailable, use `vi` if it's installed: | |||
``Code: | |||
vi ~/.bashrc | |||
``` | |||
- **Clean Up Environment Variables:** | |||
Update the `.bashrc` file to remove duplicates and ensure only one set of `PATH` and `LD_LIBRARY_PATH` entries: | |||
```Code: | |||
# Add CUDA bin & library paths | |||
export PATH=/usr/local/cuda-10.2/bin:$PATH | |||
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:$LD_LIBRARY_PATH | |||
``` | |||
- **Save and Exit:** | |||
- In `vi`, press `i` to enter insert mode. | |||
- Make your changes. | |||
- Press `Esc`, then type `:wq` and press `Enter` to save and exit. | |||
- **Source `.bashrc`:** | |||
Code: | |||
source ~/.bashrc | |||
|- | |- | ||
|- | |- | ||
Zeile 174: | Zeile 261: | ||
|- | |- | ||
|- | |- | ||
| || SDL 1.2 installation || | | || SDL 1.2 installation || | ||
[[Datei:Screenshot (2).png|mini]] | |||
|| | |||
1. **`nvcc`**: Ensure CUDA is correctly installed and its path is added to your `.bashrc` file. | |||
2. **SDL 1.2**: Install the development libraries for SDL 1.2 on your system. You can typically do this with: | |||
```code: | |||
sudo apt-get install libsdl1.2-dev | |||
``` | |||
|- | |- | ||
| || No publick key(update error) || | |||
| || No publick key(update error) || || | The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC | ||
Reading package lists... Done | |||
W: GPG error: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC | |||
E: The repository 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is not signed. | |||
N: Updating from such a repository can't be done securely, and is therefore disabled by default. | |||
N: See apt-secure(8) manpage for repository creation and user configuration details. | |||
|| | |||
The error message indicates that the GPG key for the NVIDIA CUDA repository is missing. To resolve this, you can manually add the key: | |||
1. **Add the missing key**: | |||
```Code: | |||
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | |||
``` | |||
2. **Update the package list again**: | |||
```Code: | |||
sudo apt-get update | |||
``` | |||
This should fix the GPG error and allow you to update the repositories. | |||
|- | |- | ||
|} | |} |
Aktuelle Version vom 4. Oktober 2024, 08:20 Uhr
# | Termin | Planung für die Woche | Fortschritt |
---|---|---|---|
1 | 12.06.2024- 19.06.2024 |
|
|
2 | 20.06.2024-26.06.2024 |
|
|
3 | 26.06.2024 - 05.07.2024 |
|
|
4 | 05.07.2024 - 26.07.2024 |
|
|
6 | 29.07.2024 - |
|
|
7 | 12.08.2024 |
| |
8 | 19.08.2024 |
|
Dokumentieren Sie bitte hier Ihren Fortschritt. |
9 | 26.08.2024 |
|
|
10 | 04.09.2024 |
|
|
11 | 09.09.2024 - 13.09.2024 |
|
|
12 | 16.09.2024 - 20.09.2024 |
|
Dokumentieren Sie bitte hier Ihren Fortschritt. |
13 | 21.09.2024 |
Student did not appear to the weekly appointment. |
Please document your work progress. |
13 | 28.09.2024 |
Student did not appear to the weekly appointment. |
Please document your work progress. |
Errors and Solutions
# | Dates | Error Descriptions | Solutions |
---|---|---|---|
1 | 12.06.2024- 05.07.2024 |
|
Dokumentieren Sie bitte hier Ihren Fortschritt. |
* jetbot-043_nano-4gb-jp45.zip |
|
Dokumentieren Sie bitte hier Ihren Fortschritt. | |
* jetson-nano-jp461-sd-card-image.zip(Jetson-nano developer kit) |
| ||
* jetcard_nano-4gb-jp451.zip (Jetpack4.5.1) |
|
Dokumentieren Sie bitte hier Ihren Fortschritt.
| |
* jetrace.zip (Jetpack4.5) |
|
Dokumentieren Sie bitte hier Ihren Fortschritt. | |
2 | 08.07.2024 - 02.09.2024 |
|
Dokumentieren Sie bitte hier Ihren Fortschritt. |
Cuda 10.2 set path | |||
dpkg: error processing package nvidia-l4t-bootloader |
```Code: sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/backup/ sudo mkdir /var/lib/dpkg/info/ ``` Next update repos and force install . ```Code: sudo apt-get update sudo apt-get install -f ``` Move the new structure dpkg/info to old info ```Code: sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/backup/ ``` Remove the new dpkg structure folder and back the old ```Code: sudo rm -rf /var/lib/dpkg/info sudo mv /var/lib/dpkg/backup/ /var/lib/dpkg/info/ ``` resources: https://elinux.org/Jetson/Installing_CUDA | ||
Nvcc not Found |
- **Edit `.bashrc`:** Since `vim` and `nano` are unavailable, use `vi` if it's installed: ``Code: vi ~/.bashrc ``` - **Clean Up Environment Variables:** Update the `.bashrc` file to remove duplicates and ensure only one set of `PATH` and `LD_LIBRARY_PATH` entries: ```Code: # Add CUDA bin & library paths export PATH=/usr/local/cuda-10.2/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:$LD_LIBRARY_PATH ``` - **Save and Exit:** - In `vi`, press `i` to enter insert mode. - Make your changes. - Press `Esc`, then type `:wq` and press `Enter` to save and exit. - **Source `.bashrc`:** Code: source ~/.bashrc | ||
Install Cudnn |
Dokumentieren Sie bitte hier Ihren Fortschritt. | ||
SDL 1.2 installation |
1. **`nvcc`**: Ensure CUDA is correctly installed and its path is added to your `.bashrc` file. 2. **SDL 1.2**: Install the development libraries for SDL 1.2 on your system. You can typically do this with: ```code: sudo apt-get install libsdl1.2-dev ``` | ||
No publick key(update error) |
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC Reading package lists... Done W: GPG error: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC E: The repository 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. |
The error message indicates that the GPG key for the NVIDIA CUDA repository is missing. To resolve this, you can manually add the key: 1. **Add the missing key**: ```Code: sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub ``` 2. **Update the package list again**: ```Code: sudo apt-get update ``` This should fix the GPG error and allow you to update the repositories. |