RAPP Platform API
Main Page
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
HazardDetectionLight.py
Go to the documentation of this file.
1
from
RappCloud.Objects
import
(
2
File,
3
Payload)
4
5
from
Cloud
import
(
6
CloudMsg,
7
CloudRequest,
8
CloudResponse)
9
10
11
class
HazardDetectionLight
(CloudMsg):
12
""" Hazard Detection Light Check Cloud Message object"""
13
14
class
Request
(CloudRequest):
15
""" Hazard Detection Light Check Cloud Request object.
16
17
HazardDetectionLight.Request
18
"""
19
def
__init__
(self, **kwargs):
20
"""!
21
Constructor
22
23
@param **kwargs - Keyword arguments. Apply values to the request attributes.
24
- @ref imageFilepath
25
"""
26
## File path to the image to load. This is the image to perform
27
# qr-detection on.
28
self.
imageFilepath
=
''
29
super(
HazardDetectionLight.Request
, self).
__init__
(**kwargs)
30
31
32
def
make_payload
(self):
33
""" Create and return the Payload of the Request. """
34
return
Payload()
35
36
37
def
make_files
(self):
38
""" Create and return Array of File objects of the Request. """
39
return
[File(self.
imageFilepath
, postfield=
'file'
)]
40
41
42
class
Response
(CloudResponse):
43
""" Hazard Detection Light Check Cloud Response object.
44
45
HazardDetectionLight.Response
46
"""
47
def
__init__
(self, **kwargs):
48
"""!
49
Constructor
50
51
@param **kwargs - Keyword arguments. Apply values to the request attributes.
52
- @ref error
53
- @ref light_level
54
"""
55
56
## Error message
57
self.
error
=
''
58
## The, detected on the image frame, light level.
59
self.
light_level
= 0.0
60
super(
HazardDetectionLight.Response
, self).
__init__
(**kwargs)
61
62
63
def
__init__
(self, **kwargs):
64
"""!
65
Constructor
66
67
@param **kwargs - Keyword arguments. Apply values to the request attributes.
68
- @ref Request.imageFilepath
69
"""
70
71
# Create and hold the Request object for this CloudMsg
72
self.
req
=
HazardDetectionLight.Request
()
73
# Create and hold the Response object for this CloudMsg
74
self.
resp
=
HazardDetectionLight.Response
()
75
super(HazardDetectionLight, self).
__init__
(
76
svcname=
'hazard_detection_light_check'
, **kwargs)
77
78
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Response.error
error
Error message.
Definition:
HazardDetectionLight.py:57
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Response
Definition:
HazardDetectionLight.py:42
RappCloud.Objects
Definition:
__init__.py:1
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Response.light_level
light_level
The, detected on the image frame, light level.
Definition:
HazardDetectionLight.py:59
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.req
req
Definition:
HazardDetectionLight.py:72
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.__init__
def __init__
Constructor.
Definition:
HazardDetectionLight.py:63
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Request.make_files
def make_files
Definition:
HazardDetectionLight.py:37
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Request.imageFilepath
imageFilepath
File path to the image to load.
Definition:
HazardDetectionLight.py:28
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Request.__init__
def __init__
Constructor.
Definition:
HazardDetectionLight.py:19
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Response.__init__
def __init__
Constructor.
Definition:
HazardDetectionLight.py:47
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight
Definition:
HazardDetectionLight.py:11
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Request
Definition:
HazardDetectionLight.py:14
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.Request.make_payload
def make_payload
Definition:
HazardDetectionLight.py:32
RappCloud.CloudMsgs.HazardDetectionLight.HazardDetectionLight.resp
resp
Definition:
HazardDetectionLight.py:74
python
RappCloud
CloudMsgs
HazardDetectionLight.py
Generated on Fri Jul 29 2016 18:45:01 for RAPP Platform API by
1.8.6