Skip to content

feat(visualization): add volumetric quadrotor and 3D flight arena - #311

Open
AryanXCode646 wants to merge 2 commits into
StellarResearch:mainfrom
AryanXCode646:feat/arl-volumetric-3d-simulation
Open

AryanXCode646 wants to merge 2 commits into
StellarResearch:mainfrom
AryanXCode646:feat/arl-volumetric-3d-simulation

Conversation

@AryanXCode646

Copy link
Copy Markdown
Contributor

Summary of Changes

1. Volumetric 3D Quadrotor Construction (Mesh3d)

  • Transformed quadrotor geometry from line and scatter markers into a rich 3D volumetric aircraft:
    • Faceted 3D Fuselage: Layered multi-faceted upper avionics canopy, battery bay, and nose.
    • Carbon-Fiber Arms: Solid volumetric 3D cylinders in an X-configuration with distinct front (red) and rear (blue) arm highlights.
    • Motor Assemblies & Rotor Hubs: 3D motor stator housings and top cylindrical rotor hubs.
    • Aerodynamic Propellers & Rotor Blur Discs: Twisted 3D propeller blades with physical thickness and continuous rotation phase (propeller_phase = selected_step * 0.45), complemented by translucent rotor disc blur fields.
    • Landing Gear Assembly: Dual carbon-fiber landing skids with front and rear angled support struts.
    • Front Sensor / Camera Gimbal: Forward-pointing multi-segment camera and sensor assembly.
    • Dual Telemetry Antennas & Forward Direction Chevron: Dual rear antenna masts and a 3D forward chevron pointing along +X_B.

2. Physical Quaternion Transformations

  • Rigid body-to-world coordinate transformation applied to all quadrotor mesh components using the selected step's attitude quaternion.
  • Verified physical correctness with pure 45-degree roll and pitch transformations.

3. Flight Test Arena & Waypoint Visualization

  • Chamber Floor: Added textured dark flight-testing chamber floor with an aligned center grid.
  • Waypoint Navigation: Added ground landing pad ring and vertical altitude beacon column connecting the ground pad to the 3D target waypoint diamond.
  • Obstacle Proximity Zones: Added subtle translucent safety boundary zones around spherical obstacles.
  • Color-Coded LiDAR Rays: 16-ray spherical rangefinder beams with distance-based coloring (cyan for unobstructed range, red for proximity detection).

4. Interactive Viewport & Multi-Preset Camera System

  • Integrated camera preset system with 6 calibrated perspectives (Arena Overview, Drone Follow, Drone Inspection, Target View, Free Orbit, Reset Camera).
  • Resolved title and legend overlap by docking the horizontal legend at the bottom of the arena.
  • Consolidated playback scrubber and viewport controls into a single streamlined row to maximize 3D scene dominance.

5. Verification & Testing

  • Unit and regression tests: 384 passed across the entire test suite (pytest tests/).
  • Code quality: Ruff check and MyPy clean with zero errors.
  • Visual inspection with Playwright across 1920x1080 desktop, 1366x768 desktop, and mobile viewports with zero Streamlit exceptions.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant