Repository navigation
Add a reference page for the built-in world state store - #5562
Jeremy Rose (jeremyrose-viam) merged 4 commits into
Conversation
rdk#6816 adds rdk:service:world_state_store model rdk:builtin:builtin: an in-memory store seeded from a transforms attribute and changed with add, update and remove DoCommands. Link it from the API page, the services index and visuals-and-collisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nja2XqYruJmjhpsBqwUQUv
✅ Deploy Preview for viam-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Docs review: Ready to mergeThis PR adds a reference page for the built-in world state store ( Follow-up 2026-11-23: reviewed through CI: All required checks passing Docs health: No regressions Released: All documented changes are live (rdk PR 6816 is in v1.17.0; the scene's stream reconnect is in Resolved since the first review (3)
Verified against source (20 claims)Carried over from the first review (11 claims): API and model names, not a default service and can't be named New in this pass:
Automated review by Claude. Rerunning the review updates this comment. |
…om visuals need a module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ning intros, and fix the troubleshooting page's source model and WorldState claim Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs' |

Source changes
rdk:service:world_state_store/rdk:builtin:builtin, inservices/worldstatestore/builtin/. It is not a default service, can't be namedbuiltin, keeps transforms in memory, starts from an optionaltransformsattribute (proto JSON; a transform without a uuid uses its reference frame name), and takesadd,updateandremoveDoCommands, applied all-or-nothing in the order remove, add, update, returning the base64 uuids changed.New page
docs/reference/services/world-state-store/_index.md: reference page (config and DoCommand reference) covering the JSON config, thetransformsattribute, in-memory lifetime, the three DoCommands with examples, ordering and atomicity, the response shape, and what a streaming client sees.Other docs changes
docs/reference/services/_index.md: table row for the new page.docs/reference/apis/services/world-state-store.md: point to the built-in store as well as the module guide.docs/visualization/visuals-and-collisions.md: say the service can be a module or the built-in store.Code references
services/worldstatestore/builtin/builtin.go(registration, naming, in-memory lifetime),config.go(transforms, default uuid, validation),commands.go(DoCommands, order, all-or-nothing, error format, response),fieldmask.go(update paths,nullclears,updatedFields),stream.go(snapshot then changes, stream ends when a client falls behind), all at v1.17.0.api/proto/viam/common/v1/common.protoTransform,Geometry,PoseInFrame.services/motiondoesn't importworldstatestore), so the page says the planner does not use them.Documents: DOCS-5121 (the gap ticket docs-agent filed for this change). Docs-agent gap:
world-state-store-builtin-model.Generated by daily docs change agent
Generated by Claude Code
Follow-up revisions
Three more commits on top of the original. They fill gaps on the new page and update pages that said custom visuals can only come from a module.
Reference page (
docs/reference/services/world-state-store/_index.md)oX/oY/oZorientation vector,thetain degrees.uuid, its UUID is itsreferenceFramename, base64-encoded (tableis"dGFibGU=").uuid, and paths that reach inside a list or map.{"x": 5}sets x to 5, not "moves it along x".do_commandexample that handles the base64 UUIDs.Pages that said custom visuals come from a module
docs/visualization/3d-scene/_index.md: the intro, the task list, the "where each element comes from" table, and the custom-visuals sections now name both sources: the built-in store or a module.docs/visualization/troubleshoot-the-3d-scene.md:WorldStateparagraph now says Replay mode draws a saved plan's obstacles.docs/visualization/visuals-and-collisions.md,docs/motion-planning/frame-system/end-effector-frames.md,docs/visualization/_index.md(description): name the built-in store alongside modules.Where spatial state lives (
docs/visualization/reference/world-state.md)New section with a table of the three sources: frame system,
WorldState, and world state store. It shows which ones the planner and the live 3D scene each read, how long each lasts, and when to use which.Testing
On a machine running
viam-serverv1.17.0:tableseed.ListUUIDs/GetTransformand in the 3D SCENE tab: partial updates, the seeded UUID, all-or-nothing calls, and each documented error message.viam-serverrestart ended the stream, the 3D scene reconnected, redrew from the store's contents without a page reload, and then followed new changes. The production app pins@viamrobotics/visualization3.4.0, which has this reconnect logic.Notes for reviewers
rdkbuiltins/viam-server-stable.json) has onlyrdk:builtin:fakefor this API as of 2026-11-23, so the CONFIGURE tab probably doesn't offerrdk:builtin:builtinyet.visual_onlymark). If it ships, this page, the world-state table, andvisuals-and-collisions.mdneed updating, and a how-to for the built-in store should follow.publish-visuals-from-a-module.md's streaming example drops changes for slow clients, tracked in DOCS-5141.🤖 Generated with Claude Code