Skip to content

Conversation

@RyderCRD
Copy link
Contributor

@RyderCRD RyderCRD commented Apr 3, 2023

Reference issue

fix #550

What does this implement/fix?

rrt_star_reeds_shepp.py needs its own version of rewire(), which not only updates path_x , path_y, but also path_yaw when rewiring.
Before this pull request, it uses the rewire() in rrt_star.py, which only cares about path_x, and path_y, thus issue #550 might occur.

The range of phi in rrt_star_reeds_shepp.py is changed from (0, 0.99*math.pi) to (0.01*math.pi, 0.99*math.pi) for the sake of speed.

Additional information

Two tests are added into tests/test_rrt_star_reeds_shepp.py.

CheckList

  • Did you add an unittest for your new example or defect fix?
  • Did you add documents for your new example?
  • All CIs are green? (You can check it after submitting)

RyderCRD added 3 commits April 4, 2023 00:55
Add step_size attribute to RRTStarReedsShepp, and a method set_random_seed() to set the random seed, with two test cases.
Update rewire() of rrt_star.py to fix AtsushiSakai#550.  Since the old version didn't assign path_yaw of edge_node to near_node, the old rewire() doesn't fit rrt_star_reeds_shepp.py
Limit the range of phi for the sake of planning speed, and simplify the the calculation process in straight_left_straight().
@RyderCRD RyderCRD changed the title Fix the rewire of rrt* path planning using reeds shepp curves (#550) Fix the rewire() of rrt* path planning (#550) Apr 4, 2023
RyderCRD added 3 commits April 5, 2023 21:21
Cost of edge_node is calculated in line 221, and self.node_list[i] is replaced to edge_node, so no need to update.
Copy link
Contributor Author

@RyderCRD RyderCRD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed.

@AtsushiSakai
Copy link
Owner

@RyderCRD LGTM. Thank you!!

@AtsushiSakai AtsushiSakai merged commit 80124f2 into AtsushiSakai:master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RRT* with reeds-sheep seems to produce illegal paths

2 participants