00001 """autogenerated by genmsg_py from StatusCodes.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class StatusCodes(roslib.message.Message):
00007 _md5sum = "5f286aed2b2ab4b227e7b7185bae624d"
00008 _type = "app_manager/StatusCodes"
00009 _has_header = False
00010 _full_text = """# Common error codes used with App Manager.
00011 int32 SUCCESS = 0
00012 # Request was invalid.
00013 int32 BAD_REQUEST = 400
00014 # App is not installed.
00015 int32 NOT_FOUND = 404
00016 # App is not running.
00017 int32 NOT_RUNNING = 430
00018 # Unknown internal error on the server.
00019 int32 INTERNAL_ERROR = 500
00020 # App is installed but failed validation.
00021 int32 APP_INVALID = 510
00022 # App manager does not support launching multiple apps simultaneously. Running app must first be stopped.
00023 int32 MULTIAPP_NOT_SUPPORTED = 511
00024
00025 """
00026
00027 SUCCESS = 0
00028 BAD_REQUEST = 400
00029 NOT_FOUND = 404
00030 NOT_RUNNING = 430
00031 INTERNAL_ERROR = 500
00032 APP_INVALID = 510
00033 MULTIAPP_NOT_SUPPORTED = 511
00034
00035 __slots__ = []
00036 _slot_types = []
00037
00038 def __init__(self, *args, **kwds):
00039 """
00040 Constructor. Any message fields that are implicitly/explicitly
00041 set to None will be assigned a default value. The recommend
00042 use is keyword arguments as this is more robust to future message
00043 changes. You cannot mix in-order arguments and keyword arguments.
00044
00045 The available fields are:
00046
00047
00048 @param args: complete set of field values, in .msg order
00049 @param kwds: use keyword arguments corresponding to message field names
00050 to set specific fields.
00051 """
00052 if args or kwds:
00053 super(StatusCodes, self).__init__(*args, **kwds)
00054
00055 def _get_types(self):
00056 """
00057 internal API method
00058 """
00059 return self._slot_types
00060
00061 def serialize(self, buff):
00062 """
00063 serialize message into buffer
00064 @param buff: buffer
00065 @type buff: StringIO
00066 """
00067 try:
00068 pass
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 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 pass
00095 except struct.error, se: self._check_types(se)
00096 except TypeError, te: self._check_types(te)
00097
00098 def deserialize_numpy(self, str, numpy):
00099 """
00100 unpack serialized message in str into this message instance using numpy for array types
00101 @param str: byte array of serialized message
00102 @type str: str
00103 @param numpy: numpy python module
00104 @type numpy: module
00105 """
00106 try:
00107 end = 0
00108 return self
00109 except struct.error, e:
00110 raise roslib.message.DeserializationError(e)
00111
00112 _struct_I = roslib.message.struct_I