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