sensor_type_t

Updated: May 06, 2022

Supported sensor types

Synopsis:

#include <sensor/sensor_api.h>
typedef enum {
    SENSOR_TYPE_LIDAR = 1,
    SENSOR_TYPE_RADAR = 2,
    SENSOR_TYPE_GPS = 4,
    SENSOR_TYPE_IMU = 8,
    SENSOR_TYPE_USB_CAMERA = 0x20,
    SENSOR_TYPE_SENSOR_CAMERA = 0x80,
    SENSOR_TYPE_IP_CAMERA = 0x100,
    SENSOR_TYPE_SCREEN_CAMERA = 0x200,
    SENSOR_TYPE_FILE_CAMERA = 0x400,
    SENSOR_TYPE_EXTERNAL_SENSOR = 0x2000,
    SENSOR_TYPE_EXTERNAL_CAMERA = 0x4000,
    SENSOR_TYPE_USER_DATA = 0x10000,
    SENSOR_TYPE_ANY_CAMERA = (SENSOR_TYPE_USB_CAMERA |
                              SENSOR_TYPE_ANALOG_CAMERA |
                              SENSOR_TYPE_SENSOR_CAMERA |
                              SENSOR_TYPE_IP_CAMERA |
                              SENSOR_TYPE_FILE_CAMERA |
                              SENSOR_TYPE_SIMULATOR_CAMERA |
                              SENSOR_TYPE_SCREEN_CAMERA |
                              SENSOR_TYPE_EXTERNAL_CAMERA),
    SENSOR_TYPE_ANY_SENSOR = (SENSOR_TYPE_IMU | SENSOR_TYPE_GPS |
                              SENSOR_TYPE_RADAR | SENSOR_TYPE_LIDAR |
                              SENSOR_TYPE_SIMULATOR_SENSOR |
                              SENSOR_TYPE_EXTERNAL_SENSOR |
                              SENSOR_TYPE_USER_DATA),
    SENSOR_TYPE_ANY_SENSOR_OR_CAMERA = (SENSOR_TYPE_ANY_SENSOR |
                                        SENSOR_TYPE_ANY_CAMERA)
} sensor_type_t;

Data:

SENSOR_TYPE_LIDAR
Lidar sensor.
SENSOR_TYPE_RADAR
Radar sensor.
SENSOR_TYPE_GPS
GPS sensor.
SENSOR_TYPE_IMU
Inertial Measurement Unit (IMU) sensor.
SENSOR_TYPE_USB_CAMERA
USB camera.
SENSOR_TYPE_SENSOR_CAMERA
Sensor camera with an image sensor directly connected to the board.
SENSOR_TYPE_IP_CAMERA
Network or IP camera.
SENSOR_TYPE_SCREEN_CAMERA
Buffers captured from the Screen Graphics Subsystem (Screen) for sharing.
SENSOR_TYPE_FILE_CAMERA
File containing data from a camera.
SENSOR_TYPE_EXTERNAL_SENSOR
External sensor.
SENSOR_TYPE_EXTERNAL_CAMERA
External camera.
SENSOR_TYPE_USER_DATA
User-generated data not covered by any existing sensor type.
SENSOR_TYPE_ANY_CAMERA
Mask value representing all types of cameras.
SENSOR_TYPE_ANY_SENSOR
Mask value representing all non-camera sensors.
SENSOR_TYPE_ANY_SENSOR_OR_CAMERA
Mask value representing all sensors and cameras.

Library:

libsensor

Description:

The values in this enumeration represent supported sensor types. These values can be OR'ed together when used as a flag to indicate the sensors of interest.