MRPT  1.9.9
CSimpleMap_unittest.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | https://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6 | See: https://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See: https://www.mrpt.org/License |
8 +------------------------------------------------------------------------+ */
9 
10 #include <gtest/gtest.h>
11 #include <mrpt/maps/CSimpleMap.h>
12 #include <test_mrpt_common.h>
13 
14 TEST(CSimpleMap, ParseFileInFormat_v1_5)
15 {
16 #if MRPT_IS_BIG_ENDIAN
17  MRPT_TODO("Debug this issue in big endian platforms")
18  return; // Skip this test for now
19 #endif
20 
21  const std::string fil =
22  mrpt::UNITTEST_BASEDIR +
23  std::string("/share/mrpt/datasets/localization_demo.simplemap.gz");
24 
26  const bool load_ok = sm.loadFromFile(fil);
27  EXPECT_TRUE(load_ok);
28  EXPECT_EQ(sm.size(), 72U);
29 }
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
Definition: CSimpleMap.h:32
TEST(CSimpleMap, ParseFileInFormat_v1_5)
bool loadFromFile(const std::string &filName)
Load the contents of this object from a .simplemap binary file (possibly compressed with gzip) ...
Definition: CSimpleMap.cpp:297
size_t size() const
Returns the count of pairs (pose,sensory data)
Definition: CSimpleMap.cpp:53
GLsizei const GLchar ** string
Definition: glext.h:4116
#define MRPT_TODO(x)
Definition: common.h:129



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019