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