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