Improve the Controller (e.g., PD Controller): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 11: | Zeile 11: | ||
! # !! Name !! Description !! Pictures | ! # !! Name !! Description !! Pictures | ||
|- | |- | ||
| 1 || Main python libraries || These libraries are the root libraries of the JetRacer and must be available because other libraries will depend on them. || [[Datei:Python library.png|mini|Fig. 6: Python | | 1 || Main python libraries || These libraries are the root libraries of the JetRacer and must be available because other libraries will depend on them. || [[Datei:Python library.png|mini|Fig. 6: Python Libraries]] | ||
|- | |- | ||
| 2 || Library for Control and steering || Since we can not use MATLAB directly on the Jetracer, we can, however, call a python code to run in the background on Matlab || [[Datei:Controller library.png|mini|Fig. 7: Controller | | 2 || Library for Control and steering || Since we can not use MATLAB directly on the Jetracer, we can, however, call a python code to run in the background on Matlab || [[Datei:Controller library.png|mini|Fig. 7: Controller Library Files]] | ||
|- | |- | ||
| Zeile 25: | Zeile 25: | ||
=== [[Matlab]] === | === [[Matlab]] === | ||
After the above requirements are satisfied, we then proceed to call the library in the background as shown below: | After the above requirements are satisfied, we then proceed to call the library in the background as shown below: | ||
[[Datei:Image.png|mini|Fig. 9: Matlab | [[Datei:Image.png|mini|Fig. 9: Matlab Background Library Call]] | ||
=== [[Results]] === | === [[Results]] === | ||
zeigmess | zeigmess | ||
jtest etc | jtest etc | ||
Version vom 12. Juni 2025, 20:41 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.
Matlab
After the above requirements are satisfied, we then proceed to call the library in the background as shown below:

Results
zeigmess jtest etc


