harmoni_imageai.custom_service
Module Contents
Classes
ImageAICustom service |
Functions
|
Set names, collect params, and give service to server |
- class harmoni_imageai.custom_service.ImageAICustomService(name, param)
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerImageAICustom service
- data = b''
Setup publishers and subscribers
- pause_back(data)
- callback(data)
Callback function subscribing to the camera topic
- imageai_callback(data)
Callback function subscribing to the camera topic
- request(data)
Make a request of another service, such as a web service
When request returns it should return the result of the request and set status
- Raises:
NotImplementedError – To be used, this function should be overwritten by the child class.
- start(rate='')
Will start a long running action. This could be reading hardware and publishing it to a topic or running a behavior pattern. For atomic actions use do()
Start actions can be long running or indefinate.
- Raises:
NotImplementedError – To be used, this function should be overwritten by the child class.
- stop()
Will interrupt the long running action
- Raises:
NotImplementedError – To be used, this function should be overwritten by the child class.
- pause()
Will interrupt the long running action, preventing it from continuing until start is called again.
- Raises:
NotImplementedError – To be used, this function should be overwritten by the child class.
- harmoni_imageai.custom_service.main()
Set names, collect params, and give service to server