Why RRT planner doesn't reach the goal state?

조회 수: 3 (최근 30일)
Kseniya Kalita
Kseniya Kalita 2020년 7월 6일
댓글: Kseniya Kalita 2020년 7월 7일
Hello everyone,
It is about motion planning using RRT algorithm.
There are start and goal positions
start = [0.5, 0.5 0];
goal = [2.5, 0.2, 0];
could you please explain me why the red line doesn't reach the goal state exactly?
If to run programm in Matlab in SoInInfo it is indicated that the plan is found.

채택된 답변

Cam Salzberger
Cam Salzberger 2020년 7월 6일
Hello Kseniya,
The plannerRRTStar class has a GoalReachedFcn that checks if the state of one of the RRT nodes is sufficiently close to the goal to call it "complete". There needs to be some level of tolerance, since in the continuous state space, the robot will never exactly reach the goal. The default GoalReachedFcn is nav.algs.checkIfGoalIsReached, which uses a tolerance of 0.5 meters, and the chart shows the robot reaching within that tolerance.
If you want to use a more precise GoalReachedFcn, you can easily implement your own. The code in nav.algs.checkIfGoalIsReached is very simple, so it'd be easy to copy it and modify the tolerance distance to be smaller.
-Cam
  댓글 수: 1
Kseniya Kalita
Kseniya Kalita 2020년 7월 7일
Hello Sam,
I am really grateful for your understanding and fast answer. I am very new for robotics related topics, but with your answer now i understand it better, thank you so much!
Kseniya.

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

추가 답변 (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