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)
void insert(Key j, const Value &val)
#define EXPECT_CORRECT_EXPRESSION_JACOBIANS(expression, values, numerical_derivative_step, tolerance)
Check the Jacobians produced by an expression against finite differences.
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.
Rot3 rotation(const Pose3 &pose, OptionalJacobian< 3, 6 > H)
TEST(SlamExpressions, project2)