Skip to content

feat/websocket visualization#198

Merged
leshy merged 24 commits intodevfrom
websocketVis
Apr 24, 2025
Merged

feat/websocket visualization#198
leshy merged 24 commits intodevfrom
websocketVis

Conversation

@leshy
Copy link
Copy Markdown
Contributor

@leshy leshy commented Apr 22, 2025

Implements websocket based visualizer for common types like costmap, path and vector.

  • Non invasive to the codebase, only updates these types with serialize() methods
  • Any submodule can return an observable of these types and they will be automatically visualized
websocket_vis.connect(planner.vis_stream())

in planner (at any point):

        self.vis("global_costmap", smudge)
        self.vis("pos", pos)

(multiple subsystems can draw in the same context, so local/global planners, semantic map can share the vis)

initial UI is scrapped quickly - main part is that we can pass real time internal state to web, so can use this in the dimos console or other UIs

run

python tests/test_websocketvis.py

for demo, or

python tests/test_websocketvis.py --live

for live robot connection/mouse control

@leshy leshy changed the base branch from main to dev April 22, 2025 03:18
spomichter
spomichter previously approved these changes Apr 22, 2025
spomichter
spomichter previously approved these changes Apr 22, 2025
@leshy leshy changed the title WIP: feat/websocket visualization feat/websocket visualization Apr 23, 2025
Copy link
Copy Markdown
Contributor

@spomichter spomichter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go other than two small changes

Copy link
Copy Markdown
Contributor

@spomichter spomichter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, in future no formatting changes / linter

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.

2 participants