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