Autoware.Auto
autoware::common::lidar_utils::PointCloudIts Class Reference

#include <point_cloud_utils.hpp>

Public Member Functions

 PointCloudIts ()
 Creates new iterator wrapper with space reserved for 4 iterators, namely x, y, z and intensity. More...
 
void reset (sensor_msgs::msg::PointCloud2 &cloud, uint32_t idx=0)
 Resets the iterators for the given cloud to the given index. More...
 
sensor_msgs::PointCloud2Iterator< float32_t > & x_it ()
 Returns iterator for the "x" field. More...
 
sensor_msgs::PointCloud2Iterator< float32_t > & y_it ()
 Returns iterator for the "y" field. More...
 
sensor_msgs::PointCloud2Iterator< float32_t > & z_it ()
 Returns iterator for the "z" field. More...
 
sensor_msgs::PointCloud2Iterator< float32_t > & intensity_it ()
 Returns iterator for the "intensity" field. More...
 

Detailed Description

Point cloud iterator wrapper, that allows to reuse iterators. Reinitializing of iterators is quite costly due to the implementation of the PointCloud2IteratorBase<...>::set_field method.

Constructor & Destructor Documentation

◆ PointCloudIts()

autoware::common::lidar_utils::PointCloudIts::PointCloudIts ( )

Creates new iterator wrapper with space reserved for 4 iterators, namely x, y, z and intensity.

Member Function Documentation

◆ intensity_it()

sensor_msgs::PointCloud2Iterator<float32_t>& autoware::common::lidar_utils::PointCloudIts::intensity_it ( )
inline

Returns iterator for the "intensity" field.

◆ reset()

void autoware::common::lidar_utils::PointCloudIts::reset ( sensor_msgs::msg::PointCloud2 &  cloud,
uint32_t  idx = 0 
)

Resets the iterators for the given cloud to the given index.

Parameters
[in]cloudthe point cloud to reset the iterators to
[in]idxthe index/offset to advance the iterators to

◆ x_it()

sensor_msgs::PointCloud2Iterator<float32_t>& autoware::common::lidar_utils::PointCloudIts::x_it ( )
inline

Returns iterator for the "x" field.

◆ y_it()

sensor_msgs::PointCloud2Iterator<float32_t>& autoware::common::lidar_utils::PointCloudIts::y_it ( )
inline

Returns iterator for the "y" field.

◆ z_it()

sensor_msgs::PointCloud2Iterator<float32_t>& autoware::common::lidar_utils::PointCloudIts::z_it ( )
inline

Returns iterator for the "z" field.


The documentation for this class was generated from the following files: