フィルターのクリア

Why is the attribute 'DiagonalSearch' in plannerAStarGrid unusable? What is the code for the extension method of sub nodes in plannerAStarGrid? I want to modify the extension

4 ビュー (過去 30 日間)
%Plan Obstacle-Free Path in Grid Map Using A-Star Path Planner
%Plan the shortest collision-free path through an obstacle grid map using the A* path planning algorithm.
%Generate a binaryOccupancyMap object with randomly scattered obstacles using the mapClutter function.
rng('default');
map = mapClutter;
%Use the map to create a plannerAStarGrid object.
planner = plannerAStarGrid(map,"DiagonalSearch",'on');
%Define the start and goal points.
start = [2 3];
goal = [248 248];
%Plan a path from the start point to the goal point.
plan(planner,start,goal);
%Visualize the path and the explored nodes using the show object function.
show(planner)
  5 件のコメント
Walter Roberson
Walter Roberson 2023 年 5 月 23 日
Which MATLAB version are you using?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMotion Planning についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by