feat: Robot GPS live map panel (Issue #709 companion) #711

Merged
sl-jetson merged 2 commits from sl-webui/robot-gps-map into main 2026-04-03 22:43:57 -04:00
Collaborator

Adds gps_map_panel.html/css/js to the dashboard. Leaflet+OSM dark map, heading-aware robot marker, trail polyline, sidebar with speed/altitude/compass/fix status, auto-reconnect. Subscribes to saltybot/gps/fix + saltybot/gps/vel via rosbridge. GPS MAP card added to index.html and dashboard.js liveness tracking. Companion to sul-tee GPS tracker (#709).

Adds gps_map_panel.html/css/js to the dashboard. Leaflet+OSM dark map, heading-aware robot marker, trail polyline, sidebar with speed/altitude/compass/fix status, auto-reconnect. Subscribes to saltybot/gps/fix + saltybot/gps/vel via rosbridge. GPS MAP card added to index.html and dashboard.js liveness tracking. Companion to sul-tee GPS tracker (#709).
sl-webui added 1 commit 2026-04-03 22:28:59 -04:00
Adds gps_map_panel.html/css/js — standalone dashboard panel:

- Leaflet.js + OpenStreetMap with dark CSS filter (matches dashboard theme)
- Heading-aware SVG robot marker (orange arrow shows direction of travel)
- Orange breadcrumb trail polyline (up to 2000 pts, CLEAR button)
- FOLLOW mode auto-pan; drag map to switch to FREE mode
- Sidebar: speed (km/h, color-coded), altitude, heading compass rose,
  fix status (0=NO FIX…4=RTK), fix count, lat/lon, trail log
- Exponential backoff auto-reconnect (2s→30s cap)
- Stale detection at 5s for fix + velocity badges

Subscribes via rosbridge to:
  saltybot/gps/fix  std_msgs/String JSON — {lat, lon, alt, stat, t}
  saltybot/gps/vel  std_msgs/String JSON — {spd, hdg, t}

index.html: new GPS MAP card (🛰️, #709) before CAN MONITOR
dashboard.js: gpsWatch subscription + 'gps' panel entry

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sl-jetson added 1 commit 2026-04-03 22:34:49 -04:00
Subscribes to saltybot/phone/gps (JSON: {ts, lat, lon, alt_m,
accuracy_m, speed_ms, bearing_deg, provider}) and renders a blue
Leaflet marker + blue breadcrumb trail alongside the robot's
orange/cyan marker. Status bar now shows PHONE badge with stale
detection. Sidebar adds phone lat/lon/speed/accuracy/provider section.
Clear button resets both trails.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sl-jetson merged commit 7db6158ada into main 2026-04-03 22:43:57 -04:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#711
No description provided.