I will try to parse the packet read from dwSensorLidar_readPacket by referring to the samples. Because I want to convert to another xyz format.
See below code from lidar_accumulator
dwStatus status = dwSensorLidar_readPacket(&nextPacket, 1000, gLidarSensor);
if (status == DW_SUCCESS) {
CHECK_DW_ERROR(dwLidarAccumulator_addPacket(nextPacket, gFullLidarAccumulator));
CHECK_DW_ERROR(dwLidarAccumulator_addPacket(nextPacket, gSectLidarAccumulator));
CHECK_DW_ERROR(dwSensorLidar_returnPacket(nextPacket, gLidarSensor));
}
I checked the dwLidarDecodedPacket API via doc.
- casted to one of the point structures dwLidarPointXYZI
So, I want to have the logic to extract xyz or casting dwLidarPointXYZI(float xyz) the (const void * points) from the dwLidarDecodedPacket.
Could you please guide to this?