Refactoring to allow the creation of ros and pcl point clouds.