Support for PCD point clouds

Error message

  • Notice: tempnam(): file created in the system's temporary directory in drupal_tempnam() (line 2552 of /users/apache/www.irs.uji.es/htdocs/uwsim/includes/file.inc).
  • Warning: file_put_contents(): Filename cannot be empty in file_unmanaged_save_data() (line 1986 of /users/apache/www.irs.uji.es/htdocs/uwsim/includes/file.inc).
  • The file could not be created.
  • Notice: tempnam(): file created in the system's temporary directory in drupal_tempnam() (line 2552 of /users/apache/www.irs.uji.es/htdocs/uwsim/includes/file.inc).
  • Warning: file_put_contents(): Filename cannot be empty in file_unmanaged_save_data() (line 1986 of /users/apache/www.irs.uji.es/htdocs/uwsim/includes/file.inc).
  • The file could not be created.

UWSim now supports the load of point clouds generated with the PCL library (PCD format). The initial version only supports XYZRGB data types. Although it should also load point clouds with other types, only position and color will displayed. The class name is osgPCDLoader and can be used in the following way:

osgPCDLoader pcdLoad("pointCloudFile.pcd");
root->addChild(pcdLoad.geode);

Basically, the osgPCDLoader class reads the PCD file using the PCL library and builds an OpenSceneGraph drawable object enclosed in a Geode, that can be directy attached to your scene graph. The point cloud is rendered as colored points, with lighting disabled.