Template Function sensor_msgs::readPointCloud2BufferValue(const unsigned char *, const unsigned char)

Function Documentation

template<typename T>
inline T sensor_msgs::readPointCloud2BufferValue(const unsigned char *data_ptr, const unsigned char datatype)

Converts a value at the given pointer position interpreted as the datatype specified by the given datatype parameter to the given template type and returns it.

Parameters:
  • data_ptr – pointer into the point cloud 2 buffer

  • datatype – sensor_msgs::PointField datatype value

Template Parameters:

T – return type