feat: Robot GPS live map panel (Issue #709 companion) #711
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-webui/robot-gps-map"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 — 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>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>