16 size_t size(
const T& points) {
40 auto point(
const T& points,
size_t i) {
46 auto normal(
const T& points,
size_t i) {
52 auto cov(
const T& points,
size_t i) {
64 void set_point(T& points,
size_t i,
const Eigen::Vector4d& pt) {
70 void set_normal(T& points,
size_t i,
const Eigen::Vector4d& pt) {
76 void set_cov(T& points,
size_t i,
const Eigen::Matrix4d&
cov) {
size_t size(const T &points)
Get the number of points.
Definition: traits.hpp:16
void set_cov(T &points, size_t i, const Eigen::Matrix4d &cov)
Set i-th covariance. Only the top-left 3x3 matrix should be filled.
Definition: traits.hpp:76
void set_normal(T &points, size_t i, const Eigen::Vector4d &pt)
Set i-th normal. (nx, nz, nz, 0)
Definition: traits.hpp:70
auto point(const T &points, size_t i)
Get i-th point. 4D vector is used to take advantage of SIMD intrinsics. The last element must be fill...
Definition: traits.hpp:40
bool has_covs(const T &points)
Check if the point cloud has covariances.
Definition: traits.hpp:34
bool has_points(const T &points)
Check if the point cloud has points.
Definition: traits.hpp:22
bool has_normals(const T &points)
Check if the point cloud has normals.
Definition: traits.hpp:28
auto cov(const T &points, size_t i)
Get i-th covariance. Only the top-left 3x3 matrix is filled, and the bottom row and the right col mus...
Definition: traits.hpp:52
auto normal(const T &points, size_t i)
Get i-th normal. 4D vector is used to take advantage of SIMD intrinsics. The last element must be fil...
Definition: traits.hpp:46
void set_point(T &points, size_t i, const Eigen::Vector4d &pt)
Set i-th point. (x, y, z, 1)
Definition: traits.hpp:64
void resize(T &points, size_t n)
Resize the point cloud (this function should resize all attributes)
Definition: traits.hpp:58
Definition: flat_container.hpp:12