feat: sensor feeds in HUD (Issue #413) #419
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-webui/issue-413-sensor-hud"
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?
GPS map + LIDAR point cloud + RealSense dual stream (RGB + depth)
Add tabbed sensor feed interface to the HUD center viewport: GPS Map Panel: - Fetches location data from /gps HTTP endpoint on port 8888 - Renders OpenStreetMap with real-time location marker - Displays: coordinates, altitude, accuracy LIDAR Point Cloud Visualization: - Subscribes to /scan topic via rosbridge WebSocket - 2D polar plot with grid, cardinal directions, forward indicator - Real-time point cloud rendering with range statistics - Displays: point count, max range (0-30m) RealSense Dual Stream: - Subscribes to /camera/color/image_raw/compressed (RGB) - Subscribes to /camera/depth/image_rect_raw/compressed (Depth) - Side-by-side canvas rendering with independent scaling - FPS counter and resolution display Tab System: - 4-way view switching: 3D Model ↔ GPS ↔ LIDAR ↔ RealSense - Persistent tab state, lazy initialization on demand - Dark theme with cyan/orange accent colors - Status indicators for each sensor (loading/error/ready) Architecture: - Browser native canvas for LIDAR visualization - WebSocket rosbridge integration for sensor subscriptions - Fetch API for HTTP GPS data (localhost:8888) - Leaflet.js for OSM map rendering (CDN) - 2s polling interval for GPS updates Rosbridge Endpoints (assumes localhost:9090): - /scan (sensor_msgs/LaserScan) — 1Hz LIDAR - /camera/color/image_raw/compressed — RGB stream - /camera/depth/image_rect_raw/compressed — Depth stream HTTP Endpoints (assumes localhost:8888): - GET /gps → { lat, lon, alt, accuracy, timestamp } Integration: - Preserves existing 3D HUD viewport and controls - Left/right sidebars remain unchanged - Bottom PID control bar operational - Tab switching preserves center panel size/aspect ratio Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>