필터 지우기
필터 지우기

how to plot grid mapping for robot path planning ?

조회 수: 4 (최근 30일)
dinesh tce
dinesh tce 2014년 7월 30일
댓글: Lokesh waran 2020년 4월 29일
i am doing my project in robot path planning,for that i am using matlab .its new to me. i just want to know how plot grids with full of rectangles.
  댓글 수: 3
dinesh tce
dinesh tce 2014년 8월 3일
just rectangles and sorry for mine delayed reply
engesraa
engesraa 2018년 1월 7일
i need a matlab code for horizontal and vertical lines , please

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

답변 (1개)

Sara
Sara 2014년 8월 4일
Adapt to your case the following script. I've colored the rectangles with facecolor, but you can eliminate that if you want just the contours.
clc
close all
clearvars
x = 0;
y = 15;
width = 12;
height = 23;
nrow = 5;
ncol = 3;
figure,hold on
for i = 1:nrow
yy = y + (i-1)*height;
for j = 1:ncol
xx = x + (j-1)*width;
rectangle('position',[xx,yy,width,height],'facecolor',rand(3,1))
end
end
  댓글 수: 3
Sara
Sara 2014년 8월 6일
I have no idea of how you do that specifically.
Lokesh waran
Lokesh waran 2020년 4월 29일
hello, I am working on this same project. I just have one doubt. Should i make this rectangle grid to make binary occupancy map? or just by using the binary occupancy function can i make O's and 1's? thanks in advance.

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

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by