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