Skip to content

Faster first solutions and small fixes for G-RRT* - #127

Merged
claytonwramsey merged 2 commits into
KavrakiLab:mainfrom
mlsdpk:grrtstar-perf-fixes
Nov 24, 2026
Merged

claytonwramsey merged 2 commits into
KavrakiLab:mainfrom
mlsdpk:grrtstar-perf-fixes

Conversation

@mlsdpk

@mlsdpk mlsdpk commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Hey guys, a few follow-ups to G-RRT* from #95. Everything is in grrtstar.hh, and the algorithm and its default settings stay the same.

  • Allocate as the trees grow. solve() used to zero-fill six max_samples arrays on every call (about 42 MB with the Python default of 10^6), which often took longer than the planning itself. Those arrays now grow with the trees, so the first solution shows up much sooner.
  • Try the straight line first. Like RRT-Connect, it now returns the straight line to the nearest goal when that motion is valid.
  • Multiple goals. Pruning now works with several goals. Informed sampling still needs a single goal, as in AORRTC. I also ran some MotionBenchMaker problems with a couple of extra goals each, and every path came back valid.
  • Other small fixes. It now keeps the connections between the two trees and re-reads their cost after a rewire, as the OMPL version does, so a rewire that makes an existing connection cheaper is no longer missed. Parent selection also sorts only the neighbours that can improve on the current parent.

I ran it against RRT-Connect, AORRTC, FCIT* and the existing G-RRT* of VAMP on every MotionBenchMaker problem for Panda, UR5 and Fetch and on a subset for Baxter. The first solution now comes in about 0.1 ms instead of about 4 ms on Panda and UR5, and convergence stays the same or gets better on every robot.

summary

Here are a few of its solutions, from easier to harder problems. Each panel plays the first solution and then the best one within the time budget, both after simplification.

showcase

A few more things.

@claytonwramsey

Copy link
Copy Markdown
Member

Awesome, thank you! I'll see if I can get this reviewed today.

@claytonwramsey claytonwramsey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good work! My only request is that you can now add yourself to the README and bibliography.

This repository now has a bunch of papers in it too... at some point in the future it might be wise to start factoring citations out into a different file, or to their relevant spot in the source code.

@mlsdpk
mlsdpk force-pushed the grrtstar-perf-fixes branch from 3a2e3c2 to efeb78a Compare November 24, 2026 20:29
@mlsdpk

mlsdpk commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I added G-RRT* to the README and the bibliography, and also updated the AORRTC citation to the published RA-L issue. Looks like format checking is failing but I think the failure is from main.

@claytonwramsey
claytonwramsey merged commit 7a5052d into KavrakiLab:main Nov 24, 2026
13 of 15 checks passed
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.

2 participants