--- title: "LIDAR Data Setup" slug: "lidar-data-setup" updated: 2025-11-03T13:25:06Z published: 2025-11-03T13:25:06Z canonical: "docs.dataloop.ai/lidar-data-setup" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.dataloop.ai/llms.txt > Use this file to discover all available pages before exploring further. # LIDAR Data Setup ## Overview In this process, we will prepare and configure the Dataloop system to effectively utilize LiDAR data for the Dataloop [LiDAR App](https://docs.dataloop.ai/docs/lidar-20). Setting up the LiDAR data involves several key steps: 1. Files Setup 2. Calibration Data Setup 3. Create the LiDAR Video File LIDAR Annotation Format Refer to the [Lidar Annotation Format](https://docs.dataloop.ai/docs/lidar-annotation-format) for detailed information on the Annotation JSON format when exporting LIDAR data. --- ## Supported Files The setup process include preparing the files for work in a point-cloud annotation/segmentation task. Supported files are: 1. **PCD Files**: Point Cloud Data files used for generating the 3D scenes. Both single PCD file and multiple PCD files are supported. For more details about why PCD files are preferred, refer to the [PCD file format documentation](https://pointclouds.org/documentation/tutorials/pcd_file_format.html). 2. **JPEG/PNG Images**: Usually showing the angle and viewport of the cameras that captured the main scene. These images will have real-time projections of 3D objects annotated in the main point-cloud scene. --- ## Step 1: Files Setup Setup for stitching of point cloud files with camera images is performed by arranging files in designated folders in the root of the dataset or a selected folder inside the dataset. #### Example of arranging the files in the root of the dataset: ![](https://cdn.document360.io/53f32fe9-1937-4652-8526-90c1bc78d3f8/Images/Documentation/Lidar_folder_1.png) 1. **lidar** folder: This folder contains all the PCD files, which represent individual frames and must be numerically named starting from 0 to define their order in the 3D scene. ![](https://cdn.document360.io/53f32fe9-1937-4652-8526-90c1bc78d3f8/Images/Documentation/frame_folder_2.png) 1. **frames** folder: This folder contains subfolders, each with JPEG/PNG images per frame. 1. Subfolder names must follow the numeric order of the PCD files (from 0 to N) and include only the relevant images for that frame. 2. Image files within each subfolder must be named sequentially (from 0 to M) to define their display order in LiDAR Studio. 3. All subfolders must maintain a consistent image index pattern (from 0 to M) across frames to ensure proper alignment. ![](https://cdn.document360.io/53f32fe9-1937-4652-8526-90c1bc78d3f8/Images/Documentation/mappingJson_3.png) 1. **mapping.json** file: Will be explained on the next section [Calibration Data Setup](/docs/lidar-data-setup#step-2-calibration-data-setup) #### Example of arranging the files in a selected folder inside the dataset: ![](https://cdn.document360.io/53f32fe9-1937-4652-8526-90c1bc78d3f8/Images/Documentation/lidar_data_set-up-example.png) The same structure as in the example of arranging the files in the root of the dataset should be kept inside the selected folder. --- ## Step 2: Calibration Data Setup To build the LiDAR video file, the calibration data is required to align the point cloud data with the camera images. Extract your dataset calibration data into a `mapping.json` file, in the format provided below, and upload it to the dataset in the same directory where the `lidar` and `frames` folders are located at. For a detailed explanation about the parameters required in the `mapping.json` file, refer to the [Camera Calibration Parameters](https://www.mathworks.com/help/vision/ug/camera-calibration.html#bu0niag). PCDs Normalization The **LiDAR App** requires the sensor’s `extrinsic parameters` to be applied to both the PCD files and the transformations of Cameras and Annotations (as defined in `mapping.json`). This step is essential due to the lack of visual tools for applying or verifying these transformations. ```json {    "frames": {        "0": {            "path": <>, // for frame 0: "lidar/0.pcd" (Relative path from the mapping.json file)            "timestamp": <>            "position": { // LiDAR sensor location (used as the center of the world)                "x": 0.0,                "y": 0.0,                "z": 0.0            },            "heading": { // LiDAR sensor rotation (Quaternion)                "x": 0.0,                "y": 0.0,                "z": 0.0,                "w": 1.0            },            "images": { // if no images are provided, add an empty dict                "0": {                    "image_path": <>, // for frame 0 image 0: "frames/0/0.jpg" (Relative path from the mapping.json file)                    "timestamp": <>,                    "intrinsics": { // camera intrinsic                        "fx": <>, // Focal length in pixels.                        "fy": <>,                        "cx": <>, // Optical center (the principal point), in pixels.                        "cy": <>,                    },                    "extrinsics": { // camera extrinsic                        "translation": { // camera location in world coordinates (in relation to the lidar sensor)                            "x": <>,                            "y": <>,                            "z": <>                        },                        "rotation": { // rotation of the camera (Quaternion)                            "w": <>,                            "x": <>,                            "y": <>,                            "z": <>                        }                    },                    "distortion" : { // distortion parameters                        "k1": <>,                        "k2": <>,                        ....                        "k8": <>,                        "p1": <>,                        "p2": <>,                    }                }            }        }    } } ``` --- ## Step 3: Create the LiDAR Video File Refer to the [Developer guide](https://developers.dataloop.ai/tutorials/data_management/items_and_annotations/other_data_types/lidar/chapter#create-the-lidar-video-file) for the information.