MRPT  1.9.9
CSimpleMap_unittest.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | http://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6 | See: http://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See details in http://www.mrpt.org/License |
8 +------------------------------------------------------------------------+ */
9 
10 #include <mrpt/maps/CSimpleMap.h>
11 #include <gtest/gtest.h>
12 
13 // Defined in tests/test_main.cpp
14 namespace mrpt
15 {
17 }
18 
19 TEST(CSimpleMap, ParseFileInFormat_v1_5)
20 {
21 #if MRPT_IS_BIG_ENDIAN
22  MRPT_TODO("Debug this issue in big endian platforms")
23  return; // Skip this test for now
24 #endif
25 
26  const std::string fil =
28  std::string("/share/mrpt/datasets/localization_demo.simplemap.gz");
29 
31  const bool load_ok = sm.loadFromFile(fil);
32  EXPECT_TRUE(load_ok);
33  EXPECT_EQ(sm.size(),72U);
34 }
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
Definition: CSimpleMap.h:33
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:290
size_t size() const
Returns the count of pairs (pose,sensory data)
Definition: CSimpleMap.cpp:53
GLsizei const GLchar ** string
Definition: glext.h:4101
std::string MRPT_GLOBAL_UNITTEST_SRC_DIR
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define MRPT_TODO(x)
Definition: common.h:129



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020