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