27 using namespace gtsam;
33 Rot3_ rot3_expr(
'r', 0);
35 Pose3_ pose_expr(&Pose3::Create, rot3_expr, t_expr);
36 CalibratedCamera_ camera_expr(&CalibratedCamera::Create, pose_expr);
38 Point2_ point2_expr = project2<CalibratedCamera>(camera_expr, point3_expr);
static Point2 project2(const CalibratedCamera &camera, const Point3 &point)
static int runAllTests(TestResult &result)
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
#define EXPECT_CORRECT_EXPRESSION_JACOBIANS(expression, values, numerical_derivative_step, tolerance)
Check the Jacobians produced by an expression against finite differences.
static const Line3 l(Rot3(), 1, 1)
gtsam::Expression< typename gtsam::traits< T >::TangentVector > logmap(const gtsam::Expression< T > &x1, const gtsam::Expression< T > &x2)
logmap
P unrotate(const T &r, const P &pt)
Test harness methods for expressions.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Calibrated camera for which only pose is unknown.
void insert(Key j, const Value &val)
Rot3 rotation(const Pose3 &pose, OptionalJacobian< 3, 6 > H)
TEST(SlamExpressions, project2)