feat(cockpit): map click-to-goal, path overlay and cancel button - #4183
Conversation
Map2D(path=, click=, stop=) binds three opt-in streams; the go2 cockpit
blueprints opt in. A click on the drawn costmap maps through the fitted
transform and publishes {x, y} on a point.json.v1 channel, decoded to a
PointStamped on a generated clicked_point port (the rerun viewer's route).
path: In[Path] is encoded as path.json.v1 ([[x, y], ...]) and drawn under
the pose; a floating cancel button, shown while the path is non-empty,
publishes a Bool on stop_movement (the planner's cancel input).
The path channel is paced and replayed on subscribe: the planner emits an
empty path then the real one within milliseconds on every plan, so the
sampling gate would drop the second frame. Both flags move onto Channel
(rx-only); ChannelRequest.paced goes. The new channel ids ride the panel
params, so the map2d manifest slots and fixtures are unchanged.
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #4183 +/- ##
==========================================
- Coverage 79.13% 79.13% -0.01%
==========================================
Files 1469 1471 +2
Lines 139244 139520 +276
Branches 11976 11988 +12
==========================================
+ Hits 110194 110403 +209
- Misses 25647 25713 +66
- Partials 3403 3404 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
|
Successfully created backport PR for |
Closes DIM-1172
Problem
Solution