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