Go to the documentation of this file.
24 using namespace gtsam;
44 if(
sizeof(
Key) == 8) {
46 Key key = 0x7841000000000005;
55 }
else if(
sizeof(
Key) == 4) {
72 EXPECT(LabeledSymbol::TypeTest(
'c')(
key));
73 EXPECT(!LabeledSymbol::TypeTest(
'd')(
key));
74 EXPECT(LabeledSymbol::LabelTest(
'A')(
key));
75 EXPECT(!LabeledSymbol::LabelTest(
'D')(
key));
76 EXPECT(LabeledSymbol::TypeLabelTest(
'c',
'A')(
key));
77 EXPECT(!LabeledSymbol::TypeLabelTest(
'c',
'D')(
key));
92 EXPECT(
"special" == ss2.str());
97 EXPECT(
"cA3" == ss3.str());
static int runAllTests(TestResult &result)
TEST(LabeledSymbol, KeyLabeledSymbolConversion)
#define EXPECT_LONGS_EQUAL(expected, actual)
Concept check for values that can be used in unit tests.
#define EXPECT(condition)
Provides additional testing facilities for common data structures.
static const gtsam::KeyFormatter MultiRobotKeyFormatter
Key symbol(unsigned char c, std::uint64_t j)
string labeledSymbolMyFormatter(Key key)
const gtsam::Symbol key('X', 0)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
std::uint64_t Key
Integer nonlinear key type.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:47