#include <cepton_sdk.h>
void
on_event(
int
error_code, CeptonSensorHandle sensor,
struct
CeptonSensorInformation
const
*p_info,
int
event)
{
if
(error_code <
0
) {
// Handle error
return
;
}
switch
(event) {
case
CEPTON_EVENT_ATTACH:
// Handle new sensor
break
;
case
CEPTON_EVENT_FRAME:
// Handle new frame
break
;
}
}
int
main(
int
argc,
char
** argv) {
cepton_sdk_initialize(CEPTON_SDK_VERSION,
0
, on_event);
// Main code
cepton_sdk_deinitialize();
return
0
;
}
Reference
Data
Timestamps
If your sensor has a GPS module connected, point timestamps will be based on the GPS clock,
otherwise they will be based on the host computer's clock.
Intensities
Intensity values are in the range
[0.0, 1.0]
. Intensity values default to
1.0
if unsupported by the
sensor/firmware.
Image Points
Image points are in camera image coordinates with a focal length of
1.0
. Sample code for
converting to 3D points can be found at
samples/basic_interaction/point.hpp
.
Notes
Page 16 of 25
Summary of Contents for Sora 200
Page 1: ...SORA 200 User Guide...
Page 3: ...Page 3 of 25...
Page 5: ...Warnings The sensor is Class 1 eye safe Page 5 of 25...