10 #include <gtest/gtest.h>    18 #include <test_mrpt_common.h>    20 TEST(CObservationRotatingScan, fromKittiUndistorted)
    23     const auto fil = mrpt::UNITTEST_BASEDIR + 
"/tests/kitti_00_000000.bin.gz"s;
    26     bool read_ok = pts->loadFromKittiVelodyneFile(fil);
    32     pts->saveToKittiVelodyneFile(
"/tmp/a.bin.gz");
    33     pts->saveXYZI_to_text_file(
"/tmp/a.txt");
    42 TEST(CObservationRotatingScan, fromVelodyne)
    46                      "/datasets/test_velodyne_VLP16.rawlog"s;
    66 TEST(CObservationRotatingScan, from2DScan)
 
A CObservation-derived class for RAW DATA (and optionally, point cloud) of scans from 3D Velodyne LID...
 
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
 
std::string getShareMRPTDir()
Attempts to find the directory [PREFIX/]share/mrpt/ and returns its absolute path, or empty string if not found. 
 
T::ConstPtr asObservation(size_t index) const
Get the i'th observation as an observation of the given type. 
 
An observation from any sensor that can be summarized as a pointcloud. 
 
void fromVelodyne(const mrpt::obs::CObservationVelodyneScan &o)
 
bool loadFromRawLogFile(const std::string &fileName, bool non_obs_objects_are_legal=false)
Load the contents from a file containing one of these possibilities: 
 
TEST(CObservationRotatingScan, fromKittiUndistorted)
 
This class stores a rawlog (robotic datasets) in one of two possible formats: 
 
static Ptr Create(Args &&... args)
 
CSensoryFrame::Ptr getAsObservations(size_t index) const
Returns the i'th element in the sequence, as being an action, where index=0 is the first object...
 
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
 
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
 
void fromScan2D(const mrpt::obs::CObservation2DRangeScan &o)
 
EXPECT_NEAR(out.cam_params.rightCameraPose.x, 0.1194, 0.005)
 
A CObservation-derived class for raw range data from a 2D or 3D rotating scanner. ...