1 #ifndef _DEPTH_MAP_PREPROCESSING_POINTCLOUD_CONVERSION_HPP_ 2 #define _DEPTH_MAP_PREPROCESSING_POINTCLOUD_CONVERSION_HPP_ 4 #include <base-logging/Logging.hpp> 5 #include <base/samples/DepthMap.hpp> 28 const TransformationVector& depth_map_transforms,
54 if(depth_map_sample.timestamps.front() <= depth_map_sample.timestamps.back())
55 depth_map_sample.convertDepthMapToPointCloud(pointcloud, laserLinesToLatestLine.front(), laserLinesToLatestLine.back(),
58 depth_map_sample.convertDepthMapToPointCloud(pointcloud, laserLinesToLatestLine.back(), laserLinesToLatestLine.front(),
62 else if((motion_compensation ==
Horizontal && laserLinesToLatestLine.size() == depth_map_sample.horizontal_size) ||
63 (motion_compensation ==
Vertical && laserLinesToLatestLine.size() == depth_map_sample.vertical_size))
65 if(depth_map_sample.timestamps.front() <= depth_map_sample.timestamps.back())
66 depth_map_sample.convertDepthMapToPointCloud(pointcloud, laserLinesToLatestLine,
67 true,
true, motion_compensation ==
Horizontal ?
false :
true);
71 for(
unsigned i = 1; i <= laserLinesToLatestLine.size(); i++)
72 laserLinesToLatestLine_reverse[laserLinesToLatestLine.size()-i] = laserLinesToLatestLine[i-1];
73 depth_map_sample.convertDepthMapToPointCloud(pointcloud, laserLinesToLatestLine_reverse,
74 true,
true, motion_compensation ==
Horizontal ?
false :
true);
MotionCompensation
Definition: Config.hpp:22
static bool convertToPointCloud(const base::samples::DepthMap &depth_map_sample, const TransformationVector &depth_map_transforms, MotionCompensation motion_compensation, std::vector< T > &pointcloud)
Definition: PointCloudConversion.hpp:45
Definition: PointCloudConversion.hpp:13
Definition: Config.hpp:27
static void computeLocalTransfromations(const TransformationVector &transformations, TransformationVector &laserLinesInLatestLine)
Definition: PointCloudConversion.cpp:5
Definition: Config.hpp:26
Definition: Config.hpp:25
Definition: Config.hpp:28
std::vector< Eigen::Affine3d, Eigen::aligned_allocator< Eigen::Affine3d > > TransformationVector
Definition: PointCloudConversion.hpp:16