필터 지우기
필터 지우기

How to use Lateral Controller (Stanley,Pure Pursuit etc.) with GPS Coordinates?

조회 수: 4 (최근 30일)
Ihsan
Ihsan 2023년 4월 6일
답변: Sarthak 2023년 4월 21일
Hi everyone,
i am struggling with following issue for a long time. So please help me.
I want to use Lateral Controller in Simulink but i don`t have X Y Theta Coordinates as Input rather GPS coordinates (Latitude, Longitude). Can someone help me, how i can use this controller with this format?
Thanks a lot.

답변 (1개)

Sarthak
Sarthak 2023년 4월 21일
Hi Ihsan,
As per my understanding, lateral controllers typically operate in Cartesian Coordinates. You can convert your geographic coordinates to cartesian coordinates using
X = R * cos(latitude) * cos(longitude)
Y = R * cos(latitude) * sin(longitude)
You can also consider using the latlon2local function to achieve the same. Attaching a documentation link for your reference.

카테고리

Help CenterFile Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by