Skip to content

Commit

Permalink
Add ambiguous calibrate/uncalibrate declarations.
Browse files Browse the repository at this point in the history
Without declaring calibrate / uncalibrated in the interface specification, the functions of the Base class Cal3DS2_Base is called.
The layout of the optional Jacobian matrix is 2x10 in Cal3Unified and 2x9 in Cal3DS2_Base, so this are different function calls.
  • Loading branch information
roderick-koehle authored Jul 10, 2021
1 parent 0304992 commit d54e234
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gtsam/gtsam.i
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,12 @@ virtual class Cal3Unified : gtsam::Cal3DS2_Base {
gtsam::Cal3Unified retract(Vector v) const;
Vector localCoordinates(const gtsam::Cal3Unified& c) const;

// Action on Point2
// Note: the signature of this functions differ from the functions
// with equal name in the base class.
gtsam::Point2 calibrate(const gtsam::Point2& p) const;
gtsam::Point2 uncalibrate(const gtsam::Point2& p) const;

// enabling serialization functionality
void serialize() const;

Expand Down

0 comments on commit d54e234

Please sign in to comment.