How to use Lateral Controller (Stanley,Pure Pursuit etc.) with GPS Coordinates?
6 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 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!