Thank you for the reply. That was it. I was able to get the recording tool to work. It created the bin and bin.seek files. However, When i use it with my ./sample_imu_logger, i do not see IMU data. What am I doing wrong here?
Please find the log when I run these commands and also .bin and .bin.seek attached here.
can_vehicle.bin (903.7 KB) can_vehicle.bin.seek (1.5 KB)
Recording:
root@tegra-ubuntu:/usr/local/driveworks/tools/capture# ./recorder /home/nvidia/Desktop/recordNew.json
[03-05-2021 16:42:34] Platform: Detected DDPX - Tegra A
[03-05-2021 16:42:34] TimeSource: monotonic epoch time offset is 1620057927380621
[03-05-2021 16:42:34] PTP Time is available from NVPPS Driver
[03-05-2021 16:42:34] Platform: number of GPU devices detected 1
[03-05-2021 16:42:34] Platform: currently selected GPU device integrated ID 0
[03-05-2021 16:42:35] SDK: Resources mounted from /usr/local/driveworks-2.2/data/
[03-05-2021 16:42:35] SDK: Create NvMediaDevice
[03-05-2021 16:42:35] egl::Display: found 1 EGL devices
[03-05-2021 16:42:35] egl::Display: use drm device: drm-nvdc
[03-05-2021 16:42:35] TimeSource: monotonic epoch time offset is 1620057927380621
[03-05-2021 16:42:35] PTP Time is available from NVPPS Driver
[03-05-2021 16:42:35] Initialize DriveWorks SDK v2.2.3136
[03-05-2021 16:42:35] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gca7b4b26e65 against Drive PDK v5.1.6.1
[03-05-2021 16:42:35] Platform: currently selected GPU device integrated ID 0
[03-05-2021 16:42:35] Loading rig file: /home/nvidia/Desktop/recordNew.json
[03-05-2021 16:42:35] SensorFactory::createSensor() → can.socket, device=can1,packetRate=1,packetType=15
Rig: recordNew.json NewSink: /dev/null
[03-05-2021 16:42:35] CANSocket: use SW based timestamps for can1
[03-05-2021 16:42:35] CANSocket: started can1
[03-05-2021 16:42:35] SensorManager: started
Press s to start, just to see progress, q to quit.
Rig: recordNew.json Sensor: can:vehicle Bytes: 636200
Rig: recordNew.json EndOfSensorsInfo
s
Rig: recordNew.json NewSink: .
Rig: recordNew.json Sensor: can:vehicle Bytes: 2216
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 120464
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 149168
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 175454
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 199712
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 225920
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 250334
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 275138
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 464288
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 564440
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 658352
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 778160
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 795008
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 800546
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 809048
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 812870
Rig: recordNew.json EndOfSensorsInfo
Rig: recordNew.json Sensor: can:vehicle Bytes: 817472
Rig: recordNew.json EndOfSensorsInfo
q
[03-05-2021 16:43:26] Sensor statistics for: can.socket, device=can1,packetRate=1,packetType=15
[03-05-2021 16:43:26] Events: 0
Errors: 0
Drops: 0
minDelta: 373.0000000
maxDelta: 8652.0000000
meanDelta: 2499.847900
Standard deviation: 3361.369873
[03-05-2021 16:43:26] SensorManager: stopped
[03-05-2021 16:43:26] IndexTable: saving to file “/usr/local/driveworks-2.2/tools/capture/can_vehicle.bin.seek”
[03-05-2021 16:43:26] Releasing Driveworks SDK Context
[03-05-2021 16:43:26] SDK: Release NvMediaDevice
[03-05-2021 16:43:27] SDK: Release NvMedia2D
Play Recording:
/usr/local/driveworks/bin$ ./sample_imu_logger driver=imu.virtual --params=file=/usr/local/driveworks/tools/capture/can_vehicle.bin,decoder-path=/home/nvidia/Desktop/Plugin/libopenimu_plugin.so
[03-05-2021 16:46:56] Platform: Detected DDPX - Tegra A
[03-05-2021 16:46:56] TimeSource: monotonic epoch time offset is 1620057927380620
[03-05-2021 16:46:56] PTP Time is available from NVPPS Driver
[03-05-2021 16:46:57] Platform: number of GPU devices detected 1
[03-05-2021 16:46:57] Platform: currently selected GPU device integrated ID 0
[03-05-2021 16:46:57] SDK: Resources mounted from /usr/local/driveworks-2.2/data/
[03-05-2021 16:46:57] SDK: Create NvMediaDevice
[03-05-2021 16:46:57] egl::Display: found 1 EGL devices
[03-05-2021 16:46:57] egl::Display: use drm device: drm-nvdc
[03-05-2021 16:46:57] TimeSource: monotonic epoch time offset is 1620057927380621
[03-05-2021 16:46:57] PTP Time is available from NVPPS Driver
[03-05-2021 16:46:57] Initialize DriveWorks SDK v2.2.3136
[03-05-2021 16:46:57] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gca7b4b26e65 against Drive PDK v5.1.6.1
[03-05-2021 16:46:57] SensorFactory::createSensor() → imu.virtual, file=/usr/local/driveworks/tools/capture/can_vehicle.bin,decoder-path=/home/nvidia/Desktop/Plugin/libopenimu_plugin.so
[03-05-2021 16:46:57] IMUVirtual: File Magic number: 3320769266 Version: 2
[03-05-2021 16:46:57] IMUVirtual: the file appears to be of non-binary format, try Xsens NMEA ASCII type.
[03-05-2021 16:46:57] IndexTable: loading from file “/usr/local/driveworks/tools/capture/can_vehicle.bin.seek”
[03-05-2021 16:46:57] IMU: seek table with 47 entries covering 11863 events ranging from 1620060177054410 to 1620060206706051 usecs
IMU end of stream reached
[03-05-2021 16:46:57] Releasing Driveworks SDK Context
[03-05-2021 16:46:57] SDK: Release NvMediaDevice
[03-05-2021 16:46:57] SDK: Release NvMedia2D