Fix wrapper

release/4.3a0
Frank Dellaert 2024-10-28 12:15:50 -07:00
parent b45c55c9f4
commit 2d170e4cac
2 changed files with 2 additions and 2 deletions

View File

@ -911,7 +911,7 @@ class Cal3Bundler {
class FundamentalMatrix { class FundamentalMatrix {
// Constructors // Constructors
FundamentalMatrix(); FundamentalMatrix();
FundamentalMatrix(const gtsam::Rot3& U, double s, const gtsam::Rot3& V); FundamentalMatrix(const gtsam::Matrix3& U, double s, const gtsam::Matrix3& V);
FundamentalMatrix(const gtsam::Matrix3& F); FundamentalMatrix(const gtsam::Matrix3& F);
// Overloaded constructors for specific calibration types // Overloaded constructors for specific calibration types

View File

@ -29,7 +29,7 @@ class TestFundamentalMatrix(unittest.TestCase):
self.trueU = Rot3.Yaw(np.pi / 2) self.trueU = Rot3.Yaw(np.pi / 2)
self.trueV = Rot3.Yaw(np.pi / 4) self.trueV = Rot3.Yaw(np.pi / 4)
self.trueS = 0.5 self.trueS = 0.5
self.trueF = FundamentalMatrix(self.trueU, self.trueS, self.trueV) self.trueF = FundamentalMatrix(self.trueU.matrix(), self.trueS, self.trueV.matrix())
def test_localCoordinates(self): def test_localCoordinates(self):
expected = np.zeros(7) # Assuming 7 dimensions for U, V, and s expected = np.zeros(7) # Assuming 7 dimensions for U, V, and s