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