Sensor (sensor)

Start the sensor service

Syntax:

sensor -c sensor_configuration_file | -d data_configuration_file
       -r rollpath
       -U uid:gid[,gidx]
       [-b board_name]
           

Runs on:

QNX Neutrino

Options:

-b board_name
A string that specifies the name of the board. If this value isn't specified, the default name is _CS_MACHINE. This optional parameter is useful when you need to distinguish a board from another board.
-c sensor_configuration_file
The sensor configuration file to use. You must specify one of -c or -d options, or both. For more information about the sensor configuration file, see Sensor configuration file.”
-d data_configuration_file
The interim data configuration file to use. You must specify one of -c or -d options, or both. For more information about the interim data configuration file, see Interim Data configuration file.”
-r rollpath
The directory where the sensor service saves files that includes images (from a camera) and data (from a sensor, such as lidar) files.
-U uid:gid [,gidx]
The user ID and the group ID under which to run the sensor service. You can specify multiple groups, where each group is separated by a comma. The user ID needs to be non-zero because the security protocol is to ensure you do not run as root.

Description:

This command starts the sensor service and initializes the sensors and cameras specified in the configuration file. When you run the service, you must specify the location where recorded sensor data and video files are stored. In addition, you must specify the configuration file to use to initialize the cameras and sensors to use. For more information about the configuration file, see Sensor configuration file.”

Example:

Provide access to user and group of 521 to read from /accounts/1000 (group 1001). The sensor data is set to be stored in the /accounts/1000/shared/sensor directory (roll) using a configuration file located at /etc/system/config/sensor.conf:
# sensor –U 521:521,1001 –r /accounts/1000/shared/sensor \
         –c /etc/system/config/sensor.conf &