MRPT  2.0.4
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-2020, 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  const std::string fil =
17  mrpt::UNITTEST_BASEDIR +
18  std::string("/share/mrpt/datasets/localization_demo.simplemap.gz");
19 
21  const bool load_ok = sm.loadFromFile(fil);
22  EXPECT_TRUE(load_ok);
23  EXPECT_EQ(sm.size(), 72U);
24 }
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
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
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 5711e29ae Wed May 27 14:29:47 2020 +0200 at miƩ may 27 14:30:10 CEST 2020