addressing PR comments

This commit is contained in:
Abhishek Joshi
2024-02-21 10:18:13 -06:00
parent f721d3900d
commit 7ffd43b55c
7 changed files with 677 additions and 464 deletions
+12
View File
@@ -0,0 +1,12 @@
import numpy as np
def create_transform_matrix(rotation_matrix, translation_vector):
# Ensure rotation_matrix and translation_vector are NumPy arrays
rotation_matrix = np.array(rotation_matrix)
translation_vector = np.array(translation_vector)
transform_matrix = np.eye(4)
transform_matrix[:3, :3] = rotation_matrix
transform_matrix[:3, 3] = translation_vector
return transform_matrix