Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CARTOGRAPHER_SENSOR_POINT_CLOUD_H_
00018 #define CARTOGRAPHER_SENSOR_POINT_CLOUD_H_
00019
00020 #include <vector>
00021
00022 #include "Eigen/Core"
00023 #include "cartographer/sensor/proto/sensor.pb.h"
00024 #include "cartographer/sensor/rangefinder_point.h"
00025 #include "cartographer/transform/rigid_transform.h"
00026 #include "glog/logging.h"
00027
00028 namespace cartographer {
00029 namespace sensor {
00030
00031
00032
00033 using PointCloud = std::vector<RangefinderPoint>;
00034
00035
00036
00037
00038
00039
00040 using TimedPointCloud = std::vector<TimedRangefinderPoint>;
00041
00042 struct PointCloudWithIntensities {
00043 TimedPointCloud points;
00044 std::vector<float> intensities;
00045 };
00046
00047
00048 PointCloud TransformPointCloud(const PointCloud& point_cloud,
00049 const transform::Rigid3f& transform);
00050
00051
00052 TimedPointCloud TransformTimedPointCloud(const TimedPointCloud& point_cloud,
00053 const transform::Rigid3f& transform);
00054
00055
00056
00057 PointCloud CropPointCloud(const PointCloud& point_cloud, float min_z,
00058 float max_z);
00059
00060
00061
00062 TimedPointCloud CropTimedPointCloud(const TimedPointCloud& point_cloud,
00063 float min_z, float max_z);
00064
00065 }
00066 }
00067
00068 #endif // CARTOGRAPHER_SENSOR_POINT_CLOUD_H_