現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
I want to use a Lateral Controller like Stanley or PID for my automated driving car with using Gps Coordinates.
4 ビュー (過去 30 日間)
古いコメントを表示
Ihsan
2023 年 3 月 31 日
I want to use a Lateral Controller for example Stanley or PID for my automated driving car. The Controller must able to correct lateral drive through steering. My inputs should be Gps coordinates from the car and Gps coordinates from my way points. I have seen some examples for lateral controller for automated driving but on these applications are being X Y coordinates. I want to apply it with Gps coordinates in real. Can someone help me please?
Thanks.
16 件のコメント
Sam Chak
2023 年 4 月 1 日
Find out (or derive) a set of equations that describes the lateral-directional motion of the car.
The GPS Coordinates shall be used in a path planning algorithm to produce the desired trajectory.
Then, will need see where to inject the reference trajectory into the equations, specifically the controller that needs to generate force required to drive the car.
Ihsan
2023 年 4 月 3 日
Thanks for your answer!
Do you have any idea, how i can produce a desired trajectory with GPS Coordinates?
Sam Chak
2023 年 4 月 3 日
A desired trajectory is a sequence of actions or movements to move from a starting point to a desired destination in a given environment or space, while avoiding obstacles or other locomotion constraints.
Finding a trajectory requires path planning techniques. This could be a simple trajectory from point A to point B, provided that the coordinates are available and there are no obstacles present.
What path planning techniques (on the Internet or textbooks) are you considering?
Ihsan
2023 年 4 月 3 日
I want to have a path with waypoints. The Car should follow the way points and reach the final destination. Should i give the waypoints individually as a matrix or smth like that?
Ihsan
2023 年 4 月 3 日
I found https://www.youtube.com/watch?v=Yse_YDpmsBM this example. But there are only (X, Y, degree) coordinates. I am getting the gps coordinates from the car and i thinks my way points must be in gps coordinates. Should i convert them to x y coordinates? But i don`t know how.
Sam Chak
2023 年 4 月 4 日
編集済み: Sam Chak
2023 年 4 月 4 日
In the video, Dr. Carlos Santacruz-Rosero used A* path planner to generate the trajectory. If you want to follow exactly, then look up the A* algorithm in Robotics textbooks or online materials. The trajectory is described in {x, y} coordinate frame.
If your mapping is in 2D and the dynamics of your car is described in {x, y} coordinate frame, then convert the GPS location (latitude, longitude) into (x, y) coordinates, as shown in Robotics textbooks or online materials. Search for the conversion formulas.
Also, find out the technical knowledge and engineering stuff in this book:
Ihsan
2023 年 4 月 4 日
The position infos, which i get from the car, is described in GPS-Coordinates. I can`t find any application path following with GPS-Coordinates .
Sam Chak
2023 年 4 月 4 日
Can you check your professor's note or textbook and show the conversion formula?
Ihsan
2023 年 4 月 4 日
I found the following formula:
x = R * cos(lat) * cos(lon)
y = R * cos(lat) * sin(lon)
z = R *sin(lat)
In that video is the path in 5 Columns described. For example the first row is :
1.75000 3 0 5 0.0833326505152669
If i convert i have x y z so 3 of them. What are the other 2 columns?
Ihsan
2023 年 4 月 5 日
I found this conversation latlon2local: Convert geographic coordinates to local Cartesian coordinates.
Do you think it is useful for my situation?
I am getting the Gps-Coordinates from my car but here in this command you must have an origin point.
Sam Chak
2023 年 4 月 5 日
Hi @Ihsan
I didn't watch the entire video. However, if the formulas are correct, then feed in the lan and lon as inputs and you will get the corresponding Cartesian corrdinates.
By the way, I don't have the Automated Driving Toolbox. From the desription of latlon2local() documentation, it should get the job done as expected. Have you tried it?
lat = 0.1;
lon = 0.3;
alt = 0.5;
origin = [42.3648, -71.0214, 10.0];
[xEast, yNorth] = latlon2local(lat, lon, alt, origin)
xEast = 6.0422e+06
yNorth = -1.3470e+06
Ihsan
2023 年 4 月 5 日
Firstly, I must load a GPS Route. But i don`t know how to create a Gps-Route data. Should i input all points in route manually?
Sam Chak
2023 年 4 月 5 日
What exactly is the GPS Route for? Why do you want to create the data instead of importing the data from the GPS device?
Ihsan
2023 年 4 月 5 日
GPS Route is for my ideal path. It will be compared with the GPS Data from the vehicle.
参考
カテゴリ
Help Center および File Exchange で Automated Driving Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)