Skip to content

Commit

Permalink
Chore: Remove redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
legoeruro committed Sep 30, 2024
1 parent fedfee1 commit 441490f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
23 changes: 0 additions & 23 deletions python/arflow/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,26 +329,3 @@ def decode_point_cloud(
clr = color_rgb.reshape(-1, 3)

return pcd, clr

@staticmethod
def euler_from_quaternion(x, y, z, w):
"""
Convert a quaternion into euler angles (roll, pitch, yaw)
roll is rotation around x in radians (counterclockwise)
pitch is rotation around y in radians (counterclockwise)
yaw is rotation around z in radians (counterclockwise)
"""
t0 = +2.0 * (w * x + y * z)
t1 = +1.0 - 2.0 * (x * x + y * y)
roll_x = np.arctan2(t0, t1)

t2 = +2.0 * (w * y - z * x)
t2 = +1.0 if t2 > +1.0 else t2
t2 = -1.0 if t2 < -1.0 else t2
pitch_y = np.arcsin(t2)

t3 = +2.0 * (w * z + x * y)
t4 = +1.0 - 2.0 * (y * y + z * z)
yaw_z = np.arctan2(t3, t4)

return roll_x, pitch_y, yaw_z # in radians
6 changes: 5 additions & 1 deletion unity/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ PlayerSettings:
visionOSBundleVersion: 1.0
tvOSBundleVersion: 1.0
bundleVersion: 0.1
preloadedAssets: []
preloadedAssets:
- {fileID: -4019099003003015272, guid: 20526f0dba1114536b1e928dbe0eca0a, type: 2}
- {fileID: 11400000, guid: 8d33ccf7e1a574b7a8329f7d9563a589, type: 2}
- {fileID: 4800000, guid: c9f956787b1d945e7b36e0516201fc76, type: 3}
- {fileID: 4800000, guid: 0945859e5a1034c2cb6dce53cb4fb899, type: 3}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down

0 comments on commit 441490f

Please sign in to comment.