Skip to content

Commit 3ba9146

Browse files
committed
fix: numpy < 2 compatibility
1 parent 6911ad6 commit 3ba9146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/rcsss/control/vive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def run(self):
130130
)
131131

132132
# Compute angle around z axis: https://stackoverflow.com/questions/21483999/using-atan2-to-find-angle-between-two-vectors
133-
rot_z = np.atan2(x_axis_rot.translation()[1], x_axis_rot.translation()[0]) - np.atan2(
133+
rot_z = np.arctan2(x_axis_rot.translation()[1], x_axis_rot.translation()[0]) - np.arctan2(
134134
x_axis.translation()[1], x_axis.translation()[0]
135135
)
136136
rot_z -= np.pi / 2

0 commit comments

Comments
 (0)