-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radians to Degrees for multi-tag pose #1027
Conversation
<td> | ||
{{ | ||
( | ||
useStateStore().currentPipelineResults?.multitagResult?.bestTransform.angle_z * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this angle ends up being undefined, what's the output of the rest of this function? Should we just do angle_z || 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what situation would multitagResult be valid but bestTransform.angle_z undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be never, actually? I'm actually not super familiar with how ?. works in JavaScript so I may need enlightning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I built this code and saw no issues with multi pnp but I can add the || 0 if you prefer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go ahead and add that to all multitarget props as all of them may be undefined
1ee4dde
to
14b85d6
Compare
#1025