12 #include <gtest/gtest.h>    20 namespace mrpt { 
namespace utils {
    25 #include <mrpt/config.h>    34                 std::cerr << 
"WARNING: Skipping test due to missing file: " << fil << 
"\n";
    48         size_t nScans = 0, nGPS=0;
    50         for (
size_t i=0;i<1000 && rx_ok;i++)
    52                 mrpt::obs::CObservationVelodyneScanPtr scan;
    53                 mrpt::obs::CObservationGPSPtr          gps;
    56                 scan->generatePointCloud();
    70                 std::cerr << 
"WARNING: Skipping test due to missing file: " << fil << 
"\n";
    87         for (
size_t i=0;i<1000 && rx_ok;i++)
    89                 mrpt::obs::CObservationVelodyneScanPtr scan;
    90                 mrpt::obs::CObservationGPSPtr          gps;
    98 #endif // MRPT_HAS_LIBPCAP 
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL. 
 
std::string MRPT_GLOBAL_UNITTEST_SRC_DIR
 
A C++ interface to Velodyne laser scanners (HDL-64, HDL-32, VLP-16), working on Linux and Windows...
 
void setPCAPInputFile(const std::string &pcap_file)
Enables reading from a PCAP file instead of live UDP packet listening. 
 
void setPCAPVerbosity(const bool verbose)
Enables/disables PCAP info messages to console (default: true) 
 
void enableVerbose(bool enabled=true)
Enable or disable extra debug info dumped to std::cout during sensor operation. 
 
bool BASE_IMPEXP fileExists(const std::string &fileName)
Test if a given file (or directory) exists. 
 
Contains classes for various device interfaces. 
 
void setModelName(const model_t model)
See supported model names in the general discussion docs for mrpt::hwdrivers::CVelodyneScanner. 
 
virtual void initialize()
Tries to initialize the sensor driver, after setting all the parameters with a call to loadConfig...
 
TEST(Compress, DataBlockGZ)
 
GLsizei const GLchar ** string
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
bool getNextObservation(mrpt::obs::CObservationVelodyneScanPtr &outScan, mrpt::obs::CObservationGPSPtr &outGPS)
Polls the UDP port for incoming data packets. 
 
void setPCAPInputFileReadOnce(bool read_once)