# Make multi-sensor recording program using sample source code

**URL:** <https://forums.developer.nvidia.com/t/make-multi-sensor-recording-program-using-sample-source-code/112537>\
**Category:** DRIVE AGX Xavier General\
**Created:** [February 24, 2020, 10:53am UTC](https://forums.developer.nvidia.com/t/make-multi-sensor-recording-program-using-sample-source-code/112537 "2020-02-24T10:53:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjhkb083gak9](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pjhkb083gak9](https://forums.developer.nvidia.com/u/pjhkb083gak9)\
**Post date:** [February 24, 2020, 10:53am UTC](https://forums.developer.nvidia.com/t/make-multi-sensor-recording-program-using-sample-source-code/112537/1 "2020-02-24T10:53:39Z")

</div>

Hi!

I want to make multiple-sensor logging without capture tool program (like recorder-tui, recorder-qtgui)

In Driveworks sample program, ‘camera\_gmsl\_raw’ has a recording function with option ‘write-file’ but it can record camera’s video only one. And in ‘camera\_multiple\_gmsl’, there is no recording function like ‘camera\_gmsl\_raw’.  
So I would modify ‘camera\_multiple\_gmsl’ code to make multi camera recording possible and I use it for recording and watching current driving scene.

Now, I have a question that “Is it possible to make recording program for multiple-sensor (multi-camera + multi-lidar) using ‘camera\_gmsl\_raw’ and ‘record’ sample source code?”

In ‘record’ sample code, there is a method for logging lidar sensor data. I want to use these sample codes and record multiple camera and lidar simultaneously.

To summarize my question,

1. Using ‘record’ sample code, Is it possible to log multiple lidar sensor? (I can not find any options like ‘selector-mask’ of ‘camera\_multiple\_gmsl’)

2. Is it possible to make recording program for multiple-sensor (multi-camera + multi-lidar) using ‘camera\_gmsl\_raw’ and ‘record’ sample source code?

3. Is it possible to watch the camera video and lidar point cloud during data logging? (In fact, I think this is the biggest disadvantage of capture tool program)

Thank you!!!

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [February 24, 2020, 12:06pm UTC](https://forums.developer.nvidia.com/t/make-multi-sensor-recording-program-using-sample-source-code/112537/2 "2020-02-24T12:06:07Z")

</div>

Dear pjhkb083gak9,  
The current sample\_record application can record data from one GPS,CAN, LIDAR and RADAR. in the sample, It creates one thread corresponding to each sensor. So you can modify the code sample to have more threads to process data from more sensors.  
The selector-mask parameter just a command line parameter to interpret the number of selected camera’s in the application. Please check the usage of dwSensorCamera\_readFrame() functions in both the camera samples to know the difference.  
Currently, no sample or tool provides the facility to watch and record sensor data at a time.

---

<div class="post-metadata">

**Author:** ![pjhkb083gak9](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pjhkb083gak9](https://forums.developer.nvidia.com/u/pjhkb083gak9)\
**Post date:** [March 5, 2020, 1:49am UTC](https://forums.developer.nvidia.com/t/make-multi-sensor-recording-program-using-sample-source-code/112537/3 "2020-03-05T01:49:48Z")

</div>

Dear SivaRamaKrishnaNV,

Thanks to your reply.  
I try to modify sample code on your advice!

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 8:04pm UTC](https://forums.developer.nvidia.com/t/make-multi-sensor-recording-program-using-sample-source-code/112537/4 "2021-10-12T20:04:49Z")

</div>

Closed on October 12, 2021, 8:04pm UTC


