10 #include <gtest/gtest.h>    14 #include <test_mrpt_common.h>    22 TEST(TopographyReconstructPathFrom3RTK, sampleDataset)
    28     const string dataset_fil =
    29         UNITTEST_BASEDIR + string(
"/share/mrpt/datasets/test_rtk_path.rawlog");
    32         cerr << 
"WARNING: Skipping test due to missing file: " << dataset_fil
    38         cerr << 
"WARNING: Skipping test due to error loading file: "    39              << dataset_fil << 
"\n";
    65             std::chrono::seconds(1226225355 + 11644473600));
    67             std::chrono::seconds(1226225380 + 11644473600));
    69             279.696, 216.623, 9.21315, 0.195764, -0.0319733, -0.0420478);
    71             377.087, 233.311, 10.474, 0.178932, -0.0212096, -0.0154982);
 EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
 
std::chrono::time_point< Clock > time_point
 
TEST(TopographyReconstructPathFrom3RTK, sampleDataset)
 
bool fileExists(const std::string &fileName)
Test if a given file (or directory) exists. 
 
Used to return optional information from mrpt::topography::path_from_rtk_gps. 
 
bool loadFromRawLogFile(const std::string &fileName, bool non_obs_objects_are_legal=false)
Load the contents from a file containing one of these possibilities: 
 
This base provides a set of functions for maths stuff. 
 
This class stores a rawlog (robotic datasets) in one of two possible formats: 
 
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
pose_t & interpolate(const mrpt::Clock::time_point &t, pose_t &out_interp, bool &out_valid_interp) const
Returns the pose at a given time, or interpolates using splines if there is not an exact match...
 
void path_from_rtk_gps(mrpt::poses::CPose3DInterpolator &robot_path, const mrpt::obs::CRawlog &rawlog, size_t rawlog_first, size_t rawlog_last, bool isGUI=false, bool disableGPSInterp=false, int path_smooth_filter_size=2, TPathFromRTKInfo *outInfo=nullptr)
Reconstruct the path of a vehicle equipped with 3 RTK GPSs. 
 
A class used to store a 3D pose (a 3D translation + a rotation in 3D). 
 
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
 
This class stores a time-stamped trajectory in SE(3) (CPose3D poses). 
 
EXPECT_NEAR(out.cam_params.rightCameraPose.x, 0.1194, 0.005)
 
This namespace provides topography helper functions, coordinate transformations. 
 
void getAs12Vector(ARRAYORVECTOR &vec12) const
Get the pose representation as an array with these 12 elements: [r11 r21 r31 r12 r22 r32 r13 r23 r33 ...
 
size_t size() const
Returns the number of actions / observations object in the sequence.