Hi, when I try to see data from ouster OS2-128 lidar with sample_lidar_replay Nvidia drive AGX has a problem with showing lidars data. Lidar works correctly when connected using the ouster studio or ROS application. Params we have checked with a lidars web interface and are correct.
I send a log from trying to run lidar. Thanks for any help :)
./sample_lidar_replay --protocol=lidar.socket --params=device=OUSTER_OS2_128,ip=192.168.1.12,port=45065,scan-frequency=10,hres=512,dip=192.168.1.10,force-set=true
Starting my sample application…
[05-03-2021 21:00:01] Platform: Detected DDPX - Tegra B
[05-03-2021 21:00:01] TimeSource: monotonic epoch time offset is 1614969515189446
[05-03-2021 21:00:01] TimeSource: Could not detect valid PTP time source at nvpps. Fallback to eth0
[05-03-2021 21:00:01] TimeSource Eth: Lost PTP time synchronizaton. Synchronized time will not be available from this timesource.
[05-03-2021 21:00:01] TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.
[05-03-2021 21:00:01] Platform: number of GPU devices detected 1
[05-03-2021 21:00:01] Platform: currently selected GPU device integrated ID 0
[05-03-2021 21:00:01] Context::getDataPathFromSelfLocation DATA_ROOT found at: /usr/local/driveworks-3.5/data
[05-03-2021 21:00:01] SDK: No resources(.pak) mounted, some modules will not function properly
[05-03-2021 21:00:01] SDK: Create NvMediaDevice
[05-03-2021 21:00:01] SDK: Create NvMedia2D
[05-03-2021 21:00:01] SDK: use EGL display as provided
[05-03-2021 21:00:01] TimeSource: monotonic epoch time offset is 1614969515189446
[05-03-2021 21:00:01] TimeSource: Could not detect valid PTP time source at nvpps. Fallback to eth0
[05-03-2021 21:00:01] TimeSource Eth: Lost PTP time synchronizaton. Synchronized time will not be available from this timesource.
[05-03-2021 21:00:01] TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.
[05-03-2021 21:00:01] Initialize DriveWorks SDK v3.5.75
[05-03-2021 21:00:01] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gc61a9a35bd0 against Drive PDK v5.2.0.0
[05-03-2021 21:00:01] SensorFactory::createSensor() → lidar.socket, device=OUSTER_OS2_128,ip=192.168.1.12,port=45065,scan-frequency=10,hres=512,dip=192.168.1.10,force-set=true
[05-03-2021 21:00:01] LidarSocket::getParameters, return-mode not specified. Using default value DUAL
[05-03-2021 21:00:01] hfov-start is empty, default value 0 will be used
[05-03-2021 21:00:01] hfov-end is empty, default value 360 will be used
[05-03-2021 21:00:01] Destination IP address, Horizontal Resolution is used only by OUSTER Lidar
[05-03-2021 21:00:01] Return Mode is used only by Velodyne Lidar
[05-03-2021 21:00:01] Horizontal FOV is used only by Ouster and Velodyne Lidars
[05-03-2021 21:00:01] , Device magic number = 3235826430
[05-03-2021 21:00:01] initializeOuster: Current get_config_param active udp_ip is "“192.168.1.200"”, requested setting is “192.168.1.10” !!!
[05-03-2021 21:00:01] initializeOuster: Current get_config_param active azimuth_window is “[0, 360000]”, requested setting is “[0, 36000]” !!!
[05-03-2021 21:00:01] initializeOuster: Current get_config_param active phase_lock_enable is “false”, requested setting is “true” !!!
[05-03-2021 21:00:01] initializeOuster: Current get_config_param active phase_lock_offset is “0”, requested setting is “270000” !!!
[05-03-2021 21:00:01] initializeOuster: command "reinitialize
" failed with "error: timestamp_mode TIME_FROM_INTERNAL_OSC incompatible with p
[05-03-2021 21:00:01] initializeOuster: command "write_config_txt
" failed with "hase_lock_enable. An external time sync source is required, see
[05-03-2021 21:00:01] Json parse error [json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid literal; last read: ‘th’. Retrying…
[05-03-2021 21:00:02] Json parse error [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: ‘w’. Retrying…
[05-03-2021 21:00:03] Sensor RUNNING
[05-03-2021 21:00:03] Serial number = 992029000682
Firmware version = ousteros-image-prod-aries-v2.0.0+20201124065024
[05-03-2021 21:00:03] std::exception thrown: [json.exception.type_error.302] type must be array, but is null
terminate called after throwing an instance of ‘std::runtime_error’
what(): [2021-03-05 21:00:03] DW Error DW_FAILURE executing DW function:
dwSAL_createSensor(&m_lidarSensor, params, m_sal)
at /dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/lidar/lidar_replay/main.cpp:124
Aborted (core dumped)
Software Version
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
Target Operating System
Linux
Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
SDK Manager Version
1.4.1.7402
Host Machine Version
native Ubuntu 18.04