Pcd
The Pcd component loads and displays PCD (Point Cloud Data) files. This is ideal for:
- Loading 3D scan data from sensors
- Displaying point clouds from ROS or PCL pipelines
- Visualizing LiDAR captures
- Loading assets from robotics applications
Basic Usage
A minimal example that loads a PCD file from a URL:
Key Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
src | str | - | URL or local file path to the PCD file |
text | str | - | Text content of the PCD file (load from string) |
buff | bytes | - | Binary content of the PCD file (most efficient) |
encoding | str | 'ascii' | Encoding of the PCD file |
size | float | - | Size of the points in the point cloud |
matrix | tuple[float, ...] | - | 4x4 transformation matrix (16 values) for positioning and orienting |
hide | bool | False | Flag to hide the point cloud |
Learn More
For detailed examples of using Pcd, see:
- Showing Point Clouds - Programmatic point cloud display