fix: enforce Y-up in visualize_extrinsics and sync README

This commit is contained in:
2026-02-07 15:25:24 +00:00
parent 7b9782aa92
commit a8d375191a
2 changed files with 68 additions and 2 deletions
+7
View File
@@ -495,6 +495,7 @@ def main(
yaxis_title="Y (m)",
zaxis_title="Z (m)",
aspectmode="data", # Important for correct proportions
camera=dict(up=dict(x=0, y=1, z=0)), # Enforce Y-up convention
)
if birdseye:
@@ -505,6 +506,12 @@ def main(
# Wait, we want X-Z plane. So we look down Y.
# Plotly default is Z up.
# If our data is Y-up (standard graphics), then we look from +Y down to X-Z.
# Actually, for X-Z plane top-down, we want to look from +Y.
# So eye should be (0, high, 0).
# And "up" vector for the camera should be aligned with Z (or -Z) to orient the map correctly.
# Let's try Z-up for the camera orientation so X is right and Z is up on screen?
# No, usually map is X right, Z up (or down).
# If we look from +Y, and up is +Z, then Z is "up" on screen.
eye=dict(x=0, y=2.5, z=0),
)