00001 """autogenerated by genmsg_py from MoveMap.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import geometry_msgs.msg
00006 import std_msgs.msg
00007
00008 class MoveMap(roslib.message.Message):
00009 _md5sum = "84410d37158df014272b36410da4920b"
00010 _type = "octomap_ros/MoveMap"
00011 _has_header = True
00012 _full_text = """# update a map node in an o/h hierarchy
00013 Header header
00014 int32 id
00015 geometry_msgs/Pose transform
00016 bool absolute
00017 ================================================================================
00018 MSG: std_msgs/Header
00019 # Standard metadata for higher-level stamped data types.
00020 # This is generally used to communicate timestamped data
00021 # in a particular coordinate frame.
00022 #
00023 # sequence ID: consecutively increasing ID
00024 uint32 seq
00025 #Two-integer timestamp that is expressed as:
00026 # * stamp.secs: seconds (stamp_secs) since epoch
00027 # * stamp.nsecs: nanoseconds since stamp_secs
00028 # time-handling sugar is provided by the client library
00029 time stamp
00030 #Frame this data is associated with
00031 # 0: no frame
00032 # 1: global frame
00033 string frame_id
00034
00035 ================================================================================
00036 MSG: geometry_msgs/Pose
00037 # A representation of pose in free space, composed of postion and orientation.
00038 Point position
00039 Quaternion orientation
00040
00041 ================================================================================
00042 MSG: geometry_msgs/Point
00043 # This contains the position of a point in free space
00044 float64 x
00045 float64 y
00046 float64 z
00047
00048 ================================================================================
00049 MSG: geometry_msgs/Quaternion
00050 # This represents an orientation in free space in quaternion form.
00051
00052 float64 x
00053 float64 y
00054 float64 z
00055 float64 w
00056
00057 """
00058 __slots__ = ['header','id','transform','absolute']
00059 _slot_types = ['Header','int32','geometry_msgs/Pose','bool']
00060
00061 def __init__(self, *args, **kwds):
00062 """
00063 Constructor. Any message fields that are implicitly/explicitly
00064 set to None will be assigned a default value. The recommend
00065 use is keyword arguments as this is more robust to future message
00066 changes. You cannot mix in-order arguments and keyword arguments.
00067
00068 The available fields are:
00069 header,id,transform,absolute
00070
00071 @param args: complete set of field values, in .msg order
00072 @param kwds: use keyword arguments corresponding to message field names
00073 to set specific fields.
00074 """
00075 if args or kwds:
00076 super(MoveMap, self).__init__(*args, **kwds)
00077
00078 if self.header is None:
00079 self.header = std_msgs.msg._Header.Header()
00080 if self.id is None:
00081 self.id = 0
00082 if self.transform is None:
00083 self.transform = geometry_msgs.msg.Pose()
00084 if self.absolute is None:
00085 self.absolute = False
00086 else:
00087 self.header = std_msgs.msg._Header.Header()
00088 self.id = 0
00089 self.transform = geometry_msgs.msg.Pose()
00090 self.absolute = False
00091
00092 def _get_types(self):
00093 """
00094 internal API method
00095 """
00096 return self._slot_types
00097
00098 def serialize(self, buff):
00099 """
00100 serialize message into buffer
00101 @param buff: buffer
00102 @type buff: StringIO
00103 """
00104 try:
00105 _x = self
00106 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00107 _x = self.header.frame_id
00108 length = len(_x)
00109 buff.write(struct.pack('<I%ss'%length, length, _x))
00110 _x = self
00111 buff.write(_struct_i7dB.pack(_x.id, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.absolute))
00112 except struct.error, se: self._check_types(se)
00113 except TypeError, te: self._check_types(te)
00114
00115 def deserialize(self, str):
00116 """
00117 unpack serialized message in str into this message instance
00118 @param str: byte array of serialized message
00119 @type str: str
00120 """
00121 try:
00122 if self.header is None:
00123 self.header = std_msgs.msg._Header.Header()
00124 if self.transform is None:
00125 self.transform = geometry_msgs.msg.Pose()
00126 end = 0
00127 _x = self
00128 start = end
00129 end += 12
00130 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00131 start = end
00132 end += 4
00133 (length,) = _struct_I.unpack(str[start:end])
00134 start = end
00135 end += length
00136 self.header.frame_id = str[start:end]
00137 _x = self
00138 start = end
00139 end += 61
00140 (_x.id, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.absolute,) = _struct_i7dB.unpack(str[start:end])
00141 self.absolute = bool(self.absolute)
00142 return self
00143 except struct.error, e:
00144 raise roslib.message.DeserializationError(e)
00145
00146
00147 def serialize_numpy(self, buff, numpy):
00148 """
00149 serialize message with numpy array types into buffer
00150 @param buff: buffer
00151 @type buff: StringIO
00152 @param numpy: numpy python module
00153 @type numpy module
00154 """
00155 try:
00156 _x = self
00157 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00158 _x = self.header.frame_id
00159 length = len(_x)
00160 buff.write(struct.pack('<I%ss'%length, length, _x))
00161 _x = self
00162 buff.write(_struct_i7dB.pack(_x.id, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.absolute))
00163 except struct.error, se: self._check_types(se)
00164 except TypeError, te: self._check_types(te)
00165
00166 def deserialize_numpy(self, str, numpy):
00167 """
00168 unpack serialized message in str into this message instance using numpy for array types
00169 @param str: byte array of serialized message
00170 @type str: str
00171 @param numpy: numpy python module
00172 @type numpy: module
00173 """
00174 try:
00175 if self.header is None:
00176 self.header = std_msgs.msg._Header.Header()
00177 if self.transform is None:
00178 self.transform = geometry_msgs.msg.Pose()
00179 end = 0
00180 _x = self
00181 start = end
00182 end += 12
00183 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00184 start = end
00185 end += 4
00186 (length,) = _struct_I.unpack(str[start:end])
00187 start = end
00188 end += length
00189 self.header.frame_id = str[start:end]
00190 _x = self
00191 start = end
00192 end += 61
00193 (_x.id, _x.transform.position.x, _x.transform.position.y, _x.transform.position.z, _x.transform.orientation.x, _x.transform.orientation.y, _x.transform.orientation.z, _x.transform.orientation.w, _x.absolute,) = _struct_i7dB.unpack(str[start:end])
00194 self.absolute = bool(self.absolute)
00195 return self
00196 except struct.error, e:
00197 raise roslib.message.DeserializationError(e)
00198
00199 _struct_I = roslib.message.struct_I
00200 _struct_3I = struct.Struct("<3I")
00201 _struct_i7dB = struct.Struct("<i7dB")