12 #include <gtest/gtest.h> 20 TEST(LightGeomData, PragmaPack)
24 EXPECT_TRUE(&
p.x==&(
p[0]));
25 EXPECT_TRUE(&
p.y==&(
p[1]));
29 EXPECT_TRUE(&
p.x==&(
p[0]));
30 EXPECT_TRUE(&
p.y==&(
p[1]));
31 EXPECT_TRUE(&
p.z==&(
p[2]));
35 EXPECT_TRUE(&
p.x==&(
p[0]));
36 EXPECT_TRUE(&
p.y==&(
p[1]));
37 EXPECT_TRUE(&
p.phi==&(
p[2]));
41 EXPECT_TRUE(&
p.x==&(
p[0]));
42 EXPECT_TRUE(&
p.y==&(
p[1]));
43 EXPECT_TRUE(&
p.z==&(
p[2]));
44 EXPECT_TRUE(&
p.yaw==&(
p[3]));
45 EXPECT_TRUE(&
p.pitch==&(
p[4]));
46 EXPECT_TRUE(&
p.roll==&(
p[5]));
50 EXPECT_TRUE(&
s.point1==&(
s[0]));
51 EXPECT_TRUE(&
s.point2==&(
s[1]));
55 TEST(LightGeomData, ExpectedMemorySizes)
57 EXPECT_EQ(
sizeof(
TPoint2D),2*
sizeof(
double));
58 EXPECT_EQ(
sizeof(
TPoint3D),3*
sizeof(
double));
59 EXPECT_EQ(
sizeof(
TPoint3Df),3*
sizeof(
float));
60 EXPECT_EQ(
sizeof(
TPose2D),3*
sizeof(
double));
61 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).