Skip to content

Instantly share code, notes, and snippets.

@LimHyungTae
Created May 26, 2024 19:01
Show Gist options
  • Save LimHyungTae/b3ee0bf6be1e4a053d610b9bc244a5e5 to your computer and use it in GitHub Desktop.
Save LimHyungTae/b3ee0bf6be1e4a053d610b9bc244a5e5 to your computer and use it in GitHub Desktop.
import numpy as np
rot = np.array([[9.999976e-01, 7.553071e-04, -2.035826e-03], [-7.854027e-04, 9.998898e-01, -1.482298e-02], [2.024406e-03, 1.482454e-02, 9.998881e-01]])
t = np.array([-8.086759e-01, 3.195559e-01, -7.997231e-01])
tf = np.eye(4)
tf[:3, :3] = rot
tf[:3, 3] = t
print(tf)
print(np.linalg.inv(tf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment