Skip to content

Document PlanMotionSequence and joint-goal limit validation (RDK v1.17.0) - #5560

Merged
Jeremy Rose (jeremyrose-viam) merged 2 commits into
mainfrom
claude/update-motion-planning-v1-17
Nov 23, 2026
Merged

Jeremy Rose (jeremyrose-viam) merged 2 commits into
mainfrom
claude/update-motion-planning-v1-17

Conversation

@shannonbradshaw

Copy link
Copy Markdown
Collaborator

Source changes

All in RDK v1.17.0 (git tag --contains prints v1.17.0 for each), read at the tag in motionplan/armplanning/api.go:

  • RSDK-14902 (no DOCS match) — rdk#6785, rdk#6800, rdk#6802, rdk#6792, rdk#6807: armplanning.PlanMotionSequence(ctx, logger, requests, opts *SequenceOptions). A nil opts uses NewDefaultSequenceOptions() (BacktrackBranchFactor: 3); below 1 is an error. Each request plans on a copy of its PlannerOptions with ReturnPartialPlan cleared. PlanMeta.RejectedSolutions lists the endings ruled out. A done context stops the sequence with stopped before planning request i/n: <ctx.Err()>.
  • Documents: no ticket key found — rdk#6801: PlanMotion validation rejects a joint-configuration goal outside its frame's limits (goal %d frame %q joint %d is %.5f, outside its limits [%.5f, %.5f]), a goal naming a frame not in the frame system, and a goal with the wrong number of joint values. The start state isn't checked.

Docs changes

  • docs/motion-planning/move-an-arm/multiple-waypoints.md:
    • New "Plan a sequence of requests" section: when to use PlanMotionSequence instead of one multi-goal PlanMotion, the four-argument call, start-state chaining, backtracking and BacktrackBranchFactor, BacktrackCounter and RejectedSolutions, ReturnPartialPlan being off per request, and the context error. No docs page named PlanMotionSequence before (docs-agent gap armplanning-plan-motion-sequence).
    • A configuration waypoint must stay within joint limits, or PlanMotion returns an error before planning.
  • docs/motion-planning/verify-a-plan.md "Read the plan": "An error means no plan was found within the timeout" now also covers the validation errors, with the limits error's format.

How I found these

  • Xref lookup: flows.md motion planning; service-api-xref.md motion.
  • Grep matches: PlanMotionSequence, SequenceOptions, BacktrackBranchFactor, RejectedSolutions, ReturnPartialPlan, outside its limits, joint limits, no plan was found across docs/, static/include and layouts. ReturnPartialPlan appears only in multiple-waypoints.md, whose "Recover a partial plan" section stays true for PlanMotion. kinematics.md "Joint limits" ("prevent the motion planner from computing solutions...") is now also true for joint goals.

Generated by daily docs change agent


Generated by Claude Code

…7.0)

RDK v1.17.0 rejects a joint-configuration goal outside its joint limits,
or with an unknown frame or wrong DoF, before planning (rdk#6801), and
gives PlanMotionSequence a SequenceOptions argument, per-request
ReturnPartialPlan clearing, rejected-solution metadata and an early
ctx.Err() stop (rdk#6785, #6800, #6802, #6792, #6807).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nja2XqYruJmjhpsBqwUQUv
@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 751d73b
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6b0466c40a0248b1dedc4d4a
😎 Deploy Preview https://deploy-preview-5560--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 38 (🟢 up 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Nov 18, 2026

Copy link
Copy Markdown
Member

Docs review: Ready to merge

This PR adds a "Plan a sequence of requests" section for PlanMotionSequence and documents the joint-limit goal validation in PlanMotion. Every claim I checked matches RDK v1.17.0, which is the latest release and contains all six source PRs.

CI: All required checks passing

Docs health: No regressions

Released: All documented changes are live (all six source PRs are in rdk v1.17.0, published 2026-11-17)

Nits

  • docs/motion-planning/verify-a-plan.md:138: the sentence that now ends "...for an" runs past the 80-column wrap used in the rest of the paragraph. Fix: reflow the last two lines.
  • docs/motion-planning/verify-a-plan.md:135: the example limits error shows values in radians, while the linked kinematics page gives joint limits in degrees. Fix: add "(in radians)" after "value, and limits".
Verified against source (9 claims)
  • PlanMotionSequence(ctx, logger, requests, opts) takes four arguments; nil opts uses NewDefaultSequenceOptions(): viamrobotics/rdk motionplan/armplanning/api.go:438, :561 at v1.17.0
  • Default BacktrackBranchFactor is 3 and values below 1 return an error: api.go:447, :562
  • Only the first request's StartState is used; later ones are overwritten, so requests should not be reused: api.go:413, :454
  • Each request plans with ReturnPartialPlan off: api.go:463
  • Backtracking re-plans an earlier request with the failed ending ruled out; cost grows exponentially: api.go:425
  • PlanMeta has BacktrackCounter and RejectedSolutions: api.go:310, :316
  • A done context stops with stopped before planning request i/n wrapping ctx.Err(): api.go:475
  • PlanMotion rejects a goal joint outside limits, with the quoted message format, before planning: api.go:156, :182
  • The same check rejects a missing frame and a wrong joint count; the start state is not checked: api.go:173, :178

Automated review by Claude. Rerunning the review updates this comment.


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeremyrose-viam

Copy link
Copy Markdown
Member

Pushed 751d73b to verify-a-plan.md "Read the plan":

  • Split the error paragraph into a list (no plan found vs. invalid request) and moved the "a returned trajectory is yours to inspect" sentence up to the success paragraph.
  • New "Joint limit errors" subsection. The error reports values in internal units (radians for revolute joints, millimeters for prismatic), while kinematics files and the linked kinematics page give revolute limits in degrees, so the example's [-3.14159, 3.14159] is a ±180° joint. The text now says so, plus that goal and joint numbers count from 0.

Checked by running PlanMotion against RDK v1.17.0 with a test model: the example error text is exact, a 600 mm prismatic goal reports [0.00000, 500.00000], a start state outside the limits still plans, and the wrong-joint-count and unknown-frame cases both error.


Generated by Claude Code

@jeremyrose-viam
Jeremy Rose (jeremyrose-viam) merged commit 6b2a461 into main Nov 23, 2026
14 of 15 checks passed
@jeremyrose-viam
Jeremy Rose (jeremyrose-viam) deleted the claude/update-motion-planning-v1-17 branch November 23, 2026 21:22
@github-actions

Copy link
Copy Markdown

🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants