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