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