How I can plot a vehicle's velocity at different points on a map

조회 수: 1 (최근 30일)
Ichchhit Kumar
Ichchhit Kumar 2018년 12월 15일
댓글: Mark Sherstan 2018년 12월 17일
I am working on driverless car. I have rosbag data. Now I have to plot imu and Gps data on a given map. How can I do that. Such that at every point on map I have knowledge of at what point what was yaw angle, what was velocity, acceleration etc.

답변 (1개)

Mark Sherstan
Mark Sherstan 2018년 12월 15일
I would use the mapping toolbox or this function and you can pretty much plot like normal. Everything is just converted into lat and long points. For example your code might look something like this:
% Use map toolbox to plot region of interest and coastlines
figure
worldmap('Canada')
c = load('coast.mat');
plotm(c.lat,c.long,'k')
% Combine lat, long, and magnitude and rearrange by magnitude
latLongMag = [latCoord; longCoord; magValueNum]';
latLongMag = sortrows(latLongMag,3);
% Create a color map for the data points (blue low red high)
colors = jet(length(latLongMag));
% Plot the results
scatterm(latLongMag(:,1),latLongMag(:,2),20,colors)
  댓글 수: 7
Ichchhit Kumar
Ichchhit Kumar 2018년 12월 17일
Thank you for your response sir. I went through the link but, In this source link which you provided, to use the world map they are using geoshow('landareas.shp')
How to convert my map image which is in jpg to shp. Also, how to construct the geodata structure in shp format like this which is uploaded here
S = shaperead('concord_roads.shp')

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

카테고리

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