19 #include "cartographer/sensor/proto/sensor.pb.h" 28 transform * range_data.
origin,
37 transform * range_data.
origin,
58 proto::RangeData proto;
60 proto.mutable_returns()->Reserve(range_data.
returns.size());
61 for (
const Eigen::Vector3f& point : range_data.
returns) {
64 proto.mutable_misses()->Reserve(range_data.
misses.size());
65 for (
const Eigen::Vector3f& point : range_data.
misses) {
73 returns.reserve(proto.returns().size());
75 proto.returns().begin(), proto.returns().end(),
76 std::back_inserter(returns),
77 static_cast<Eigen::Vector3f (*)(
const transform::proto::Vector3f&)
>(
80 misses.reserve(proto.misses().size());
82 proto.misses().begin(), proto.misses().end(), std::back_inserter(misses),
83 static_cast<Eigen::Vector3f (*)(
const transform::proto::Vector3f&)
>(
PointCloud TransformPointCloud(const PointCloud &point_cloud, const transform::Rigid3f &transform)
TimedPointCloud TransformTimedPointCloud(const TimedPointCloud &point_cloud, const transform::Rigid3f &transform)
proto::FixedFramePoseData ToProto(const FixedFramePoseData &pose_data)
FixedFramePoseData FromProto(const proto::FixedFramePoseData &proto)
RangeData TransformRangeData(const RangeData &range_data, const transform::Rigid3f &transform)
PointCloud CropPointCloud(const PointCloud &point_cloud, const float min_z, const float max_z)
TimedRangeData TransformTimedRangeData(const TimedRangeData &range_data, const transform::Rigid3f &transform)
std::vector< Eigen::Vector3f > PointCloud
TimedRangeData CropTimedRangeData(const TimedRangeData &range_data, const float min_z, const float max_z)
RangeData CropRangeData(const RangeData &range_data, const float min_z, const float max_z)
TimedPointCloud CropTimedPointCloud(const TimedPointCloud &point_cloud, const float min_z, const float max_z)