GLIM
Loading...
Searching...
No Matches
raw_points.hpp
1#pragma once
2
3#include <memory>
4#include <vector>
5#include <Eigen/Core>
6
7namespace glim {
8
12struct RawPoints {
13public:
14 using Ptr = std::shared_ptr<RawPoints>;
15 using ConstPtr = std::shared_ptr<const RawPoints>;
16
18 int size() const { return points.size(); }
19
20public:
21 double stamp;
22 std::vector<double> times;
23 std::vector<double> intensities;
24 std::vector<Eigen::Vector4d> points;
25 std::vector<Eigen::Vector4d> colors;
26 std::vector<uint32_t> rings;
27};
28
29} // namespace glim
Raw point cloud frame.
Definition raw_points.hpp:12
int size() const
Number of points.
Definition raw_points.hpp:18
std::vector< double > intensities
Point intensities.
Definition raw_points.hpp:23
std::vector< Eigen::Vector4d > colors
Point colors.
Definition raw_points.hpp:25
double stamp
Timestamp of the first point.
Definition raw_points.hpp:21
std::vector< uint32_t > rings
Ring numbers of scanned points.
Definition raw_points.hpp:26
std::vector< Eigen::Vector4d > points
Point coordinates.
Definition raw_points.hpp:24
std::vector< double > times
Per-point timestamps relative to the first point.
Definition raw_points.hpp:22