1 """autogenerated by genpy from tf/FrameGraphRequest.msg. Do not edit."""
2 import sys
3 python3 = True if sys.hexversion > 0x03000000 else False
4 import genpy
5 import struct
6
7
9 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
10 _type = "tf/FrameGraphRequest"
11 _has_header = False
12 _full_text = """
13 """
14 __slots__ = []
15 _slot_types = []
16
18 """
19 Constructor. Any message fields that are implicitly/explicitly
20 set to None will be assigned a default value. The recommend
21 use is keyword arguments as this is more robust to future message
22 changes. You cannot mix in-order arguments and keyword arguments.
23
24 The available fields are:
25
26
27 :param args: complete set of field values, in .msg order
28 :param kwds: use keyword arguments corresponding to message field names
29 to set specific fields.
30 """
31 if args or kwds:
32 super(FrameGraphRequest, self).__init__(*args, **kwds)
33
35 """
36 internal API method
37 """
38 return self._slot_types
39
41 """
42 serialize message into buffer
43 :param buff: buffer, ``StringIO``
44 """
45 try:
46 pass
47 except struct.error as se: self._check_types(se)
48 except TypeError as te: self._check_types(te)
49
51 """
52 unpack serialized message in str into this message instance
53 :param str: byte array of serialized message, ``str``
54 """
55 try:
56 end = 0
57 return self
58 except struct.error as e:
59 raise genpy.DeserializationError(e)
60
61
63 """
64 serialize message with numpy array types into buffer
65 :param buff: buffer, ``StringIO``
66 :param numpy: numpy python module
67 """
68 try:
69 pass
70 except struct.error as se: self._check_types(se)
71 except TypeError as te: self._check_types(te)
72
74 """
75 unpack serialized message in str into this message instance using numpy for array types
76 :param str: byte array of serialized message, ``str``
77 :param numpy: numpy python module
78 """
79 try:
80 end = 0
81 return self
82 except struct.error as e:
83 raise genpy.DeserializationError(e)
84
85 _struct_I = genpy.struct_I
86 """autogenerated by genpy from tf/FrameGraphResponse.msg. Do not edit."""
87 import sys
88 python3 = True if sys.hexversion > 0x03000000 else False
89 import genpy
90 import struct
91
92
94 _md5sum = "c4af9ac907e58e906eb0b6e3c58478c0"
95 _type = "tf/FrameGraphResponse"
96 _has_header = False
97 _full_text = """string dot_graph
98
99
100 """
101 __slots__ = ['dot_graph']
102 _slot_types = ['string']
103
105 """
106 Constructor. Any message fields that are implicitly/explicitly
107 set to None will be assigned a default value. The recommend
108 use is keyword arguments as this is more robust to future message
109 changes. You cannot mix in-order arguments and keyword arguments.
110
111 The available fields are:
112 dot_graph
113
114 :param args: complete set of field values, in .msg order
115 :param kwds: use keyword arguments corresponding to message field names
116 to set specific fields.
117 """
118 if args or kwds:
119 super(FrameGraphResponse, self).__init__(*args, **kwds)
120
121 if self.dot_graph is None:
122 self.dot_graph = ''
123 else:
124 self.dot_graph = ''
125
127 """
128 internal API method
129 """
130 return self._slot_types
131
133 """
134 serialize message into buffer
135 :param buff: buffer, ``StringIO``
136 """
137 try:
138 _x = self.dot_graph
139 length = len(_x)
140 if python3 or type(_x) == unicode:
141 _x = _x.encode('utf-8')
142 length = len(_x)
143 buff.write(struct.pack('<I%ss'%length, length, _x))
144 except struct.error as se: self._check_types(se)
145 except TypeError as te: self._check_types(te)
146
148 """
149 unpack serialized message in str into this message instance
150 :param str: byte array of serialized message, ``str``
151 """
152 try:
153 end = 0
154 start = end
155 end += 4
156 (length,) = _struct_I.unpack(str[start:end])
157 start = end
158 end += length
159 if python3:
160 self.dot_graph = str[start:end].decode('utf-8')
161 else:
162 self.dot_graph = str[start:end]
163 return self
164 except struct.error as e:
165 raise genpy.DeserializationError(e)
166
167
169 """
170 serialize message with numpy array types into buffer
171 :param buff: buffer, ``StringIO``
172 :param numpy: numpy python module
173 """
174 try:
175 _x = self.dot_graph
176 length = len(_x)
177 if python3 or type(_x) == unicode:
178 _x = _x.encode('utf-8')
179 length = len(_x)
180 buff.write(struct.pack('<I%ss'%length, length, _x))
181 except struct.error as se: self._check_types(se)
182 except TypeError as te: self._check_types(te)
183
185 """
186 unpack serialized message in str into this message instance using numpy for array types
187 :param str: byte array of serialized message, ``str``
188 :param numpy: numpy python module
189 """
190 try:
191 end = 0
192 start = end
193 end += 4
194 (length,) = _struct_I.unpack(str[start:end])
195 start = end
196 end += length
197 if python3:
198 self.dot_graph = str[start:end].decode('utf-8')
199 else:
200 self.dot_graph = str[start:end]
201 return self
202 except struct.error as e:
203 raise genpy.DeserializationError(e)
204
205 _struct_I = genpy.struct_I
211