Path planning using plannerAStarGrid in meters

조회 수: 2 (최근 30일)
Michal Mihálik
Michal Mihálik 2021년 10월 26일
편집: Ankur Srivastava 2021년 12월 7일
Is it possible to path planning using the plannerAStarGrid function in meters? Because how to create a planner is by default in rows and columns even if the map was specified in meters. Or is it possible to do some conversion of these rows and columns to meters?

채택된 답변

Ankur Srivastava
Ankur Srivastava 2021년 12월 7일
편집: Ankur Srivastava 2021년 12월 7일
% Creating a blank map
map = binaryOccupancyMap(10,10);
% Creating plannerAStarGrid object
astar = plannerAStarGrid(map);
% Planning in grid frame i.e. row/column
pathRC = astar.plan([1 1],[4,9]);
% Planning in world fram i.e. XY plane in meters
path = astar.plan([1.5 1.5],[4.5 9],'world')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Motion Planning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by