colthoid fitting using trajectory();
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to generate reference trajecotries for a vehicle dynmaics controller.
I am using the trajcectory function to generate a path for my vehicle (with a constant velocity) and then i use the record function to generate samples for my vehicle velocities.
The problem I have is if I extract the angular velocity (or the angle) of my vehicle from the recordings, both samples have really high slopes (curvature) at the times where my vehicle passes the waypoints.
From my understanding of clothoids this should not happen, because they are used to avoid peaks in the time derivative of the angular acceleration while driving along a path with constant velocity.
I have attached a code sample to demo my problem.
Im am not sure if I am using these functions in the right way, or if they might not work as expected, so my questions are:
A) Am I placing the waypoints in a manner that prevents the trajectory function from fitting them smoothly?
B) Is the record feature not able to generate smooth samples?
C) Am I misunderstanding how clothoids work?
0 Commenti
Risposte (1)
Greg Dionne
il 26 Giu 2018
Modificato: Greg Dionne
il 26 Giu 2018
The trajectory generator uses a fast discrete solver to obtain a G2-continuous path, so some discontinuities (usu < 1 degree/meter) at the control points may be expected. Do you need greater fidelity than this?
In a pinch you can add additional control points in the expected direction of motion to control the curvature at the endpoints. See the tutorial on creating actor and vehicle paths for an example of how to do that in the "Defining Paths" section.
0 Commenti
Vedere anche
Categorie
Scopri di più su Automated Driving Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!