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