필터 지우기
필터 지우기

Way Points and Gps Coordinates for driving in Simulink

조회 수: 6 (최근 30일)
Ihsan
Ihsan 2023년 1월 12일
댓글: Ihsan 2023년 4월 4일
I want to produce a waypoints concept from Gps coordinates in Simulink, so that the car follows the waypoints. Can someone please help me?
  댓글 수: 2
Nikhilesh
Nikhilesh 2023년 3월 2일
Are you talking about " Driving Scenario Designer". Design driving scenarios, configure sensors, and generate synthetic data - MATLAB (mathworks.com). Can you please elborate what do you mean by Waypoint concept. So that i can help you better.
Ihsan
Ihsan 2023년 3월 2일
Yes, i tried there to get coordinates of way points in Gps-Format, but it didn`t work. Do you have any Idea how i can that? It doesnt have to be on "Driving Scenario Designer". It can also be in other way, i mean the way points in Gps-Coordinates. Thanks a lot.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sakshay
Sakshay 2023년 3월 16일
Hello Ihsan,
As per my understanding, you want to retrieve coordinates in GPS Format.
For the same, you can use the function "local2latlon" which helps you convert local cartesian coordinates to geographic coordinates. For example,
% Establish an anchor point in the geographic coordinate system.
origin = [42.3648, -71.0214, 10.0];
% Generate local route in Cartesian coordinates, x, y, and z.
z = zeros(1,101);
x = 0:1000:100000;
y = x;
% Convert the local route coordinates to geographic coordinates, latitude and longitude.
[lat,lon] = local2latlon(x,y,z,origin);
% Visualize the route on a map.
zoomLevel = 12;
player = geoplayer(lat(1),lon(1),zoomLevel);
plotRoute(player,lat,lon);
For more information, you can refer to the following documentation:
  댓글 수: 1
Ihsan
Ihsan 2023년 4월 4일
Hi Sakshay,
thanks for your answer. But i want to convert GPS Format to cartesian coordinates.

댓글을 달려면 로그인하십시오.

카테고리

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