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