Skip to content

Add per-step snapshots and PartOfPlan relation for motion plans#840

Draft
Marcus (sucrammal) wants to merge 1 commit into
motion-plan-replayer-1b-descriptorsfrom
motion-plan-replayer-1c-snapshots
Draft

Add per-step snapshots and PartOfPlan relation for motion plans#840
Marcus (sucrammal) wants to merge 1 commit into
motion-plan-replayer-1b-descriptorsfrom
motion-plan-replayer-1c-snapshots

Conversation

@sucrammal

@sucrammal Marcus (sucrammal) commented Jul 10, 2026

Copy link
Copy Markdown
Member

With frame descriptors in place, the replayer needs a renderable snapshot per trajectory step and a way to group a plan's spawned entities for teardown. Adds parsedPlanToSnapshots (ParsedPlan â Snapshot[]) and the PartOfPlan ECS relation (autoDestroy: 'source') so destroying a plan entity cascades to its members.

Changes

  • Frontend: Adds plan-to-snapshots.ts building one Snapshot of proto Transforms per step, and relations.ts defining PartOfPlan
  • Tests: Adds plan-to-snapshots.spec.ts (one snapshot per step, per-frame transforms, jointed pose baking) and relations.spec.ts (cascade destroy)

Stack

Links

Testing

  • Run npx vitest run src/lib/plugins/MotionPlanReplayer/tests/plan-to-snapshots.spec.ts â¦/relations.spec.ts
  • Confirm N trajectory steps produce N snapshots and destroying the plan root removes all PartOfPlan members

Stack created with GitHub Stacks CLIGive Feedback 💬

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://viamrobotics.github.io/visualization/pr-preview/pr-840/

Built to branch gh-pages at 2026-07-10 18:55 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

1 participant