Skip to content

Commit

Permalink
Merge pull request #1663 from borglab/fix/template-project3-expression
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal authored Oct 31, 2023
2 parents b5d19fb + a06303e commit ba23e45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gtsam/slam/expressions.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ Point2_ project2(const Expression<CAMERA>& camera_, const Expression<POINT>& p_)
namespace internal {
// Helper template for project3 expression below
template <class CALIBRATION, class POINT>
inline Point2 project6(const Pose3& x, const Point3& p, const Cal3_S2& K,
inline Point2 project6(const Pose3& x, const POINT& p, const CALIBRATION& K,
OptionalJacobian<2, 6> Dpose, OptionalJacobian<2, 3> Dpoint,
OptionalJacobian<2, 5> Dcal) {
return PinholeCamera<Cal3_S2>(x, K).project(p, Dpose, Dpoint, Dcal);
OptionalJacobian<2, CALIBRATION::dimension> Dcal) {
return PinholeCamera<CALIBRATION>(x, K).project(p, Dpose, Dpoint, Dcal);
}
}

Expand Down

0 comments on commit ba23e45

Please sign in to comment.