MRPT
2.0.1
|
#include <gtest/gtest.h>
#include <mrpt/config.h>
#include <mrpt/containers/copy_container_typecasting.h>
#include <mrpt/io/CFileGZInputStream.h>
#include <mrpt/maps/CSimplePointsMap.h>
#include <mrpt/math/CHistogram.h>
#include <mrpt/obs/CObservation3DRangeScan.h>
#include <mrpt/obs/CSensoryFrame.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/system/filesystem.h>
#include <test_mrpt_common.h>
Go to the source code of this file.
Functions | |
void | fillSampleObs (mrpt::obs::CObservation3DRangeScan &obs, mrpt::obs::T3DPointsProjectionParams &pp, int test_case) |
TEST (CObservation3DRangeScan, Project3D_noFilter) | |
TEST (CObservation3DRangeScan, Project3D_filterMinMax1) | |
TEST (CObservation3DRangeScan, Project3D_additionalLayers) | |
TEST (CObservation3DRangeScan, Project3D_filterMinMaxAllBetween) | |
TEST (CObservation3DRangeScan, Project3D_filterMinMaxNoneBetween) | |
TEST (CObservation3DRangeScan, Project3D_filterMin) | |
TEST (CObservation3DRangeScan, Project3D_filterMax) | |
TEST (CObservation3DRangeScan, LoadAndCheckFloorPoints) | |
TEST (CObservation3DRangeScan, SyntheticRange) | |
TEST (CObservation3DRangeScan, SyntheticDepth) | |
Variables | |
constexpr unsigned int | TEST_RANGEIMG_WIDTH = 32 |
constexpr unsigned int | TEST_RANGEIMG_HEIGHT = 24 |
constexpr float | SECOND_LAYER_CONSTANT_RANGE = 50.0f |
void fillSampleObs | ( | mrpt::obs::CObservation3DRangeScan & | obs, |
mrpt::obs::T3DPointsProjectionParams & | pp, | ||
int | test_case | ||
) |
Definition at line 35 of file CObservation3DRangeScan_unittest.cpp.
References mrpt::obs::CObservation3DRangeScan::cameraParams, mrpt::img::TCamera::cx(), mrpt::img::TCamera::cy(), mrpt::math::MatrixVectorBase< Scalar, Derived >::fill(), mrpt::img::TCamera::fx(), mrpt::img::TCamera::fy(), mrpt::obs::CObservation3DRangeScan::hasRangeImage, mrpt::img::TCamera::ncols, mrpt::img::TCamera::nrows, mrpt::obs::CObservation3DRangeScan::rangeImage, mrpt::obs::CObservation3DRangeScan::rangeImage_setSize(), mrpt::obs::CObservation3DRangeScan::rangeImageOtherLayers, mrpt::obs::CObservation3DRangeScan::rangeUnits, SECOND_LAYER_CONSTANT_RANGE, mrpt::math::MatrixVectorBase< Scalar, Derived >::setZero(), mrpt::obs::T3DPointsProjectionParams::takeIntoAccountSensorPoseOnRobot, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::T3DPointsProjectionParams::USE_SSE2.
Referenced by TEST().
TEST | ( | CObservation3DRangeScan | , |
Project3D_noFilter | |||
) |
Definition at line 70 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::CObservation3DRangeScan::points3D_x, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
Project3D_filterMinMax1 | |||
) |
Definition at line 86 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::CObservation3DRangeScan::points3D_x, mrpt::obs::TRangeImageFilterParams::rangeCheckBetween, mrpt::obs::TRangeImageFilterParams::rangeMask_max, mrpt::obs::TRangeImageFilterParams::rangeMask_min, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
Project3D_additionalLayers | |||
) |
Definition at line 113 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::T3DPointsProjectionParams::layer, mrpt::obs::CObservation3DRangeScan::points3D_x, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
Project3D_filterMinMaxAllBetween | |||
) |
Definition at line 132 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::CObservation3DRangeScan::points3D_x, mrpt::obs::TRangeImageFilterParams::rangeCheckBetween, mrpt::obs::TRangeImageFilterParams::rangeMask_max, mrpt::obs::TRangeImageFilterParams::rangeMask_min, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
Project3D_filterMinMaxNoneBetween | |||
) |
Definition at line 161 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::CObservation3DRangeScan::points3D_x, mrpt::obs::TRangeImageFilterParams::rangeCheckBetween, mrpt::obs::TRangeImageFilterParams::rangeMask_max, mrpt::obs::TRangeImageFilterParams::rangeMask_min, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
Project3D_filterMin | |||
) |
Definition at line 190 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::CObservation3DRangeScan::points3D_x, mrpt::obs::TRangeImageFilterParams::rangeMask_min, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
Project3D_filterMax | |||
) |
Definition at line 214 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), fillSampleObs(), mrpt::obs::CObservation3DRangeScan::points3D_x, mrpt::obs::TRangeImageFilterParams::rangeMask_max, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, and mrpt::obs::CObservation3DRangeScan::unprojectInto().
TEST | ( | CObservation3DRangeScan | , |
LoadAndCheckFloorPoints | |||
) |
Definition at line 238 of file CObservation3DRangeScan_unittest.cpp.
References mrpt::math::CHistogram::add(), mrpt::serialization::archiveFrom(), mrpt::math::CHistogram::clear(), mrpt::containers::copy_container_typecasting(), mrpt::system::fileExists(), mrpt::math::CHistogram::getHistogram(), mrpt::obs::CSensoryFrame::getObservationByClass(), mrpt::maps::CPointsMap::getPointsBufferRef_z(), and mrpt::obs::T3DPointsProjectionParams::takeIntoAccountSensorPoseOnRobot.
TEST | ( | CObservation3DRangeScan | , |
SyntheticRange | |||
) |
Definition at line 320 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), EXPECT_NEAR(), mrpt::math::MatrixVectorBase< Scalar, Derived >::fill(), fillSampleObs(), mrpt::poses::CPose3D::FromString(), mrpt::maps::CPointsMap::getPoint(), mrpt::poses::CPose3D::inverseComposePoint(), mrpt::math::TPoint3D_< T >::norm(), R, mrpt::obs::CObservation3DRangeScan::range_is_depth, mrpt::obs::CObservation3DRangeScan::rangeImage, mrpt::obs::CObservation3DRangeScan::rangeUnits, mrpt::obs::CObservation3DRangeScan::sensorPose, mrpt::maps::CPointsMap::size(), mrpt::obs::T3DPointsProjectionParams::takeIntoAccountSensorPoseOnRobot, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, mrpt::obs::CObservation3DRangeScan::unprojectInto(), mrpt::math::TPoint3D_data< T >::x, mrpt::math::TPoint3D_data< T >::y, and mrpt::math::TPoint3D_data< T >::z.
TEST | ( | CObservation3DRangeScan | , |
SyntheticDepth | |||
) |
Definition at line 357 of file CObservation3DRangeScan_unittest.cpp.
References EXPECT_EQ(), EXPECT_NEAR(), mrpt::math::MatrixVectorBase< Scalar, Derived >::fill(), fillSampleObs(), mrpt::poses::CPose3D::FromString(), mrpt::maps::CPointsMap::getPoint(), mrpt::poses::CPose3D::inverseComposePoint(), R, mrpt::obs::CObservation3DRangeScan::range_is_depth, mrpt::obs::CObservation3DRangeScan::rangeImage, mrpt::obs::CObservation3DRangeScan::rangeUnits, mrpt::obs::CObservation3DRangeScan::sensorPose, mrpt::maps::CPointsMap::size(), mrpt::obs::T3DPointsProjectionParams::takeIntoAccountSensorPoseOnRobot, TEST_RANGEIMG_HEIGHT, TEST_RANGEIMG_WIDTH, mrpt::obs::CObservation3DRangeScan::unprojectInto(), mrpt::math::TPoint3D_data< T >::x, mrpt::math::TPoint3D_data< T >::y, and mrpt::math::TPoint3D_data< T >::z.
constexpr float SECOND_LAYER_CONSTANT_RANGE = 50.0f |
Definition at line 33 of file CObservation3DRangeScan_unittest.cpp.
Referenced by fillSampleObs().
constexpr unsigned int TEST_RANGEIMG_HEIGHT = 24 |
Definition at line 31 of file CObservation3DRangeScan_unittest.cpp.
Referenced by fillSampleObs(), and TEST().
constexpr unsigned int TEST_RANGEIMG_WIDTH = 32 |
Definition at line 30 of file CObservation3DRangeScan_unittest.cpp.
Referenced by fillSampleObs(), and TEST().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |