이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
I want to use a Lateral Controller like Stanley or PID for my automated driving car with using Gps Coordinates.
조회 수: 2 (최근 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1344539/image.jpeg)
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!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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 (한국어)