Go to the documentation of this file.00001 """autogenerated by genpy from concert_msgs/Constants.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 Constants(genpy.Message):
00009 _md5sum = "58b2355f4046375bd3afad2b1f121bb8"
00010 _type = "concert_msgs/Constants"
00011 _has_header = False
00012 _full_text = """# Constants used for many of the concert messages and services.
00013
00014 ######################## Platform Triple ########################
00015
00016 string PLATFORM_ANY=*
00017 string PLATFORM_LINUX=linux
00018 string PLATFORM_WINDOZE=windoze
00019 string PLATFORM_ANDROID=android
00020
00021 string SYSTEM_CUSTOM=custom
00022 string SYSTEM_ROS=ros
00023 string SYSTEM_OPROS=opros
00024
00025 # Valid robot types, though this is totally not
00026 # official, and we aren't relying on it.
00027 string ROBOT_ANY=*
00028 string ROBOT_PC=pc
00029 string ROBOT_ROBOSEM=robosem
00030 string ROBOT_KOBUKI=kobuki
00031 string ROBOT_TURTLEBOT=turtlebot
00032
00033 ######################### Status Modes ##########################
00034
00035 string CONCERT_CLIENT_STATUS_AVAILABLE=available
00036 string CONCERT_CLIENT_STATUS_CONCERT=concert_mode
00037 string CONCERT_CLIENT_STATUS_PAIRED=paired_mode
00038
00039 string APP_STATUS_STOPPED=stopped
00040 string APP_STATUS_RUNNING=running
00041
00042 """
00043
00044 PLATFORM_ANY = '*'
00045 PLATFORM_LINUX = 'linux'
00046 PLATFORM_WINDOZE = 'windoze'
00047 PLATFORM_ANDROID = 'android'
00048 SYSTEM_CUSTOM = 'custom'
00049 SYSTEM_ROS = 'ros'
00050 SYSTEM_OPROS = 'opros'
00051 ROBOT_ANY = '*'
00052 ROBOT_PC = 'pc'
00053 ROBOT_ROBOSEM = 'robosem'
00054 ROBOT_KOBUKI = 'kobuki'
00055 ROBOT_TURTLEBOT = 'turtlebot'
00056 CONCERT_CLIENT_STATUS_AVAILABLE = 'available'
00057 CONCERT_CLIENT_STATUS_CONCERT = 'concert_mode'
00058 CONCERT_CLIENT_STATUS_PAIRED = 'paired_mode'
00059 APP_STATUS_STOPPED = 'stopped'
00060 APP_STATUS_RUNNING = 'running'
00061
00062 __slots__ = []
00063 _slot_types = []
00064
00065 def __init__(self, *args, **kwds):
00066 """
00067 Constructor. Any message fields that are implicitly/explicitly
00068 set to None will be assigned a default value. The recommend
00069 use is keyword arguments as this is more robust to future message
00070 changes. You cannot mix in-order arguments and keyword arguments.
00071
00072 The available fields are:
00073
00074
00075 :param args: complete set of field values, in .msg order
00076 :param kwds: use keyword arguments corresponding to message field names
00077 to set specific fields.
00078 """
00079 if args or kwds:
00080 super(Constants, self).__init__(*args, **kwds)
00081
00082 def _get_types(self):
00083 """
00084 internal API method
00085 """
00086 return self._slot_types
00087
00088 def serialize(self, buff):
00089 """
00090 serialize message into buffer
00091 :param buff: buffer, ``StringIO``
00092 """
00093 try:
00094 pass
00095 except struct.error as se: self._check_types(se)
00096 except TypeError as te: self._check_types(te)
00097
00098 def deserialize(self, str):
00099 """
00100 unpack serialized message in str into this message instance
00101 :param str: byte array of serialized message, ``str``
00102 """
00103 try:
00104 end = 0
00105 return self
00106 except struct.error as e:
00107 raise genpy.DeserializationError(e)
00108
00109
00110 def serialize_numpy(self, buff, numpy):
00111 """
00112 serialize message with numpy array types into buffer
00113 :param buff: buffer, ``StringIO``
00114 :param numpy: numpy python module
00115 """
00116 try:
00117 pass
00118 except struct.error as se: self._check_types(se)
00119 except TypeError as te: self._check_types(te)
00120
00121 def deserialize_numpy(self, str, numpy):
00122 """
00123 unpack serialized message in str into this message instance using numpy for array types
00124 :param str: byte array of serialized message, ``str``
00125 :param numpy: numpy python module
00126 """
00127 try:
00128 end = 0
00129 return self
00130 except struct.error as e:
00131 raise genpy.DeserializationError(e)
00132
00133 _struct_I = genpy.struct_I