map3d: native 3D terrain map module#1699
Open
tridge wants to merge 1 commit into
Open
Conversation
Add a 3D map that drapes satellite imagery over ArduPilot quantized-mesh terrain (https://plot.ardupilot.org/quantized/) rendered with VTK, showing the same elements as the 2D map (flight path, mission, fence, rally, vehicle) for both live telemetry and log review. - terrain.py: background worker pool fetches/decodes quantized-mesh tiles and assembles draped imagery via mp_tile; VTK objects are built on the GUI thread. Nested quadtree LOD with distance-based, view-dependent texture zoom so detail sharpens as you zoom in; tiles re-drape once imagery downloads settle. sample_terrain() interpolates the mesh for terrain-relative altitudes. - camera.py: Cesium-like camera/interactor with a permanently level horizon (yaw+pitch only, no roll), drag to pan, Ctrl+drag to rotate, wheel to zoom. - elements.py: flight path, live trail, mission, fence, rally and vehicle actors in a shared local ENU frame, with altitude-frame handling. - map3d.py / map3d_ui.py: parent handle + child wx/VTK viewer process, mirroring the mp_slipmap multiprocess pattern. - __init__.py: Map3DModule with the 'map3d' command and a live MAVLink feed (vehicle pose/attitude, mission/fence/rally on change). - map3d_test.py: standalone offscreen/GUI verification harness. MAVExplorer gains a 'map3d' command for 3D log review, extracting the flight path (POS, with altitude) and mission (CMD) from the log; terrain-frame waypoints are resolved to AMSL via the quantized mesh. Requires the optional packages vtk and quantized-mesh-tile (extras: map3d).
Contributor
|
I think we should have a claude-off: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a 3D map that drapes satellite imagery over ArduPilot quantized-mesh terrain (https://plot.ardupilot.org/quantized/) rendered with VTK, showing the same elements as the 2D map (flight path, mission, fence, rally, vehicle) for both live telemetry and log review.
MAVExplorer gains a 'map3d' command for 3D log review, extracting the flight path (POS, with altitude) and mission (CMD) from the log; terrain-frame waypoints are resolved to AMSL via the quantized mesh.
Requires the optional packages vtk and quantized-mesh-tile (extras: map3d).