I would propose to drop this, as it doubles the code from the .hpp and only uses fromPCLPointCloud2().