Improve the Controller (e.g., PD Controller): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 6: | Zeile 6: | ||
#Install pygame library on jetson nano with sudo pip install pygame | #Install pygame library on jetson nano with sudo pip install pygame | ||
#Create a python file that will import pygame, import NvidiaRacecar, read and write steering values. | #Create a python file that will import pygame, import NvidiaRacecar, read and write steering values. | ||
[[Datei:Python library.png|mini]] | {| class="wikitable" | ||
[[Datei:Controller library.png|mini]] | |+ Tabelle 4: Python Library Setup | ||
|- | |||
! # !! Name !! Description !! Pictures | |||
|- | |||
| 1 || Python Library || || [[Datei:Python library.png|mini]] | |||
|- | |||
| 2 || Created Control library || || [[Datei:Controller library.png|mini]] | |||
|- | |||
| 3 || Library || || | |||
[[Datei:Jtest.png|mini]] | [[Datei:Jtest.png|mini]] | ||
|} | |||
=== [[Matlab]] === | === [[Matlab]] === | ||
Version vom 1. Juni 2025, 13:07 Uhr
Improve the Controller
As mentioned in the previous chapter, instead of recreating the Python library with MATLAB script, we create a Python library that will run all necessary libraries needed to operate the JetRacer, then run it with MATLAB in the background.
Jetracer
- Requirements:
- Jupyter libraries containing jetracer.nvidia_racecar must be working
- Install pygame library on jetson nano with sudo pip install pygame
- Create a python file that will import pygame, import NvidiaRacecar, read and write steering values.
| # | Name | Description | Pictures |
|---|---|---|---|
| 1 | Python Library |
| |
| 2 | Created Control library | ||
| 3 | Library |
|
Matlab
After the above requirements are satisfied, we then proceed to call the library in the background as shown below:

Results
zeigmess jtest etc


