Skip to content

Commit 0673263

Browse files
committed
angle format issue
1 parent 775fcc4 commit 0673263

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

PiSideCode/processing/pose_processing.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ def __init__(self, tag_processor, tag_length):
6666

6767
rot = pose.rotation().rotateBy(wpi.Rotation3d(0, 0, np.pi))
6868
translation = np.asarray((pose.X(), pose.Y(), pose.Z())).reshape(3, 1)
69-
rot, _ = cv2.Rodrigues(
70-
np.asarray((rot.X(), rot.Y(), rot.Z())).reshape(3, 1)
71-
)
72-
self.tag_transforms[tag_id] = PoseProcessor.get_transform(translation, rot)
69+
self.tag_transforms[tag_id] = PoseProcessor.get_transform(translation, rot.toMatrix())
7370

7471
# Set AprilTag side length in meters
7572
def set_tag_size(self, size: float):

0 commit comments

Comments
 (0)