camera_service
Module Contents
Classes
Reads from a camera and publishes image data. |
Functions
|
Set names, collect params, and give service to server |
Attributes
- camera_service.path
- camera_service.using_kinetic
- class camera_service.CameraService(name, param)
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerReads from a camera and publishes image data.
As a sensor service, the camera is responsible for reading the image data from a physical camera and publishing it so that it can be recorded or used by a detector.
The camera has many parameters which are set in the configuration.yaml
The public functions exposed by the camera include start(), stop(), and pause()
- service_id
Setup the camera
- start()
Start the camera stream and publish images
- stop()
Stop the service and close the stream
- pause()
Set the service to success to stop publishing
- setup_camera()
Setup the camera
- _open_stream()
Opening the stream
- _close_stream()
Closing the stream
- _read_stream_and_publish()
Continously publish image data from the camera
While state is START publish images
- camera_service.main()
Set names, collect params, and give service to server