Camera

CameraInterface service

The SceneController module is able to acquire images by calling the Camera-Interface-Service, that runs as a systemd service on the Linux host. When installing the Camera-Interface-Service, it is configured to connect to the desired camera type.

CameraSetup

Currently the Camera-Interface-Service is able to connect and acquire images from the following camera vendors:

  • SICK: Supports all MidiCam, MidiCam2, PicoCam and PicoCam2 family cameras

  • WebCam: Supports standard web cameras / IP cameras (primarily for testing)

The Camera-Interface-Service is installed on the host by running the following: sudo apt-get install sick-camera-interface

This will install and run the service and ensure that it restarts if it fails. To check the status of the systemd service you can run this command:

sudo systemctl status cameraInterface.service

and if you want to see the logs from the systemd service you can use this command:

sudo journalctl -e -u cameraInterface.service

The -e paramter will scroll to the end of the journalctl log file, since it can get quite long.

Manual start

The CameraInterface is installed in the /Tricloud folder of the Linux host. It is possible to run the CameraInterface service manually, by running the following command in the /Tricloud folder.

open_camera <camera type> <options>

where supported camera types are: sick - SICK Camera (Midi / Pico) webcam - Generic web camera (default resolution: width = 640, height = 480)

and possible options are: -w <image width in pixels> (default is 640) -h <image height in pixels> (default is 480) -c continuous frame mode (default is single frame mode)

Last updated

Was this helpful?