Go to the documentation of this file.
13 #include <gtest/gtest.h>
27 TEST(TopographyReconstructPathFrom3RTK, sampleDataset)
33 const string dataset_fil =
35 string(
"/share/mrpt/datasets/test_rtk_path.rawlog");
38 cerr <<
"WARNING: Skipping test due to missing file: " << dataset_fil
44 cerr <<
"WARNING: Skipping test due to error loading file: "
45 << dataset_fil <<
"\n";
63 EXPECT_EQ(robot_path.
size(), 75u);
75 279.696, 216.623, 9.21315, 0.195764, -0.0319733, -0.0420478);
77 377.087, 233.311, 10.474, 0.178932, -0.0212096, -0.0154982);
95 EXPECT_NEAR((p1vec - p1vec_gt).array().abs().
sum(), 0, 1e-3);
96 EXPECT_NEAR((p2vec - p2vec_gt).array().abs().
sum(), 0, 1e-3);
CONTAINER::Scalar sum(const CONTAINER &v)
Computes the sum of all the elements.
This class stores a rawlog (robotic datasets) in one of two possible formats:
mrpt::system::TTimeStamp time_tToTimestamp(const double t)
Transform from standard "time_t" (actually a double number, it can contain fractions of seconds) to T...
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction.
Used to return optional information from mrpt::topography::path_from_rtk_gps.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
pose_t & interpolate(mrpt::system::TTimeStamp 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.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
bool fileExists(const std::string &fileName)
Test if a given file (or directory) exists.
This class stores a time-stamped trajectory in SE(3) (CPose3D poses).
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
bool loadFromRawLogFile(const std::string &fileName, bool non_obs_objects_are_legal=false)
Load the contents from a file containing one of these possibilities:
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 ...
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.
size_t size() const
Returns the number of actions / observations object in the sequence.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
std::string MRPT_GLOBAL_UNITTEST_SRC_DIR
This namespace provides topography helper functions, coordinate transformations.
This base provides a set of functions for maths stuff.
GLsizei const GLchar ** string
TEST(TopographyReconstructPathFrom3RTK, sampleDataset)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |