SceneUpdate
An update to the entities displayed in a 3D scene
Panel support
SceneUpdate is used in the 3D and Image panels.
Schema
| field | type | description |
|---|---|---|
deletions | SceneEntityDeletion[] | Scene entities to delete |
entities | SceneEntity[] | Scene entities to add or replace |
note
Foxglove applies a message's deletions before its entities. To replace everything on a topic,
send an ALL deletion together with the full set of entities to display. Entities that keep their id
are replaced, entities you leave out are removed, and new entities are added.
An entity with the same id as an existing entity on the topic replaces it entirely. Fields from the
previous entity are not merged into the new one.
Reference implementations
Foxglove messages are framework-agnostic, and can be implemented using any supported message encoding:
| encoding | schema |
|---|---|
| ROS 1 | foxglove_msgs/SceneUpdate |
| ROS 2 | foxglove_msgs/msg/SceneUpdate |
| JSON | foxglove.SceneUpdate |
| Protobuf | foxglove.SceneUpdate |
| FlatBuffers | foxglove.SceneUpdate |
| OMG IDL | foxglove::SceneUpdate |
You must use the schema names specified above for Foxglove to recognize the schema.