Skip to content

Commit 19c5fa8

Browse files
authored
DOCS-4335: Add world state store (#4642)
1 parent bc6d9d0 commit 19c5fa8

15 files changed

+374
-2
lines changed

.github/workflows/parse_go.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def parse(self, type, viam_resources):
113113

114114
for resource in viam_resources:
115115

116+
if resource == "world_state_store":
117+
print(f'Skipping Resource: {resource}')
118+
continue
116119
## Determine URL form for Go depending on type (like 'component'):
117120
if type in ("component", "service") and resource in go_resource_overrides:
118121
url = f"{self.scrape_url}/go.viam.com/rdk/{type}s/{go_resource_overrides[resource]}"

.github/workflows/parse_python.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def parse(self, type, viam_resources):
141141
## Determine URL form for Python depending on type (like 'component'):
142142
if type in ("component", "service") and resource in python_resource_overrides:
143143
url = f"{self.scrape_url}/autoapi/viam/{type}s/{python_resource_overrides[resource]}/client/index.html"
144+
elif resource == "world_state_store":
145+
url = f"{self.scrape_url}/autoapi/viam/services/worldstatestore/index.html"
144146
elif type in ("component", "service"):
145147
url = f"{self.scrape_url}/autoapi/viam/{type}s/{resource}/client/index.html"
146148
elif type == "app" and resource in python_resource_overrides:

.github/workflows/parse_typescript.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"dataset": "Data",
1616
"data_sync": "Data",
1717
"data_manager": "DataManager",
18-
"mltraining": "MlTraining"
18+
"mltraining": "MlTraining",
19+
"world_state_store": "WorldStateStore"
1920
}
2021

2122
## Ignore these specific APIs if they error, are deprecated, etc:

.github/workflows/sdk_protos_map.csv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,14 @@ vision,GetResourceName,,get_resource_name,Name,getResourceName,name
319319
vision,GetProperties,,get_properties,GetProperties,properties,getProperties
320320
vision,Close,,close,Close,,
321321

322+
## World State Store
323+
world_state_store,listUUIDs,,list_uuids,,,listUUIDs
324+
world_state_store,GetTransform,,get_transform,,,getTransform
325+
world_state_store,StreamTransformChanges,,stream_transform_changes,,,streamTransformChanges
326+
world_state_store,DoCommand,,do_command,,,doCommand
327+
world_state_store,GetResourceName,,get_resource_name,,,name
328+
world_state_store,Close,,close,,,
329+
322330
## App
323331
app,GetUserIDByEmail,,get_user_id_by_email,GetUserIDByEmail,,getUserIDByEmail
324332
app,CreateOrganization,,create_organization,CreateOrganization,,createOrganization

.github/workflows/update_sdk_methods.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
## at runtime if desired:
2424
components = ["arm", "base", "board", "button", "camera", "encoder", "gantry", "generic_component", "gripper",
2525
"input_controller", "motor", "movement_sensor", "power_sensor", "sensor", "servo", "switch"]
26-
services = ["base_remote_control", "data_manager", "discovery", "generic_service", "mlmodel", "motion", "navigation", "slam", "vision"]
26+
services = ["base_remote_control", "data_manager", "discovery", "generic_service", "mlmodel", "motion", "navigation", "slam", "vision", "world_state_store"]
2727
app_apis = ["app", "billing", "data", "dataset", "data_sync", "mltraining"]
2828
robot_apis = ["robot"]
2929

@@ -323,6 +323,11 @@
323323
"url": "https://raw.githubusercontent.com/viamrobotics/api/main/app/mltraining/v1/ml_training_grpc.pb.go",
324324
"name": "MLTrainingServiceClient",
325325
"methods": []
326+
},
327+
"world_state_store": {
328+
"url": "https://raw.githubusercontent.com/viamrobotics/api/main/service/worldstatestore/v1/world_state_store_grpc.pb.go",
329+
"name": "WorldStateStoreServiceClient",
330+
"methods": []
326331
}
327332
}
328333

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "World state store API"
3+
linkTitle: "World state store"
4+
weight: 70
5+
type: "docs"
6+
tags: ["world_state_store", "services"]
7+
description: "Retrieve a list of world objects."
8+
icon: true
9+
images: ["/icons/components/generic.svg"]
10+
date: "2025-09-12"
11+
# updated: "" # When the content was last entirely checked
12+
---
13+
14+
The world state store service API allows you to retrieve a list of world objects.
15+
You can use this list to create custom visualizers to render spatial data related to a machine on the machine's **VISUALIZE** tab.
16+
17+
The world state store service supports the following methods:
18+
19+
{{< readfile "/static/include/services/apis/generated/world_state_store-table.md" >}}
20+
21+
## API
22+
23+
{{< readfile "/static/include/services/apis/generated/world_state_store.md" >}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- prettier-ignore -->
2+
| Method Name | Description |
3+
| ----------- | ----------- |
4+
| [`listUUIDs`](/dev/reference/apis/services/vision/#close) | List all world state transform UUIDs. |
5+
| [`GetTransform`](/dev/reference/apis/services/vision/#close) | Get a world state transform by UUID. |
6+
| [`StreamTransformChanges`](/dev/reference/apis/services/vision/#close) | Stream changes to world state transforms. |
7+
| [`DoCommand`](/dev/reference/apis/services/vision/#close) | Execute model-specific commands that are not otherwise defined by the service API. |
8+
| [`GetResourceName`](/dev/reference/apis/services/vision/#close) | Get the ResourceName for this Resource with the given name. |
9+
| [`Close`](/dev/reference/apis/services/vision/#close) | Safely shut down the resource and prevent further use. |

0 commit comments

Comments
 (0)