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