Function cras::copyChannelData

Function Documentation

void cras::copyChannelData(const ::cras::Cloud &in, ::cras::Cloud &out, const ::std::string &fieldName)

Copy data belonging to the given field from in cloud to out cloud.

  • in[in] The input cloud.

  • out[out] The ouptut cloud. It has to be resized to contain at least that many points as the input cloud. It also has to have the given field present already.

  • fieldName[in] Name of the field whose data should be copied.

  • std::runtime_error – If the output cloud is smaller (in nr. of points) than the input cloud.

  • std::runtime_error – If the given field doesn’t exist in either of the clouds.