Get time synchronized lidar packets from live lidar sensor
lidarParams.
parameters =
"ip=192.168.3.43,port=2368,device=VELO_HDL64E,scan-frequency=10.0";
timeParams.
parameters =
"nvpps-device=/dev/nvpps0,reference-type=NOVATEL_CAN,can-device=can0";
while(loop) {
}
DW_API_PUBLIC dwStatus dwSensorLidar_returnPacket(dwLidarDecodedPacket const *const data, dwSensorHandle_t const sensor)
Returns the data read to the internal pool.
DW_API_PUBLIC dwStatus dwSensorLidar_readPacket(dwLidarDecodedPacket const **const data, dwTime_t const timeoutUs, dwSensorHandle_t const sensor)
Reads one scan packet.
const char8_t * parameters
Array to additional parameters provided to sensor creation.
const char8_t * protocol
Name of the protocol.
DW_API_PUBLIC dwStatus dwSAL_createSensor(dwSensorHandle_t *const sensor, dwSensorParams const params, dwSALHandle_t const sal)
Creates a new sensor managed by the SAL module with the given parameters.
DW_API_PUBLIC dwStatus dwSensor_start(dwSensorHandle_t const sensor)
Starts the sensor previously successfully created with 'dwSAL_createSensor()'.
DW_API_PUBLIC dwStatus dwSensor_stop(dwSensorHandle_t const sensor)
Stops the sensor.
DW_API_PUBLIC dwStatus dwSAL_initialize(dwSALHandle_t *const sal, dwContextHandle_t const context)
Creates and initializes a SAL (sensor abstraction layer) module.
DW_API_PUBLIC dwStatus dwSAL_releaseSensor(dwSensorHandle_t const sensor)
Releases a sensor managed by the SAL module.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Holds sets of parameters for sensor creation.
This can also be done with sensor recordings. For example, we can modify the example above with the following parameters to reference recorded data.
lidarParams.parameters = "file=lidar_recording.bin";
lidarParams.protocol = "lidar.virtual";
timeParams.parameters = "file=time_recording.bin";
timeParams.protocol = "time.virtual";
For more details see Time Sensor Sample