12 #include <gtest/gtest.h> 26 TEST(LightGeomData, PragmaPack)
30 EXPECT_TRUE(&
p.x == &(
p[0]));
31 EXPECT_TRUE(&
p.y == &(
p[1]));
35 EXPECT_TRUE(&
p.x == &(
p[0]));
36 EXPECT_TRUE(&
p.y == &(
p[1]));
37 EXPECT_TRUE(&
p.z == &(
p[2]));
41 EXPECT_TRUE(&
p.x == &(
p[0]));
42 EXPECT_TRUE(&
p.y == &(
p[1]));
43 EXPECT_TRUE(&
p.phi == &(
p[2]));
47 EXPECT_TRUE(&
p.x == &(
p[0]));
48 EXPECT_TRUE(&
p.y == &(
p[1]));
49 EXPECT_TRUE(&
p.z == &(
p[2]));
50 EXPECT_TRUE(&
p.yaw == &(
p[3]));
51 EXPECT_TRUE(&
p.pitch == &(
p[4]));
52 EXPECT_TRUE(&
p.roll == &(
p[5]));
56 EXPECT_TRUE(&
s.point1 == &(
s[0]));
57 EXPECT_TRUE(&
s.point2 == &(
s[1]));
61 TEST(LightGeomData, ExpectedMemorySizes)
63 EXPECT_EQ(
sizeof(
TPoint2D), 2 *
sizeof(
double));
64 EXPECT_EQ(
sizeof(
TPoint3D), 3 *
sizeof(
double));
65 EXPECT_EQ(
sizeof(
TPoint3Df), 3 *
sizeof(
float));
66 EXPECT_EQ(
sizeof(
TPose2D), 3 *
sizeof(
double));
67 EXPECT_EQ(
sizeof(
TPose3D), 6 *
sizeof(
double));
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
This base provides a set of functions for maths stuff.
2D segment, consisting of two points.
Lightweight 3D point (float version).
TEST(LightGeomData, PragmaPack)
Lightweight 3D pose (three spatial coordinates, plus a quaternion ).
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).