Skip to content

Conversation

@hexbabe
Copy link
Member

@hexbabe hexbabe commented Jan 15, 2026

As described in the new section, there is a piece of the OV representation that is discontinuous and conditional on OZ pointing directly up, and was very confusing to me. After talking to Peter L about it, I now understand it better and want to provide this context to all Viam developers and/or docs readers.

@netlify
Copy link

netlify bot commented Jan 15, 2026

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit b0cb097
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/696ab6a4be01570008a371db
😎 Deploy Preview https://deploy-preview-4803--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 42 (🔴 down 4 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Jan 15, 2026
@hexbabe
Copy link
Member Author

hexbabe commented Jan 15, 2026

oops CI is failing due to some pages being out of date @shannonbradshaw. How should I proceed?

edit: red herring, I had a lint issue. Fixed

{{< /alert >}}

This edge case occurs because when an object is oriented nearly parallel to the Z-axis (pointing straight up or down), the axis of rotation (OX, OY, OZ) becomes aligned with the Z-axis.
In this configuration, there are infinite valid combinations of the orientation axis and Theta that represent the same physical orientation, similar to the gimbal lock problem in Euler angles.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this configuration, there are infinite valid combinations of the orientation axis and Theta that represent the same physical orientation, similar to the gimbal lock problem in Euler angles.

It's not quite the same; there aren't infinite configurations, it's still just one OV to one orientation. There's a discontinuity, where there are two well-defined regions and no way to smoothly transition between them. You just might see huge jumps in theta values and eyeballing values to estimate distance between orientations becomes impossible.

Copy link
Member Author

@hexbabe hexbabe Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it. Corrected to 1:1 and emphasized the discontinuity


If your application requires orientations near these poles, be aware that:

- Small changes in OZ near the threshold may cause discontinuous changes in how the orientation is represented
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one seems to imply the OX/OY/OZ might jump too, which it won't. I think the next bullet down covers this better.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it. Consolidated.

- For the north pole (OZ approaching +1): `Theta = -atan2(Y', -X')`
- For the south pole (OZ approaching -1): `Theta = -atan2(Y', X')`

Where X' and Y' are components of the transformed X-axis basis vector.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure anyone will understand what this means.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@hexbabe hexbabe requested a review from biotinker January 16, 2026 22:08
Copy link
Member

@biotinker biotinker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a reference to axis angles for their utility in measuring distance between orientations.
Otherwise LGTM.

@hexbabe hexbabe merged commit 8d8f80d into main Jan 21, 2026
13 checks passed
@hexbabe hexbabe deleted the document-ov-edge-case branch January 21, 2026 21:48
@github-actions
Copy link

🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs'

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

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants