Repository navigation
feat(planner): repeatable plans: more IK seeds, reseed, graph fallback - #74
Merged
Merged
Conversation
Four planner keys, all off by default (cuRobo's own behaviour): - num_ik_seeds: IK ranks its solutions nearest the start first, but with cuRobo's 32 seeds it often misses the nearest one, so one request lands on different goal configurations from call to call. 512 find it reliably. - num_trajopt_seeds: how many IK goals trajopt optimises toward; 1 = only the nearest. Both counts go to MotionGenConfig at construction: warm-up records CUDA graphs for them, and changing them per plan crashes. - reseed_each_plan: MotionGen.reset(reset_seed=True) before every plan, so one request draws the same seeds and noise (and the graph planner starts from an empty roadmap) each time. - graph_fallback: warm up the graph planner and let cuRobo switch it on for the rest of a plan once an attempt fails trajopt (enable_graph_attempt=1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
plan_log:=<file> appends one JSON line per plan_to_pose / plan_to_joints request: the start, the goal, the box world cuRobo was given, the status and the trajectory; the first line carries the config path and the model. "" (the default) logs nothing. bench/sweep_bench.py replays the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bench/sweep_bench.py plans start -> goal-pose pairs on the chair fixture under one planner condition, jittering the start every rep, and reports success, how many distinct final configurations one request lands in, the swept volume of the collision spheres, and plan time; it also replays a node's plan_log. bench/Dockerfile.x86 builds cuRobo v0.7.8 for an Ampere desktop GPU. Not shipped in the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Optimising toward only the nearest IK goal failed 2 of 80 bench pairs on every rep (FINETUNE_TRAJOPT_FAIL at that goal) and the graph planner did not rescue them. With 512 IK seeds and a reseed, trajopt's 4 goals are the same 4 nearest solutions every call: 799/800 plans, final spread 0, and the same sweep reduction, so the key bought nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SwapnilPande
marked this pull request as ready for review
November 19, 2026 03:26
3 tasks done
- plan_log called CuRoboPlanner.world_boxes, a property, as a function: with plan_log set, every plan_to_pose / plan_to_joints goal raised in its execute callback and was aborted. The test's stand-in was a function too. Now the record is built under the planning lock (so a world pushed meanwhile is not the one logged) and nothing building or writing it can fail the plan; the test runs the node's real _plan path against a property-shaped world_boxes. - The log marks a hold or via only when active, and replay skips those requests (planned without them here) and reports what it skipped. Replay handles an empty-world session and refuses a log whose sessions used different models. - num_ik_seeds must be a positive integer (or null), refused at construction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s on the Jetson The jp6/cu126 torch 2.10 wheel was built against cuSOLVER 11.7.1.2 (CUDA 12.6.3); l4t-jetpack r36.4 ships 11.6.4.69, which lacks cusolverDnXsyevBatched_bufferSize. The sonames match, so ldd and the import are clean and every CUDA linalg op dies at first use. Plain planning never calls one; the graph planner does (torch.svd in its warm-up), so graph_fallback could not run on a robot. The image installs NVIDIA's Tegra cuSOLVER 11.7.1.2 deb after the cuRobo build (runtime only, so that layer stays cached) and fails the build if the symbol is still missing. The planner no longer routes linalg to MAGMA: the wheel has none, so the call was a no-op that broke svd once cuSOLVER loaded. New GPU tests: a CUDA svd against the CPU, and a graph planner that warms up and plans. Diagnosed and proven on abra (Orin, JP r36.4), 2026-11-18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… docs - The cuSOLVER deb is checked against the SHA256 in NVIDIA's Packages index (pinned like the cuRobo tag's commit). - test_cuda_linear_algebra_works also runs batched eigh, which calls cusolverDnXsyevBatched, the symbol that was missing, itself. - gen3.yaml and the README no longer say to keep the graph planner off on the Jetson: it needs the image's cuSOLVER, which a bare JetPack host lacks. - CHANGELOG notes that on x86 the graph planner's linalg now uses torch's default backend instead of MAGMA. - replay exits with a message on a log that has no header line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
plan_to_poseoften plans large, unintuitive motions around the wheelchair, and the same request gives a different motion from one call to the next. That makes it hard to trust waypoint ordering around obstacles the world doesn't model.Results
80 start → goal-pose pairs on the chair fixture (mebot layers, 30° mount), 10 reps each, start jittered by 3 mrad per joint every rep.
Desktop (RTX 3090):
reseed_each_plannum_ik_seeds: 512+reseed_each_plangraph_fallbackJetson (abra, AGX Orin, this PR's image
rammp-curobo:pr74):graph_fallback("Outcome" = final joints more than 0.3 rad apart on any joint; spread = median distance between one request's final joints. The one failure in every row except the nearest-goal-only one is the start jitter landing in collision.)
FINETUNE_TRAJOPT_FAILat that goal). The graph planner didn't rescue them, so that option is dropped.What's in it
num_ik_seeds: positive integer or null, passed toMotionGenConfigat construction. Warm-up records CUDA graphs for the seed counts, and changing one per plan crashed the GPU.reseed_each_plan: callsMotionGen.reset(reset_seed=True)before every plan, which also clears the graph planner's roadmap.graph_fallback: warms up the graph planner and setsenable_graph_attempt=1, so it engages after a failed attempt, for blocked routes. Cost on the Orin: about 2.4 s more at start-up, and when it engages on a request a plain retry would have saved, that plan takes 1.0–1.5 s instead of about 0.6 s (1 of 80 bench pairs; p99 0.59 → 1.03 s). It rescued nothing on this bench, which has almost no blocked routes. Engaging after the first failure is a deliberate choice;plan_logreplay of real failures is the test of its value.plan_log: writes every plan request, the collision world it was planned in and the result to JSONL, under the planning lock. Nothing in it can fail a plan.bench/: the benchmark, a replay mode forplan_logfiles, and an x86 Dockerfile. Replay skips held/via requests and reports them. Not shipped in the image.Checklist
make build(cuSOLVER gate included),image-contents,image-default.make verify: 387 passed, GPU required, including the new svd and graph-planner tests.make sim-test: 157 passed.make sim: 45 cases, 0 failed, G0–G7 PASS.test_platform_layer_pairfailed once in the full suite; it is already known to be flaky on cleandev, and passed 3/3 reruns.plan_logaborted every plan when enabled (world_boxesis a property). Fixed in fb17287, with replay and validation fixes.eigh(the op behind the missing symbol), and the stale "keep the graph off on Jetson" docs are corrected. Rebuilt on abra: checksum OK,make verify387 passed,image-defaultpasses.PLANNER_DEFAULTSstays cuRobo's.graph_fallback. Needs a planner image with this PR running on a live session withplan_logset.🤖 Generated with Claude Code