Commit 78a0779
authored
feat(nav): add clicked_point input to replanning planner and rerun clicking blueprint (#1394)
* feat(nav): add clicked_point input to replanning planner
subscribe to PointStamped clicks from rerun viewer, convert to
PoseStamped via .to_pose_stamped() and feed to goal handler.
wire with: LCMTransport("/clicked_point", PointStamped)
DIM-643
* feat(examples): add rerun click-to-navigate test script
runs Go2 smart blueprint with viewer_mode=none, connects to custom
rerun viewer on gRPC port 9877, wires /clicked_point LCM transport
to planner's clicked_point input.
DIM-643
* fix(examples): add --simulation flag to click test
supports --simulation (mujoco), --robot-ip, --viewer-url args
* fix(examples): init rerun and connect grpc before coordinator.start
rr.init + rr.connect_grpc must happen before the bridge starts,
otherwise rerun disables itself with no active sink
* fix(examples): connect grpc after bridge start to avoid double rr.init
the bridge calls rr.init('dimos') in start(). calling rr.init before
that resets the recording stream. now we connect_grpc after start()
so the bridge's rr.init creates the stream, then we add our gRPC sink.
* fix(examples): init rerun in main process before connect_grpc
the bridge runs in a worker subprocess (multiprocessing), so its
rr.init() only affects that subprocess. the main process needs its
own rr.init() + connect_grpc() for data to reach the viewer.
also adds --replay flag for headless testing.
* feat(rerun): add viewer_mode=connect for external viewer support
adds connect mode to rerun bridge — connects to an external viewer
via grpc instead of spawning a new one. needed for custom viewers
like the click-to-navigate fork.
example script now works like a normal blueprint.
DIM-643
* fix(examples): use build().loop() per readme convention
* feat(blueprints): add unitree-go2-click-nav blueprint
proper blueprint registered in all_blueprints. run with:
dimos run unitree-go2-click-nav --simulation --viewer-backend rerun-connect
adds rerun-connect viewer backend that connects to an external
rerun viewer (custom fork) instead of spawning a new one.
DIM-6431 parent ae781c1 commit 78a0779
File tree
6 files changed
+61
-3
lines changed- dimos
- core
- robot
- unitree/go2/blueprints
- basic
- smart
- visualization/rerun
6 files changed
+61
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| 269 | + | |
| 270 | + | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| |||
0 commit comments