20 #include <boost/math/constants/constants.hpp> 30 using namespace gtsam;
43 for(
int j=0;
j<6; ++
j) {
virtual const Values & optimize()
Concept check for values that can be used in unit tests.
Provides convenient mappings of common member functions for testing.
static int runAllTests(TestResult &result)
Factor Graph consisting of non-linear factors.
void insert(Key j, const Value &val)
Some functions to compute numerical derivatives.
void addPrior(Key key, const T &prior, const SharedNoiseModel &model=nullptr)
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
#define EXPECT(condition)
BetweenFactor< Rot3 > Between
Array< double, 1, 3 > e(1./3., 0.5, 2.)
NonlinearFactorGraph Graph
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
static Rot3 Rz(double t)
Rotation around Z axis as in http://en.wikipedia.org/wiki/Rotation_matrix, counterclockwise when look...
TEST(LPInitSolver, InfiniteLoopSingleVar)
static shared_ptr Sigma(size_t dim, double sigma, bool smart=true)
3D rotation represented as a rotation matrix or quaternion