1 """autogenerated by genpy from next_best_view/PointCloudMessage.msg. Do not edit.""" 3 python3 =
True if sys.hexversion > 0x03000000
else False 7 import geometry_msgs.msg
8 import asr_next_best_view.msg
11 _md5sum =
"fc8288a0cdd89ce554a8f9e4bb864989" 12 _type =
"asr_next_best_view/PointCloudMessage" 14 _full_text =
"""# PointCloud Elements 15 PointCloudElement[] elements 16 ================================================================================ 17 MSG: asr_next_best_view/PointCloudElement 20 geometry_msgs/Pose pose 21 ================================================================================ 22 MSG: geometry_msgs/Pose 23 # A representation of pose in free space, composed of postion and orientation. 25 Quaternion orientation 27 ================================================================================ 28 MSG: geometry_msgs/Point 29 # This contains the position of a point in free space 34 ================================================================================ 35 MSG: geometry_msgs/Quaternion 36 # This represents an orientation in free space in quaternion form. 44 __slots__ = [
'elements']
45 _slot_types = [
'asr_next_best_view/PointCloudElement[]']
49 Constructor. Any message fields that are implicitly/explicitly 50 set to None will be assigned a default value. The recommend 51 use is keyword arguments as this is more robust to future message 52 changes. You cannot mix in-order arguments and keyword arguments. 54 The available fields are: 57 :param args: complete set of field values, in .msg order 58 :param kwds: use keyword arguments corresponding to message field names 59 to set specific fields. 62 super(PointCloudMessage, self).
__init__(*args, **kwds)
77 serialize message into buffer 78 :param buff: buffer, ``StringIO`` 82 buff.write(_struct_I.pack(length))
86 if python3
or type(_x) == unicode:
87 _x = _x.encode(
'utf-8')
89 buff.write(struct.pack(
'<I%ss'%length, length, _x))
93 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
96 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
97 except struct.error
as se: self._check_types(se)
98 except TypeError
as te: self._check_types(te)
102 unpack serialized message in str into this message instance 103 :param str: byte array of serialized message, ``str`` 111 (length,) = _struct_I.unpack(str[start:end])
113 for i
in range(0, length):
114 val1 = asr_next_best_view.msg.PointCloudElement()
117 (length,) = _struct_I.unpack(str[start:end])
121 val1.object_type = str[start:end].decode(
'utf-8')
123 val1.object_type = str[start:end]
129 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
130 _v6 = _v4.orientation
134 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
135 self.elements.append(val1)
137 except struct.error
as e:
138 raise genpy.DeserializationError(e)
143 serialize message with numpy array types into buffer 144 :param buff: buffer, ``StringIO`` 145 :param numpy: numpy python module 149 buff.write(_struct_I.pack(length))
151 _x = val1.object_type
153 if python3
or type(_x) == unicode:
154 _x = _x.encode(
'utf-8')
156 buff.write(struct.pack(
'<I%ss'%length, length, _x))
160 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
161 _v9 = _v7.orientation
163 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
164 except struct.error
as se: self._check_types(se)
165 except TypeError
as te: self._check_types(te)
169 unpack serialized message in str into this message instance using numpy for array types 170 :param str: byte array of serialized message, ``str`` 171 :param numpy: numpy python module 179 (length,) = _struct_I.unpack(str[start:end])
181 for i
in range(0, length):
182 val1 = asr_next_best_view.msg.PointCloudElement()
185 (length,) = _struct_I.unpack(str[start:end])
189 val1.object_type = str[start:end].decode(
'utf-8')
191 val1.object_type = str[start:end]
197 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
198 _v12 = _v10.orientation
202 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
203 self.elements.append(val1)
205 except struct.error
as e:
206 raise genpy.DeserializationError(e)
208 _struct_I = genpy.struct_I
209 _struct_4d = struct.Struct(
"<4d")
210 _struct_3d = struct.Struct(
"<3d")
def serialize(self, buff)
def serialize_numpy(self, buff, numpy)
def deserialize(self, str)
def __init__(self, args, kwds)
def deserialize_numpy(self, str, numpy)