00001 """autogenerated by genmsg_py from MoveRelLinRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class MoveRelLinRequest(roslib.message.Message):
00007 _md5sum = "c05906c61e67eca66d1eb0cf2695b2b6"
00008 _type = "cob_simpletrajectories/MoveRelLinRequest"
00009 _has_header = False
00010 _full_text = """float64 x
00011 float64 y
00012 float64 z
00013 float64 time
00014
00015 """
00016 __slots__ = ['x','y','z','time']
00017 _slot_types = ['float64','float64','float64','float64']
00018
00019 def __init__(self, *args, **kwds):
00020 """
00021 Constructor. Any message fields that are implicitly/explicitly
00022 set to None will be assigned a default value. The recommend
00023 use is keyword arguments as this is more robust to future message
00024 changes. You cannot mix in-order arguments and keyword arguments.
00025
00026 The available fields are:
00027 x,y,z,time
00028
00029 @param args: complete set of field values, in .msg order
00030 @param kwds: use keyword arguments corresponding to message field names
00031 to set specific fields.
00032 """
00033 if args or kwds:
00034 super(MoveRelLinRequest, self).__init__(*args, **kwds)
00035
00036 if self.x is None:
00037 self.x = 0.
00038 if self.y is None:
00039 self.y = 0.
00040 if self.z is None:
00041 self.z = 0.
00042 if self.time is None:
00043 self.time = 0.
00044 else:
00045 self.x = 0.
00046 self.y = 0.
00047 self.z = 0.
00048 self.time = 0.
00049
00050 def _get_types(self):
00051 """
00052 internal API method
00053 """
00054 return self._slot_types
00055
00056 def serialize(self, buff):
00057 """
00058 serialize message into buffer
00059 @param buff: buffer
00060 @type buff: StringIO
00061 """
00062 try:
00063 _x = self
00064 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.time))
00065 except struct.error, se: self._check_types(se)
00066 except TypeError, te: self._check_types(te)
00067
00068 def deserialize(self, str):
00069 """
00070 unpack serialized message in str into this message instance
00071 @param str: byte array of serialized message
00072 @type str: str
00073 """
00074 try:
00075 end = 0
00076 _x = self
00077 start = end
00078 end += 32
00079 (_x.x, _x.y, _x.z, _x.time,) = _struct_4d.unpack(str[start:end])
00080 return self
00081 except struct.error, e:
00082 raise roslib.message.DeserializationError(e)
00083
00084
00085 def serialize_numpy(self, buff, numpy):
00086 """
00087 serialize message with numpy array types into buffer
00088 @param buff: buffer
00089 @type buff: StringIO
00090 @param numpy: numpy python module
00091 @type numpy module
00092 """
00093 try:
00094 _x = self
00095 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.time))
00096 except struct.error, se: self._check_types(se)
00097 except TypeError, te: self._check_types(te)
00098
00099 def deserialize_numpy(self, str, numpy):
00100 """
00101 unpack serialized message in str into this message instance using numpy for array types
00102 @param str: byte array of serialized message
00103 @type str: str
00104 @param numpy: numpy python module
00105 @type numpy: module
00106 """
00107 try:
00108 end = 0
00109 _x = self
00110 start = end
00111 end += 32
00112 (_x.x, _x.y, _x.z, _x.time,) = _struct_4d.unpack(str[start:end])
00113 return self
00114 except struct.error, e:
00115 raise roslib.message.DeserializationError(e)
00116
00117 _struct_I = roslib.message.struct_I
00118 _struct_4d = struct.Struct("<4d")
00119 """autogenerated by genmsg_py from MoveRelLinResponse.msg. Do not edit."""
00120 import roslib.message
00121 import struct
00122
00123
00124 class MoveRelLinResponse(roslib.message.Message):
00125 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00126 _type = "cob_simpletrajectories/MoveRelLinResponse"
00127 _has_header = False
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(MoveRelLinResponse, 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, se: self._check_types(se)
00166 except TypeError, 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, e:
00178 raise roslib.message.DeserializationError(e)
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, se: self._check_types(se)
00192 except TypeError, 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, e:
00206 raise roslib.message.DeserializationError(e)
00207
00208 _struct_I = roslib.message.struct_I
00209 class MoveRelLin(roslib.message.ServiceDefinition):
00210 _type = 'cob_simpletrajectories/MoveRelLin'
00211 _md5sum = 'c05906c61e67eca66d1eb0cf2695b2b6'
00212 _request_class = MoveRelLinRequest
00213 _response_class = MoveRelLinResponse