Go to the documentation of this file.
30 #include <type_traits>
32 using namespace std::placeholders;
33 using namespace gtsam;
35 static double inf = std::numeric_limits<double>::infinity();
57 inline constexpr
static auto dimension = 0;
58 void print(
const std::string&
str =
"")
const {}
60 size_t dim()
const {
return 0; }
264 Matrix23
M1 = Matrix23::Zero(),
M2 = Matrix23::Zero();
397 KeyVector::const_iterator itAct = actual.begin(), itExp =
expected.begin();
398 for (; itAct != actual.end() && itExp !=
expected.end(); ++itAct, ++itExp) {
468 auto extracted_pose3s =
values.extract<
Pose3>(Symbol::ChrTest(
'y'));
640 Matrix13
v;
v << 5.0, 6.0, 7.0;
644 "Values with 1 values:\nValue v1: (Eigen::Matrix<double, 1, 3, 1, 1, "
645 "3>)\n[\n 5, 6, 7\n]\n\n";
648 "Values with 1 values:\nValue v1: "
649 "(class Eigen::Matrix<double,1,3,1,1,3>)\n[\n 5, 6, 7\n]\n\n";
657 const Pose2 poseA(1.0, 2.0, 0.3), poseC(.0, .0, .0);
const Symbol key1('v', 1)
static int runAllTests(TestResult &result)
bool exists(Key j)
Check whether a variable with key j exists.
#define CHECK_EXCEPTION(condition, exception_name)
static int DestructorCount
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;Map< MatrixXf > M2(M1.data(), 6, 2)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
#define EXPECT_LONGS_EQUAL(expected, actual)
Concept check for values that can be used in unit tests.
#define EXPECT(condition)
void retractMasked(const VectorValues &delta, const KeySet &mask)
bool assert_print_equal(const std::string &expected, const V &actual, const std::string &s="")
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
static Pose3 pose3(rt3, pt3)
TestValue retract(const Vector &, OptionalJacobian< dimension, dimension > H1={}, OptionalJacobian< dimension, dimension > H2={}) const
GenericValue< T > genericValue(const T &v)
Both ManifoldTraits and Testable.
void update(Key j, const Value &val)
TestValues(const TestValue &value1, const TestValue &value2)
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Provides additional testing facilities for common data structures.
VectorValues localCoordinates(const Values &cp) const
const ValueType at(Key j) const
Values retract(const VectorValues &delta) const
const Symbol key2('v', 2)
Vector localCoordinates(const TestValue &, OptionalJacobian< dimension, dimension > H1={}, OptionalJacobian< dimension, dimension > H2={}) const
#define DOUBLES_EQUAL(expected, actual, threshold)
bool equals(const TestValue &other, double tol=1e-9) const
const Symbol key3('v', 3)
bool equals(const Values &other, double tol=1e-9) const
void insert(Key j, const Vector &value)
const gtsam::Symbol key('X', 0)
std::vector< float > Values
static const Pose3 pose1(Rot3(), Point3(0, 1, 0.5))
static int ConstructorCount
void insert(Key j, const Value &val)
Array< int, Dynamic, 1 > v
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
const Symbol key4('v', 4)
void insert_or_assign(Key j, const Vector &value)
insert_or_assign() , similar to Values.h
std::uint64_t Key
Integer nonlinear key type.
void print(const std::string &str="") const
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
bool equal(const T &obj1, const T &obj2, double tol)
internal::nested_eval< T, 1 >::type eval(const T &xpr)
#define LONGS_EQUAL(expected, actual)
A non-templated config holding any types of Manifold-group elements.
3D Pose manifold SO(3) x R^3 and group SE(3)
TestValueData(const TestValueData &other)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:17:41