Function cras::transformOnlyXYZ

Function Documentation

::sensor_msgs::PointCloud2 &cras::transformOnlyXYZ(const ::sensor_msgs::PointCloud2 &in, ::sensor_msgs::PointCloud2 &out, const ::geometry_msgs::TransformStamped &tf)

Copy only the XYZ channel from in cloud to out and transform it using the given transform.

Parameters:
  • in[in] The input cloud.

  • out[out] The output cloud (can not be the same as input).

  • tf[in] The transform to apply.

Returns:

out.