Function sensor_msgs::getPointCloud2FieldIndex

Function Documentation

static inline int sensor_msgs::getPointCloud2FieldIndex(const sensor_msgs::msg::PointCloud2 &cloud, const std::string &field_name)

Get the index of a specified field (i.e., dimension/channel)

Parameters:
  • cloud – the the point cloud message

  • field_name – the string defining the field name