Initialize Occupancy Grid with Default Value?
이전 댓글 표시
Right now, this is what I have:
width = 50;
height = 50;
resolution = 1;
default = 0.25;
map = occupancyMap(width,height,resolution);
map.DefaultValue = default;
setOccupancy(map,default*(ones(map.GridSize)));
I initially expected Line 6 to change the default value, but I guess since the grid has already been initialized with the "default default value", this performs no change. Therefore, I need to force this change on Line 7.
Is there a way to set the default initially and saving that computation time?
What is the effect of Line 6 then? Since it is not reflected on the occupancy grid?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Mapping에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!