Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix SE(3) matrix multiplication bug #200

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

nim65s
Copy link
Collaborator

@nim65s nim65s commented Dec 29, 2024

@@ -132,7 +132,7 @@ def __getitem__(self, frame_id):
RCO = np.array(annotation[n]["cam_R_m2c"]).reshape(3, 3)
tCO = np.array(annotation[n]["cam_t_m2c"]) * 0.001
TCO = Transform(RCO, tCO)
T0O = T0C * TCO
Copy link
Collaborator

@MedericFourmy MedericFourmy Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix is strange.
T0C and TCO are at this point of type Transform defined here. This type implements the __mul__ operator as multiplication * between the underlying pin.SE3 objects, which corresponds to matrix multiplication betweeen the two homogeneous matrices.
On the other hand, __matmul__ is not implemented, which should result in a runtime error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants