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

Ahmed Hassan
Ahmed Hassan 2021년 3월 22일
¿Has encontrado su respuesta?
Oscar Loyola
Oscar Loyola 2021년 3월 22일
No, but I still working in doing an algorithm with the library of reinforcement learning in Matlab.
Ahmed Hassan
Ahmed Hassan 2021년 3월 23일
Gracias!
Estoy teniendo el mismo problema.
Ahmed Hassan
Ahmed Hassan 2021년 3월 29일
no molestes Mumraiz
Tambien tengo el mismo problema, D* si funciona pero A* no. Alguien sabe como solucionarlo?

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

답변 (1개)

karim botros
karim botros 2022년 1월 24일
편집: karim botros 2022년 1월 24일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Robotics에 대해 자세히 알아보기

질문:

2020년 6월 1일

편집:

2022년 1월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by