$search
00001 """autogenerated by genmsg_py from EstimatePoseRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class EstimatePoseRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "blort_ros/EstimatePoseRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 """ 00012 __slots__ = [] 00013 _slot_types = [] 00014 00015 def __init__(self, *args, **kwds): 00016 """ 00017 Constructor. Any message fields that are implicitly/explicitly 00018 set to None will be assigned a default value. The recommend 00019 use is keyword arguments as this is more robust to future message 00020 changes. You cannot mix in-order arguments and keyword arguments. 00021 00022 The available fields are: 00023 00024 00025 @param args: complete set of field values, in .msg order 00026 @param kwds: use keyword arguments corresponding to message field names 00027 to set specific fields. 00028 """ 00029 if args or kwds: 00030 super(EstimatePoseRequest, self).__init__(*args, **kwds) 00031 00032 def _get_types(self): 00033 """ 00034 internal API method 00035 """ 00036 return self._slot_types 00037 00038 def serialize(self, buff): 00039 """ 00040 serialize message into buffer 00041 @param buff: buffer 00042 @type buff: StringIO 00043 """ 00044 try: 00045 pass 00046 except struct.error as se: self._check_types(se) 00047 except TypeError as te: self._check_types(te) 00048 00049 def deserialize(self, str): 00050 """ 00051 unpack serialized message in str into this message instance 00052 @param str: byte array of serialized message 00053 @type str: str 00054 """ 00055 try: 00056 end = 0 00057 return self 00058 except struct.error as e: 00059 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00060 00061 00062 def serialize_numpy(self, buff, numpy): 00063 """ 00064 serialize message with numpy array types into buffer 00065 @param buff: buffer 00066 @type buff: StringIO 00067 @param numpy: numpy python module 00068 @type numpy module 00069 """ 00070 try: 00071 pass 00072 except struct.error as se: self._check_types(se) 00073 except TypeError as te: self._check_types(te) 00074 00075 def deserialize_numpy(self, str, numpy): 00076 """ 00077 unpack serialized message in str into this message instance using numpy for array types 00078 @param str: byte array of serialized message 00079 @type str: str 00080 @param numpy: numpy python module 00081 @type numpy: module 00082 """ 00083 try: 00084 end = 0 00085 return self 00086 except struct.error as e: 00087 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00088 00089 _struct_I = roslib.message.struct_I 00090 """autogenerated by genmsg_py from EstimatePoseResponse.msg. Do not edit.""" 00091 import roslib.message 00092 import struct 00093 00094 import geometry_msgs.msg 00095 00096 class EstimatePoseResponse(roslib.message.Message): 00097 _md5sum = "db774e2f8d3bbd66cc277b8a8ce62817" 00098 _type = "blort_ros/EstimatePoseResponse" 00099 _has_header = False #flag to mark the presence of a Header object 00100 _full_text = """geometry_msgs/Pose Pose 00101 00102 00103 ================================================================================ 00104 MSG: geometry_msgs/Pose 00105 # A representation of pose in free space, composed of postion and orientation. 00106 Point position 00107 Quaternion orientation 00108 00109 ================================================================================ 00110 MSG: geometry_msgs/Point 00111 # This contains the position of a point in free space 00112 float64 x 00113 float64 y 00114 float64 z 00115 00116 ================================================================================ 00117 MSG: geometry_msgs/Quaternion 00118 # This represents an orientation in free space in quaternion form. 00119 00120 float64 x 00121 float64 y 00122 float64 z 00123 float64 w 00124 00125 """ 00126 __slots__ = ['Pose'] 00127 _slot_types = ['geometry_msgs/Pose'] 00128 00129 def __init__(self, *args, **kwds): 00130 """ 00131 Constructor. Any message fields that are implicitly/explicitly 00132 set to None will be assigned a default value. The recommend 00133 use is keyword arguments as this is more robust to future message 00134 changes. You cannot mix in-order arguments and keyword arguments. 00135 00136 The available fields are: 00137 Pose 00138 00139 @param args: complete set of field values, in .msg order 00140 @param kwds: use keyword arguments corresponding to message field names 00141 to set specific fields. 00142 """ 00143 if args or kwds: 00144 super(EstimatePoseResponse, self).__init__(*args, **kwds) 00145 #message fields cannot be None, assign default values for those that are 00146 if self.Pose is None: 00147 self.Pose = geometry_msgs.msg.Pose() 00148 else: 00149 self.Pose = geometry_msgs.msg.Pose() 00150 00151 def _get_types(self): 00152 """ 00153 internal API method 00154 """ 00155 return self._slot_types 00156 00157 def serialize(self, buff): 00158 """ 00159 serialize message into buffer 00160 @param buff: buffer 00161 @type buff: StringIO 00162 """ 00163 try: 00164 _x = self 00165 buff.write(_struct_7d.pack(_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w)) 00166 except struct.error as se: self._check_types(se) 00167 except TypeError as te: self._check_types(te) 00168 00169 def deserialize(self, str): 00170 """ 00171 unpack serialized message in str into this message instance 00172 @param str: byte array of serialized message 00173 @type str: str 00174 """ 00175 try: 00176 if self.Pose is None: 00177 self.Pose = geometry_msgs.msg.Pose() 00178 end = 0 00179 _x = self 00180 start = end 00181 end += 56 00182 (_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00183 return self 00184 except struct.error as e: 00185 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00186 00187 00188 def serialize_numpy(self, buff, numpy): 00189 """ 00190 serialize message with numpy array types into buffer 00191 @param buff: buffer 00192 @type buff: StringIO 00193 @param numpy: numpy python module 00194 @type numpy module 00195 """ 00196 try: 00197 _x = self 00198 buff.write(_struct_7d.pack(_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w)) 00199 except struct.error as se: self._check_types(se) 00200 except TypeError as te: self._check_types(te) 00201 00202 def deserialize_numpy(self, str, numpy): 00203 """ 00204 unpack serialized message in str into this message instance using numpy for array types 00205 @param str: byte array of serialized message 00206 @type str: str 00207 @param numpy: numpy python module 00208 @type numpy: module 00209 """ 00210 try: 00211 if self.Pose is None: 00212 self.Pose = geometry_msgs.msg.Pose() 00213 end = 0 00214 _x = self 00215 start = end 00216 end += 56 00217 (_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00218 return self 00219 except struct.error as e: 00220 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00221 00222 _struct_I = roslib.message.struct_I 00223 _struct_7d = struct.Struct("<7d") 00224 class EstimatePose(roslib.message.ServiceDefinition): 00225 _type = 'blort_ros/EstimatePose' 00226 _md5sum = 'db774e2f8d3bbd66cc277b8a8ce62817' 00227 _request_class = EstimatePoseRequest 00228 _response_class = EstimatePoseResponse