Borrar filtros
Borrar filtros

astar Peter Corke fail library

3 visualizaciones (últimos 30 días)
Oscar Loyola
Oscar Loyola el 1 de Jun. de 2020
Editada: karim botros el 24 de En. de 2022
Hello!, I stay working with the Peter Corke library for robotics and searching methodos to navigate when try to work with the example the next trouble happend.
'path' is not an accessible method of base class 'Navigation'.
Error in Astar/path (line 312)
path@Navigation(as, start);
Error in aestrella (line 8)
as.path(start); % plan solution path start-to-goal, animate
I search in the library, but the method exist if I change in the code 'path' to 'query' the algoritms don't have troubles but isn't make the calculus.
the code example is the next:
load map1 % load map
goal = [50;30];
start=[20;10];
as = Astar(map); % create Navigation object
as.plan(goal,2,3,0); % setup costmap for specified goal;
% standard D* algorithm w/ 2 objectives
% and 3 costmap layers
as.path(start); % plan solution path start-to-goal, animate
P = as.path(start); % plan solution path start-to-goal, return
% path
Can anyone help me?
  6 comentarios
Ahmed Hassan
Ahmed Hassan el 29 de Mzo. de 2021
no molestes Mumraiz
Jose de Jesus Hernandez Barragan
Jose de Jesus Hernandez Barragan el 12 de Jul. de 2021
Tambien tengo el mismo problema, D* si funciona pero A* no. Alguien sabe como solucionarlo?

Iniciar sesión para comentar.

Respuestas (1)

karim botros
karim botros el 24 de En. de 2022
Editada: karim botros el 24 de En. de 2022
Try 'query' instead of 'path' as a subclass of navigation.
load map1 % load map
goal = [50;30];
start=[20;10];
as = Astar(map); % create Navigation object
as.plan(goal,2,3,0); % setup costmap for specified goal;
% standard D* algorithm w/ 2 objectives
% and 3 costmap layers
as.path(start); % plan solution path start-to-goal, animate
P = as.path(start); % plan solution path start-to-goal, return
% path

Categorías

Más información sobre Robotics System Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by