Skip to content

Fix: Display link orientation in model coordinate space#20

Open
LueApp wants to merge 1 commit intofan-ziqi:mainfrom
LueApp:fix/hover-info-model-space-orientation
Open

Fix: Display link orientation in model coordinate space#20
LueApp wants to merge 1 commit intofan-ziqi:mainfrom
LueApp:fix/hover-info-model-space-orientation

Conversation

@LueApp
Copy link

@LueApp LueApp commented Mar 23, 2026

Summary

  • Fixed hover info panel displaying link orientation in Three.js internal world-space (Y-up) instead of the model's native coordinate system (Z-up for URDF)
  • A URDF base link with identity orientation now correctly shows quat(0, 0, 0, 1) instead of quat(0.7071, 0, 0, 0.7071)
  • Position values are also converted back to model-space

Test plan

  • Load a URDF model and hover over the base link — verify identity quaternion (0, 0, 0, 1) when no rotation is specified
  • Hover over child links — verify correct accumulated joint rotations
  • Change the up-axis dropdown — verify displayed pose values remain stable

🤖 Generated with Claude Code

…ree.js world space

The hover info panel was using getWorldQuaternion() which includes the
internal Z-up to Y-up coordinate conversion from the world wrapper object.
This caused a URDF base link with identity orientation to display as
quat(0.7071, 0, 0, 0.7071) instead of the expected quat(0, 0, 0, 1).

Strip the world wrapper's coordinate system rotation from displayed position
and orientation values so they reflect the model's native coordinate frame.

Co-Authored-By: Claude <[email protected]>
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