unit tests for Block Automatic Differentiation More...
#include <gtsam/nonlinear/expressions.h>
#include <gtsam/geometry/Cal3_S2.h>
#include <gtsam/geometry/PinholeCamera.h>
#include <gtsam/geometry/Point3.h>
#include <gtsam/base/Testable.h>
#include <CppUnitLite/TestHarness.h>
Go to the source code of this file.
Classes | |
class | Class |
struct | gtsam::traits< Class > |
Namespaces | |
binary | |
gtsam | |
traits | |
tree | |
unary | |
Typedefs | |
typedef Expression< Point3 > | Point3_ |
typedef Expression< Pose3 > | Pose3_ |
typedef Expression< Rot3 > | Rot3_ |
Functions | |
Rot3 | composeThree (const Rot3 &R1, const Rot3 &R2, const Rot3 &R3, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2, OptionalJacobian< 3, 3 > H3) |
double | binary::doubleF (const Pose3 &pose, const Point3 &point, OptionalJacobian< 1, 6 > H1, OptionalJacobian< 1, 3 > H2) |
Point2 | unary::f1 (const Point3 &p, OptionalJacobian< 2, 3 > H) |
double | unary::f2 (const Point3 &p, OptionalJacobian< 1, 3 > H) |
Vector | unary::f3 (const Point3 &p, OptionalJacobian< Eigen::Dynamic, 3 > H) |
int | main () |
TEST (Expression, Constant) | |
TEST (Expression, Leaf) | |
TEST (Expression, Leaves) | |
TEST (Expression, Unary1) | |
TEST (Expression, Unary2) | |
TEST (Expression, Unary3) | |
TEST (Expression, NullaryMethod) | |
TEST (Expression, BinaryToDouble) | |
TEST (Expression, BinaryKeys) | |
TEST (Expression, BinaryDimensions) | |
TEST (Expression, BinaryTraceSize) | |
TEST (Expression, TreeKeys) | |
TEST (Expression, TreeDimensions) | |
TEST (Expression, TreeTraceSize) | |
TEST (Expression, compose1) | |
TEST (Expression, compose2) | |
TEST (Expression, compose3) | |
TEST (Expression, compose4) | |
TEST (Expression, ternary) | |
TEST (Expression, ScalarMultiply) | |
TEST (Expression, BinarySum) | |
TEST (Expression, TripleSum) | |
TEST (Expression, PlusEqual) | |
TEST (Expression, SumOfUnaries) | |
TEST (Expression, UnaryOfSum) | |
TEST (Expression, WeightedSum) | |
TEST (Expression, Subtract) | |
TEST (Expression, LinearExpression) | |
template<class CAL > | |
Point2 | uncalibrate (const CAL &K, const Point2 &p, OptionalJacobian< 2, 5 > Dcal, OptionalJacobian< 2, 2 > Dp) |
Variables | |
const set< Key > | unary::expected {1} |
Point2(* | tree::f )(const Point3 &, OptionalJacobian< 2, 3 >) = &PinholeBase::Project |
Expression< Cal3_S2 > | tree::K (3) |
Point3_ | binary::p (2) |
Point3_ | binary::p_cam (x, &Pose3::transformTo, p) |
Point3_ | unary::pointExpression (1) |
Expression< Point2 > | tree::projection (f, p_cam) |
static const Rot3 | someR = Rot3::RzRyRx(1, 2, 3) |
Expression< Point2 > | tree::uv_hat (uncalibrate< Cal3_S2 >, K, projection) |
Pose3_ | binary::x (1) |
unit tests for Block Automatic Differentiation
Definition in file testExpression.cpp.
typedef Expression<Point3> Point3_ |
Definition at line 31 of file testExpression.cpp.
typedef Expression<Pose3> Pose3_ |
Definition at line 32 of file testExpression.cpp.
typedef Expression<Rot3> Rot3_ |
Definition at line 33 of file testExpression.cpp.
Rot3 composeThree | ( | const Rot3 & | R1, |
const Rot3 & | R2, | ||
const Rot3 & | R3, | ||
OptionalJacobian< 3, 3 > | H1, | ||
OptionalJacobian< 3, 3 > | H2, | ||
OptionalJacobian< 3, 3 > | H3 | ||
) |
Definition at line 307 of file testExpression.cpp.
int main | ( | void | ) |
Definition at line 542 of file testExpression.cpp.
TEST | ( | Expression | , |
Constant | |||
) |
Definition at line 46 of file testExpression.cpp.
TEST | ( | Expression | , |
Leaf | |||
) |
Definition at line 56 of file testExpression.cpp.
TEST | ( | Expression | , |
Leaves | |||
) |
Definition at line 68 of file testExpression.cpp.
TEST | ( | Expression | , |
Unary1 | |||
) |
Definition at line 93 of file testExpression.cpp.
TEST | ( | Expression | , |
Unary2 | |||
) |
Definition at line 100 of file testExpression.cpp.
TEST | ( | Expression | , |
Unary3 | |||
) |
Definition at line 107 of file testExpression.cpp.
TEST | ( | Expression | , |
NullaryMethod | |||
) |
Definition at line 136 of file testExpression.cpp.
TEST | ( | Expression | , |
BinaryToDouble | |||
) |
Definition at line 181 of file testExpression.cpp.
TEST | ( | Expression | , |
BinaryKeys | |||
) |
Definition at line 188 of file testExpression.cpp.
TEST | ( | Expression | , |
BinaryDimensions | |||
) |
Definition at line 195 of file testExpression.cpp.
TEST | ( | Expression | , |
BinaryTraceSize | |||
) |
Definition at line 203 of file testExpression.cpp.
TEST | ( | Expression | , |
TreeKeys | |||
) |
Definition at line 225 of file testExpression.cpp.
TEST | ( | Expression | , |
TreeDimensions | |||
) |
Definition at line 232 of file testExpression.cpp.
TEST | ( | Expression | , |
TreeTraceSize | |||
) |
Definition at line 240 of file testExpression.cpp.
TEST | ( | Expression | , |
compose1 | |||
) |
Definition at line 258 of file testExpression.cpp.
TEST | ( | Expression | , |
compose2 | |||
) |
Definition at line 270 of file testExpression.cpp.
TEST | ( | Expression | , |
compose3 | |||
) |
Definition at line 282 of file testExpression.cpp.
TEST | ( | Expression | , |
compose4 | |||
) |
Definition at line 294 of file testExpression.cpp.
TEST | ( | Expression | , |
ternary | |||
) |
Definition at line 319 of file testExpression.cpp.
TEST | ( | Expression | , |
ScalarMultiply | |||
) |
Definition at line 331 of file testExpression.cpp.
TEST | ( | Expression | , |
BinarySum | |||
) |
Definition at line 362 of file testExpression.cpp.
TEST | ( | Expression | , |
TripleSum | |||
) |
Definition at line 393 of file testExpression.cpp.
TEST | ( | Expression | , |
PlusEqual | |||
) |
Definition at line 415 of file testExpression.cpp.
TEST | ( | Expression | , |
SumOfUnaries | |||
) |
Definition at line 438 of file testExpression.cpp.
TEST | ( | Expression | , |
UnaryOfSum | |||
) |
Definition at line 456 of file testExpression.cpp.
TEST | ( | Expression | , |
WeightedSum | |||
) |
Definition at line 480 of file testExpression.cpp.
TEST | ( | Expression | , |
Subtract | |||
) |
Definition at line 505 of file testExpression.cpp.
TEST | ( | Expression | , |
LinearExpression | |||
) |
Definition at line 522 of file testExpression.cpp.
Point2 uncalibrate | ( | const CAL & | K, |
const Point2 & | p, | ||
OptionalJacobian< 2, 5 > | Dcal, | ||
OptionalJacobian< 2, 2 > | Dp | ||
) |
Definition at line 37 of file testExpression.cpp.
|
static |
Definition at line 42 of file testExpression.cpp.