_GetUrdf.py
Go to the documentation of this file.
00001 """autogenerated by genpy from srs_object_database_msgs/GetUrdfRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class GetUrdfRequest(genpy.Message):
00009   _md5sum = "80afe6caba30c992d2e7ff6ff0e0d51e"
00010   _type = "srs_object_database_msgs/GetUrdfRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 
00015 
00016 int32[] model_ids
00017 
00018 
00019 """
00020   __slots__ = ['model_ids']
00021   _slot_types = ['int32[]']
00022 
00023   def __init__(self, *args, **kwds):
00024     """
00025     Constructor. Any message fields that are implicitly/explicitly
00026     set to None will be assigned a default value. The recommend
00027     use is keyword arguments as this is more robust to future message
00028     changes.  You cannot mix in-order arguments and keyword arguments.
00029 
00030     The available fields are:
00031        model_ids
00032 
00033     :param args: complete set of field values, in .msg order
00034     :param kwds: use keyword arguments corresponding to message field names
00035     to set specific fields.
00036     """
00037     if args or kwds:
00038       super(GetUrdfRequest, self).__init__(*args, **kwds)
00039       #message fields cannot be None, assign default values for those that are
00040       if self.model_ids is None:
00041         self.model_ids = []
00042     else:
00043       self.model_ids = []
00044 
00045   def _get_types(self):
00046     """
00047     internal API method
00048     """
00049     return self._slot_types
00050 
00051   def serialize(self, buff):
00052     """
00053     serialize message into buffer
00054     :param buff: buffer, ``StringIO``
00055     """
00056     try:
00057       length = len(self.model_ids)
00058       buff.write(_struct_I.pack(length))
00059       pattern = '<%si'%length
00060       buff.write(struct.pack(pattern, *self.model_ids))
00061     except struct.error as se: self._check_types(se)
00062     except TypeError as te: self._check_types(te)
00063 
00064   def deserialize(self, str):
00065     """
00066     unpack serialized message in str into this message instance
00067     :param str: byte array of serialized message, ``str``
00068     """
00069     try:
00070       end = 0
00071       start = end
00072       end += 4
00073       (length,) = _struct_I.unpack(str[start:end])
00074       pattern = '<%si'%length
00075       start = end
00076       end += struct.calcsize(pattern)
00077       self.model_ids = struct.unpack(pattern, str[start:end])
00078       return self
00079     except struct.error as e:
00080       raise genpy.DeserializationError(e) #most likely buffer underfill
00081 
00082 
00083   def serialize_numpy(self, buff, numpy):
00084     """
00085     serialize message with numpy array types into buffer
00086     :param buff: buffer, ``StringIO``
00087     :param numpy: numpy python module
00088     """
00089     try:
00090       length = len(self.model_ids)
00091       buff.write(_struct_I.pack(length))
00092       pattern = '<%si'%length
00093       buff.write(self.model_ids.tostring())
00094     except struct.error as se: self._check_types(se)
00095     except TypeError as te: self._check_types(te)
00096 
00097   def deserialize_numpy(self, str, numpy):
00098     """
00099     unpack serialized message in str into this message instance using numpy for array types
00100     :param str: byte array of serialized message, ``str``
00101     :param numpy: numpy python module
00102     """
00103     try:
00104       end = 0
00105       start = end
00106       end += 4
00107       (length,) = _struct_I.unpack(str[start:end])
00108       pattern = '<%si'%length
00109       start = end
00110       end += struct.calcsize(pattern)
00111       self.model_ids = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length)
00112       return self
00113     except struct.error as e:
00114       raise genpy.DeserializationError(e) #most likely buffer underfill
00115 
00116 _struct_I = genpy.struct_I
00117 """autogenerated by genpy from srs_object_database_msgs/GetUrdfResponse.msg. Do not edit."""
00118 import sys
00119 python3 = True if sys.hexversion > 0x03000000 else False
00120 import genpy
00121 import struct
00122 
00123 import genpy
00124 import srs_object_database_msgs.msg
00125 import geometry_msgs.msg
00126 import visualization_msgs.msg
00127 import std_msgs.msg
00128 
00129 class GetUrdfResponse(genpy.Message):
00130   _md5sum = "18629b80ecc1511309bef0685f2134c3"
00131   _type = "srs_object_database_msgs/GetUrdfResponse"
00132   _has_header = False #flag to mark the presence of a Header object
00133   _full_text = """
00134 
00135 string return_response
00136 
00137 srs_object_database_msgs/urdf[] urdf
00138 
00139 
00140 ================================================================================
00141 MSG: srs_object_database_msgs/urdf
00142 int32 objectId
00143 visualization_msgs/Marker[] markers
00144 ================================================================================
00145 MSG: visualization_msgs/Marker
00146 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz
00147 
00148 uint8 ARROW=0
00149 uint8 CUBE=1
00150 uint8 SPHERE=2
00151 uint8 CYLINDER=3
00152 uint8 LINE_STRIP=4
00153 uint8 LINE_LIST=5
00154 uint8 CUBE_LIST=6
00155 uint8 SPHERE_LIST=7
00156 uint8 POINTS=8
00157 uint8 TEXT_VIEW_FACING=9
00158 uint8 MESH_RESOURCE=10
00159 uint8 TRIANGLE_LIST=11
00160 
00161 uint8 ADD=0
00162 uint8 MODIFY=0
00163 uint8 DELETE=2
00164 
00165 Header header                        # header for time/frame information
00166 string ns                            # Namespace to place this object in... used in conjunction with id to create a unique name for the object
00167 int32 id                                         # object ID useful in conjunction with the namespace for manipulating and deleting the object later
00168 int32 type                                     # Type of object
00169 int32 action                           # 0 add/modify an object, 1 (deprecated), 2 deletes an object
00170 geometry_msgs/Pose pose                 # Pose of the object
00171 geometry_msgs/Vector3 scale             # Scale of the object 1,1,1 means default (usually 1 meter square)
00172 std_msgs/ColorRGBA color             # Color [0.0-1.0]
00173 duration lifetime                    # How long the object should last before being automatically deleted.  0 means forever
00174 bool frame_locked                    # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
00175 
00176 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
00177 geometry_msgs/Point[] points
00178 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
00179 #number of colors must either be 0 or equal to the number of points
00180 #NOTE: alpha is not yet used
00181 std_msgs/ColorRGBA[] colors
00182 
00183 # NOTE: only used for text markers
00184 string text
00185 
00186 # NOTE: only used for MESH_RESOURCE markers
00187 string mesh_resource
00188 bool mesh_use_embedded_materials
00189 
00190 ================================================================================
00191 MSG: std_msgs/Header
00192 # Standard metadata for higher-level stamped data types.
00193 # This is generally used to communicate timestamped data 
00194 # in a particular coordinate frame.
00195 # 
00196 # sequence ID: consecutively increasing ID 
00197 uint32 seq
00198 #Two-integer timestamp that is expressed as:
00199 # * stamp.secs: seconds (stamp_secs) since epoch
00200 # * stamp.nsecs: nanoseconds since stamp_secs
00201 # time-handling sugar is provided by the client library
00202 time stamp
00203 #Frame this data is associated with
00204 # 0: no frame
00205 # 1: global frame
00206 string frame_id
00207 
00208 ================================================================================
00209 MSG: geometry_msgs/Pose
00210 # A representation of pose in free space, composed of postion and orientation. 
00211 Point position
00212 Quaternion orientation
00213 
00214 ================================================================================
00215 MSG: geometry_msgs/Point
00216 # This contains the position of a point in free space
00217 float64 x
00218 float64 y
00219 float64 z
00220 
00221 ================================================================================
00222 MSG: geometry_msgs/Quaternion
00223 # This represents an orientation in free space in quaternion form.
00224 
00225 float64 x
00226 float64 y
00227 float64 z
00228 float64 w
00229 
00230 ================================================================================
00231 MSG: geometry_msgs/Vector3
00232 # This represents a vector in free space. 
00233 
00234 float64 x
00235 float64 y
00236 float64 z
00237 ================================================================================
00238 MSG: std_msgs/ColorRGBA
00239 float32 r
00240 float32 g
00241 float32 b
00242 float32 a
00243 
00244 """
00245   __slots__ = ['return_response','urdf']
00246   _slot_types = ['string','srs_object_database_msgs/urdf[]']
00247 
00248   def __init__(self, *args, **kwds):
00249     """
00250     Constructor. Any message fields that are implicitly/explicitly
00251     set to None will be assigned a default value. The recommend
00252     use is keyword arguments as this is more robust to future message
00253     changes.  You cannot mix in-order arguments and keyword arguments.
00254 
00255     The available fields are:
00256        return_response,urdf
00257 
00258     :param args: complete set of field values, in .msg order
00259     :param kwds: use keyword arguments corresponding to message field names
00260     to set specific fields.
00261     """
00262     if args or kwds:
00263       super(GetUrdfResponse, self).__init__(*args, **kwds)
00264       #message fields cannot be None, assign default values for those that are
00265       if self.return_response is None:
00266         self.return_response = ''
00267       if self.urdf is None:
00268         self.urdf = []
00269     else:
00270       self.return_response = ''
00271       self.urdf = []
00272 
00273   def _get_types(self):
00274     """
00275     internal API method
00276     """
00277     return self._slot_types
00278 
00279   def serialize(self, buff):
00280     """
00281     serialize message into buffer
00282     :param buff: buffer, ``StringIO``
00283     """
00284     try:
00285       _x = self.return_response
00286       length = len(_x)
00287       if python3 or type(_x) == unicode:
00288         _x = _x.encode('utf-8')
00289         length = len(_x)
00290       buff.write(struct.pack('<I%ss'%length, length, _x))
00291       length = len(self.urdf)
00292       buff.write(_struct_I.pack(length))
00293       for val1 in self.urdf:
00294         buff.write(_struct_i.pack(val1.objectId))
00295         length = len(val1.markers)
00296         buff.write(_struct_I.pack(length))
00297         for val2 in val1.markers:
00298           _v1 = val2.header
00299           buff.write(_struct_I.pack(_v1.seq))
00300           _v2 = _v1.stamp
00301           _x = _v2
00302           buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00303           _x = _v1.frame_id
00304           length = len(_x)
00305           if python3 or type(_x) == unicode:
00306             _x = _x.encode('utf-8')
00307             length = len(_x)
00308           buff.write(struct.pack('<I%ss'%length, length, _x))
00309           _x = val2.ns
00310           length = len(_x)
00311           if python3 or type(_x) == unicode:
00312             _x = _x.encode('utf-8')
00313             length = len(_x)
00314           buff.write(struct.pack('<I%ss'%length, length, _x))
00315           _x = val2
00316           buff.write(_struct_3i.pack(_x.id, _x.type, _x.action))
00317           _v3 = val2.pose
00318           _v4 = _v3.position
00319           _x = _v4
00320           buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00321           _v5 = _v3.orientation
00322           _x = _v5
00323           buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00324           _v6 = val2.scale
00325           _x = _v6
00326           buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00327           _v7 = val2.color
00328           _x = _v7
00329           buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a))
00330           _v8 = val2.lifetime
00331           _x = _v8
00332           buff.write(_struct_2i.pack(_x.secs, _x.nsecs))
00333           buff.write(_struct_B.pack(val2.frame_locked))
00334           length = len(val2.points)
00335           buff.write(_struct_I.pack(length))
00336           for val3 in val2.points:
00337             _x = val3
00338             buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00339           length = len(val2.colors)
00340           buff.write(_struct_I.pack(length))
00341           for val3 in val2.colors:
00342             _x = val3
00343             buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a))
00344           _x = val2.text
00345           length = len(_x)
00346           if python3 or type(_x) == unicode:
00347             _x = _x.encode('utf-8')
00348             length = len(_x)
00349           buff.write(struct.pack('<I%ss'%length, length, _x))
00350           _x = val2.mesh_resource
00351           length = len(_x)
00352           if python3 or type(_x) == unicode:
00353             _x = _x.encode('utf-8')
00354             length = len(_x)
00355           buff.write(struct.pack('<I%ss'%length, length, _x))
00356           buff.write(_struct_B.pack(val2.mesh_use_embedded_materials))
00357     except struct.error as se: self._check_types(se)
00358     except TypeError as te: self._check_types(te)
00359 
00360   def deserialize(self, str):
00361     """
00362     unpack serialized message in str into this message instance
00363     :param str: byte array of serialized message, ``str``
00364     """
00365     try:
00366       if self.urdf is None:
00367         self.urdf = None
00368       end = 0
00369       start = end
00370       end += 4
00371       (length,) = _struct_I.unpack(str[start:end])
00372       start = end
00373       end += length
00374       if python3:
00375         self.return_response = str[start:end].decode('utf-8')
00376       else:
00377         self.return_response = str[start:end]
00378       start = end
00379       end += 4
00380       (length,) = _struct_I.unpack(str[start:end])
00381       self.urdf = []
00382       for i in range(0, length):
00383         val1 = srs_object_database_msgs.msg.urdf()
00384         start = end
00385         end += 4
00386         (val1.objectId,) = _struct_i.unpack(str[start:end])
00387         start = end
00388         end += 4
00389         (length,) = _struct_I.unpack(str[start:end])
00390         val1.markers = []
00391         for i in range(0, length):
00392           val2 = visualization_msgs.msg.Marker()
00393           _v9 = val2.header
00394           start = end
00395           end += 4
00396           (_v9.seq,) = _struct_I.unpack(str[start:end])
00397           _v10 = _v9.stamp
00398           _x = _v10
00399           start = end
00400           end += 8
00401           (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00402           start = end
00403           end += 4
00404           (length,) = _struct_I.unpack(str[start:end])
00405           start = end
00406           end += length
00407           if python3:
00408             _v9.frame_id = str[start:end].decode('utf-8')
00409           else:
00410             _v9.frame_id = str[start:end]
00411           start = end
00412           end += 4
00413           (length,) = _struct_I.unpack(str[start:end])
00414           start = end
00415           end += length
00416           if python3:
00417             val2.ns = str[start:end].decode('utf-8')
00418           else:
00419             val2.ns = str[start:end]
00420           _x = val2
00421           start = end
00422           end += 12
00423           (_x.id, _x.type, _x.action,) = _struct_3i.unpack(str[start:end])
00424           _v11 = val2.pose
00425           _v12 = _v11.position
00426           _x = _v12
00427           start = end
00428           end += 24
00429           (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00430           _v13 = _v11.orientation
00431           _x = _v13
00432           start = end
00433           end += 32
00434           (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00435           _v14 = val2.scale
00436           _x = _v14
00437           start = end
00438           end += 24
00439           (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00440           _v15 = val2.color
00441           _x = _v15
00442           start = end
00443           end += 16
00444           (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end])
00445           _v16 = val2.lifetime
00446           _x = _v16
00447           start = end
00448           end += 8
00449           (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end])
00450           start = end
00451           end += 1
00452           (val2.frame_locked,) = _struct_B.unpack(str[start:end])
00453           val2.frame_locked = bool(val2.frame_locked)
00454           start = end
00455           end += 4
00456           (length,) = _struct_I.unpack(str[start:end])
00457           val2.points = []
00458           for i in range(0, length):
00459             val3 = geometry_msgs.msg.Point()
00460             _x = val3
00461             start = end
00462             end += 24
00463             (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00464             val2.points.append(val3)
00465           start = end
00466           end += 4
00467           (length,) = _struct_I.unpack(str[start:end])
00468           val2.colors = []
00469           for i in range(0, length):
00470             val3 = std_msgs.msg.ColorRGBA()
00471             _x = val3
00472             start = end
00473             end += 16
00474             (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end])
00475             val2.colors.append(val3)
00476           start = end
00477           end += 4
00478           (length,) = _struct_I.unpack(str[start:end])
00479           start = end
00480           end += length
00481           if python3:
00482             val2.text = str[start:end].decode('utf-8')
00483           else:
00484             val2.text = str[start:end]
00485           start = end
00486           end += 4
00487           (length,) = _struct_I.unpack(str[start:end])
00488           start = end
00489           end += length
00490           if python3:
00491             val2.mesh_resource = str[start:end].decode('utf-8')
00492           else:
00493             val2.mesh_resource = str[start:end]
00494           start = end
00495           end += 1
00496           (val2.mesh_use_embedded_materials,) = _struct_B.unpack(str[start:end])
00497           val2.mesh_use_embedded_materials = bool(val2.mesh_use_embedded_materials)
00498           val1.markers.append(val2)
00499         self.urdf.append(val1)
00500       return self
00501     except struct.error as e:
00502       raise genpy.DeserializationError(e) #most likely buffer underfill
00503 
00504 
00505   def serialize_numpy(self, buff, numpy):
00506     """
00507     serialize message with numpy array types into buffer
00508     :param buff: buffer, ``StringIO``
00509     :param numpy: numpy python module
00510     """
00511     try:
00512       _x = self.return_response
00513       length = len(_x)
00514       if python3 or type(_x) == unicode:
00515         _x = _x.encode('utf-8')
00516         length = len(_x)
00517       buff.write(struct.pack('<I%ss'%length, length, _x))
00518       length = len(self.urdf)
00519       buff.write(_struct_I.pack(length))
00520       for val1 in self.urdf:
00521         buff.write(_struct_i.pack(val1.objectId))
00522         length = len(val1.markers)
00523         buff.write(_struct_I.pack(length))
00524         for val2 in val1.markers:
00525           _v17 = val2.header
00526           buff.write(_struct_I.pack(_v17.seq))
00527           _v18 = _v17.stamp
00528           _x = _v18
00529           buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00530           _x = _v17.frame_id
00531           length = len(_x)
00532           if python3 or type(_x) == unicode:
00533             _x = _x.encode('utf-8')
00534             length = len(_x)
00535           buff.write(struct.pack('<I%ss'%length, length, _x))
00536           _x = val2.ns
00537           length = len(_x)
00538           if python3 or type(_x) == unicode:
00539             _x = _x.encode('utf-8')
00540             length = len(_x)
00541           buff.write(struct.pack('<I%ss'%length, length, _x))
00542           _x = val2
00543           buff.write(_struct_3i.pack(_x.id, _x.type, _x.action))
00544           _v19 = val2.pose
00545           _v20 = _v19.position
00546           _x = _v20
00547           buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00548           _v21 = _v19.orientation
00549           _x = _v21
00550           buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00551           _v22 = val2.scale
00552           _x = _v22
00553           buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00554           _v23 = val2.color
00555           _x = _v23
00556           buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a))
00557           _v24 = val2.lifetime
00558           _x = _v24
00559           buff.write(_struct_2i.pack(_x.secs, _x.nsecs))
00560           buff.write(_struct_B.pack(val2.frame_locked))
00561           length = len(val2.points)
00562           buff.write(_struct_I.pack(length))
00563           for val3 in val2.points:
00564             _x = val3
00565             buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00566           length = len(val2.colors)
00567           buff.write(_struct_I.pack(length))
00568           for val3 in val2.colors:
00569             _x = val3
00570             buff.write(_struct_4f.pack(_x.r, _x.g, _x.b, _x.a))
00571           _x = val2.text
00572           length = len(_x)
00573           if python3 or type(_x) == unicode:
00574             _x = _x.encode('utf-8')
00575             length = len(_x)
00576           buff.write(struct.pack('<I%ss'%length, length, _x))
00577           _x = val2.mesh_resource
00578           length = len(_x)
00579           if python3 or type(_x) == unicode:
00580             _x = _x.encode('utf-8')
00581             length = len(_x)
00582           buff.write(struct.pack('<I%ss'%length, length, _x))
00583           buff.write(_struct_B.pack(val2.mesh_use_embedded_materials))
00584     except struct.error as se: self._check_types(se)
00585     except TypeError as te: self._check_types(te)
00586 
00587   def deserialize_numpy(self, str, numpy):
00588     """
00589     unpack serialized message in str into this message instance using numpy for array types
00590     :param str: byte array of serialized message, ``str``
00591     :param numpy: numpy python module
00592     """
00593     try:
00594       if self.urdf is None:
00595         self.urdf = None
00596       end = 0
00597       start = end
00598       end += 4
00599       (length,) = _struct_I.unpack(str[start:end])
00600       start = end
00601       end += length
00602       if python3:
00603         self.return_response = str[start:end].decode('utf-8')
00604       else:
00605         self.return_response = str[start:end]
00606       start = end
00607       end += 4
00608       (length,) = _struct_I.unpack(str[start:end])
00609       self.urdf = []
00610       for i in range(0, length):
00611         val1 = srs_object_database_msgs.msg.urdf()
00612         start = end
00613         end += 4
00614         (val1.objectId,) = _struct_i.unpack(str[start:end])
00615         start = end
00616         end += 4
00617         (length,) = _struct_I.unpack(str[start:end])
00618         val1.markers = []
00619         for i in range(0, length):
00620           val2 = visualization_msgs.msg.Marker()
00621           _v25 = val2.header
00622           start = end
00623           end += 4
00624           (_v25.seq,) = _struct_I.unpack(str[start:end])
00625           _v26 = _v25.stamp
00626           _x = _v26
00627           start = end
00628           end += 8
00629           (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00630           start = end
00631           end += 4
00632           (length,) = _struct_I.unpack(str[start:end])
00633           start = end
00634           end += length
00635           if python3:
00636             _v25.frame_id = str[start:end].decode('utf-8')
00637           else:
00638             _v25.frame_id = str[start:end]
00639           start = end
00640           end += 4
00641           (length,) = _struct_I.unpack(str[start:end])
00642           start = end
00643           end += length
00644           if python3:
00645             val2.ns = str[start:end].decode('utf-8')
00646           else:
00647             val2.ns = str[start:end]
00648           _x = val2
00649           start = end
00650           end += 12
00651           (_x.id, _x.type, _x.action,) = _struct_3i.unpack(str[start:end])
00652           _v27 = val2.pose
00653           _v28 = _v27.position
00654           _x = _v28
00655           start = end
00656           end += 24
00657           (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00658           _v29 = _v27.orientation
00659           _x = _v29
00660           start = end
00661           end += 32
00662           (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00663           _v30 = val2.scale
00664           _x = _v30
00665           start = end
00666           end += 24
00667           (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00668           _v31 = val2.color
00669           _x = _v31
00670           start = end
00671           end += 16
00672           (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end])
00673           _v32 = val2.lifetime
00674           _x = _v32
00675           start = end
00676           end += 8
00677           (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end])
00678           start = end
00679           end += 1
00680           (val2.frame_locked,) = _struct_B.unpack(str[start:end])
00681           val2.frame_locked = bool(val2.frame_locked)
00682           start = end
00683           end += 4
00684           (length,) = _struct_I.unpack(str[start:end])
00685           val2.points = []
00686           for i in range(0, length):
00687             val3 = geometry_msgs.msg.Point()
00688             _x = val3
00689             start = end
00690             end += 24
00691             (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00692             val2.points.append(val3)
00693           start = end
00694           end += 4
00695           (length,) = _struct_I.unpack(str[start:end])
00696           val2.colors = []
00697           for i in range(0, length):
00698             val3 = std_msgs.msg.ColorRGBA()
00699             _x = val3
00700             start = end
00701             end += 16
00702             (_x.r, _x.g, _x.b, _x.a,) = _struct_4f.unpack(str[start:end])
00703             val2.colors.append(val3)
00704           start = end
00705           end += 4
00706           (length,) = _struct_I.unpack(str[start:end])
00707           start = end
00708           end += length
00709           if python3:
00710             val2.text = str[start:end].decode('utf-8')
00711           else:
00712             val2.text = str[start:end]
00713           start = end
00714           end += 4
00715           (length,) = _struct_I.unpack(str[start:end])
00716           start = end
00717           end += length
00718           if python3:
00719             val2.mesh_resource = str[start:end].decode('utf-8')
00720           else:
00721             val2.mesh_resource = str[start:end]
00722           start = end
00723           end += 1
00724           (val2.mesh_use_embedded_materials,) = _struct_B.unpack(str[start:end])
00725           val2.mesh_use_embedded_materials = bool(val2.mesh_use_embedded_materials)
00726           val1.markers.append(val2)
00727         self.urdf.append(val1)
00728       return self
00729     except struct.error as e:
00730       raise genpy.DeserializationError(e) #most likely buffer underfill
00731 
00732 _struct_I = genpy.struct_I
00733 _struct_B = struct.Struct("<B")
00734 _struct_i = struct.Struct("<i")
00735 _struct_2i = struct.Struct("<2i")
00736 _struct_3i = struct.Struct("<3i")
00737 _struct_4f = struct.Struct("<4f")
00738 _struct_4d = struct.Struct("<4d")
00739 _struct_2I = struct.Struct("<2I")
00740 _struct_3d = struct.Struct("<3d")
00741 class GetUrdf(object):
00742   _type          = 'srs_object_database_msgs/GetUrdf'
00743   _md5sum = '26b23ebbbc5d4aaeec0ca91a831f050a'
00744   _request_class  = GetUrdfRequest
00745   _response_class = GetUrdfResponse


srs_object_database_msgs
Author(s): Georg Arbeiter
autogenerated on Wed Nov 27 2013 14:14:38