feat(viewer): click-robot teleop, Ctrl+click nav, overlay UX#15
Open
spomichter wants to merge 1 commit intomainfrom
Open
feat(viewer): click-robot teleop, Ctrl+click nav, overlay UX#15spomichter wants to merge 1 commit intomainfrom
spomichter wants to merge 1 commit intomainfrom
Conversation
404bd6e to
0d657eb
Compare
- Click robot entity in 3D → engages teleop for that robot (WASD publishes to <robot>/cmd_vel). Click non-robot → disengages. Robot detection via entity path prefix matching (go2/g1/robot). - Ctrl+click non-robot entity with position → nav goal (PointStamped LCM on /clicked_point). Plain click = Rerun selection. - Overlay at (260,12), greyed out when disengaged with 'click robot' hint. Bright when engaged, shows robot name. - KeyboardHandler shared via Rc<RefCell<>> between DimosApp and on_event callback for robot selection state. - Multi-robot infrastructure: set_active_robot() + set_engaged() for future per-robot channel switching.
0d657eb to
b1c7e1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three interaction fixes for dimos-viewer, based on current
main.Changes
1. Ctrl+click → nav goal (was: any click)
Rc<Cell<bool>>shared betweenDimosApp.ui()(writes ctrl state) andon_eventcallback (reads it before publishing)2. Overlay position + idle styling
3. Multi-robot teleop
KeyboardHandler.set_active_robot(Some("/world/go2"))→ publishes to/world/go2/cmd_velNone= default/cmd_velchannelTesting
28/28 unit tests pass. Visual testing on Xvfb confirmed:
cargo build -p dimos-viewer --release cargo test -p dimos-viewer --lib --releaseBreaking Changes