필터 지우기
필터 지우기

How to create a 3D occupancy map?

조회 수: 8 (최근 30일)
Shubham Kalpande
Shubham Kalpande 2021년 2월 21일
편집: Shubham Kalpande 2021년 3월 5일
I want to create a 3D occupancy map to model a region where I want to test some path planning algorithms for an UAV. The matlab function requires some points and sensor pose to create the map, The example is poorly written and I am not able to understand how can I control the height, width and breadth of the buildings. Can some please detail the process of map creation perhaps for the following figure from MATLAB example? It shows various building with varying dimensions, I want to know how can I create this data file.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 21일
편집: KALYAN ACHARJYA 2021년 2월 21일
This way, through surf plot?: I have shown with random test data. You may adjust the colors of the pattern/area
data=zeros(500,500);
data(100:300,100:300)=10;
data(300:400,300:400)=20;
fig=surf(data);
set(fig,'LineStyle','none');
axis tight;
Note: Theare is a function in Matlab as occupancymap
  댓글 수: 3
Vedant Dubey
Vedant Dubey 2021년 2월 22일
Hello Shubham.
You can use the file attached 'Buildings.m' to generate a similar scenario to the given example. The generated occupancy map does not check for intersecting buildings. You can add additional logic to do so, create a larger map or simply run the file until the random scene generated is more in line with what you are looking for.
Shubham Kalpande
Shubham Kalpande 2021년 3월 5일
편집: Shubham Kalpande 2021년 3월 5일
Thank you, Vedant.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scenario Simulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by