00001 """autogenerated by genmsg_py from GetCloudSettingsRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class GetCloudSettingsRequest(roslib.message.Message):
00007 _md5sum = "6ff027dea9c273d94115a43dce38bc1e"
00008 _type = "collision_environment_msgs/GetCloudSettingsRequest"
00009 _has_header = False
00010 _full_text = """string cloud_name
00011
00012 """
00013 __slots__ = ['cloud_name']
00014 _slot_types = ['string']
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 cloud_name
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(GetCloudSettingsRequest, self).__init__(*args, **kwds)
00032
00033 if self.cloud_name is None:
00034 self.cloud_name = ''
00035 else:
00036 self.cloud_name = ''
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 _x = self.cloud_name
00052 length = len(_x)
00053 buff.write(struct.pack('<I%ss'%length, length, _x))
00054 except struct.error, se: self._check_types(se)
00055 except TypeError, te: self._check_types(te)
00056
00057 def deserialize(self, str):
00058 """
00059 unpack serialized message in str into this message instance
00060 @param str: byte array of serialized message
00061 @type str: str
00062 """
00063 try:
00064 end = 0
00065 start = end
00066 end += 4
00067 (length,) = _struct_I.unpack(str[start:end])
00068 start = end
00069 end += length
00070 self.cloud_name = str[start:end]
00071 return self
00072 except struct.error, e:
00073 raise roslib.message.DeserializationError(e)
00074
00075
00076 def serialize_numpy(self, buff, numpy):
00077 """
00078 serialize message with numpy array types into buffer
00079 @param buff: buffer
00080 @type buff: StringIO
00081 @param numpy: numpy python module
00082 @type numpy module
00083 """
00084 try:
00085 _x = self.cloud_name
00086 length = len(_x)
00087 buff.write(struct.pack('<I%ss'%length, length, _x))
00088 except struct.error, se: self._check_types(se)
00089 except TypeError, te: self._check_types(te)
00090
00091 def deserialize_numpy(self, str, numpy):
00092 """
00093 unpack serialized message in str into this message instance using numpy for array types
00094 @param str: byte array of serialized message
00095 @type str: str
00096 @param numpy: numpy python module
00097 @type numpy: module
00098 """
00099 try:
00100 end = 0
00101 start = end
00102 end += 4
00103 (length,) = _struct_I.unpack(str[start:end])
00104 start = end
00105 end += length
00106 self.cloud_name = str[start:end]
00107 return self
00108 except struct.error, e:
00109 raise roslib.message.DeserializationError(e)
00110
00111 _struct_I = roslib.message.struct_I
00112 """autogenerated by genmsg_py from GetCloudSettingsResponse.msg. Do not edit."""
00113 import roslib.message
00114 import struct
00115
00116 import collision_environment_msgs.msg
00117
00118 class GetCloudSettingsResponse(roslib.message.Message):
00119 _md5sum = "9447e7a9df4e95e27a01de754fdcdc46"
00120 _type = "collision_environment_msgs/GetCloudSettingsResponse"
00121 _has_header = False
00122 _full_text = """collision_environment_msgs/CloudSettings settings
00123 int32 value
00124 int32 SUCCESS=1
00125 int32 NAME_NONEXISTANT=-1
00126 int32 FAILED=-2
00127
00128
00129
00130
00131
00132
00133
00134 ================================================================================
00135 MSG: collision_environment_msgs/CloudSettings
00136 string cloud_name
00137 int32 static_publish
00138 int32 dynamic_publish
00139 int32 INCLUDE = 1
00140 int32 EXCLUDE = 2
00141
00142 """
00143
00144 SUCCESS = 1
00145 NAME_NONEXISTANT = -1
00146 FAILED = -2
00147
00148 __slots__ = ['settings','value']
00149 _slot_types = ['collision_environment_msgs/CloudSettings','int32']
00150
00151 def __init__(self, *args, **kwds):
00152 """
00153 Constructor. Any message fields that are implicitly/explicitly
00154 set to None will be assigned a default value. The recommend
00155 use is keyword arguments as this is more robust to future message
00156 changes. You cannot mix in-order arguments and keyword arguments.
00157
00158 The available fields are:
00159 settings,value
00160
00161 @param args: complete set of field values, in .msg order
00162 @param kwds: use keyword arguments corresponding to message field names
00163 to set specific fields.
00164 """
00165 if args or kwds:
00166 super(GetCloudSettingsResponse, self).__init__(*args, **kwds)
00167
00168 if self.settings is None:
00169 self.settings = collision_environment_msgs.msg.CloudSettings()
00170 if self.value is None:
00171 self.value = 0
00172 else:
00173 self.settings = collision_environment_msgs.msg.CloudSettings()
00174 self.value = 0
00175
00176 def _get_types(self):
00177 """
00178 internal API method
00179 """
00180 return self._slot_types
00181
00182 def serialize(self, buff):
00183 """
00184 serialize message into buffer
00185 @param buff: buffer
00186 @type buff: StringIO
00187 """
00188 try:
00189 _x = self.settings.cloud_name
00190 length = len(_x)
00191 buff.write(struct.pack('<I%ss'%length, length, _x))
00192 _x = self
00193 buff.write(_struct_3i.pack(_x.settings.static_publish, _x.settings.dynamic_publish, _x.value))
00194 except struct.error, se: self._check_types(se)
00195 except TypeError, te: self._check_types(te)
00196
00197 def deserialize(self, str):
00198 """
00199 unpack serialized message in str into this message instance
00200 @param str: byte array of serialized message
00201 @type str: str
00202 """
00203 try:
00204 if self.settings is None:
00205 self.settings = collision_environment_msgs.msg.CloudSettings()
00206 end = 0
00207 start = end
00208 end += 4
00209 (length,) = _struct_I.unpack(str[start:end])
00210 start = end
00211 end += length
00212 self.settings.cloud_name = str[start:end]
00213 _x = self
00214 start = end
00215 end += 12
00216 (_x.settings.static_publish, _x.settings.dynamic_publish, _x.value,) = _struct_3i.unpack(str[start:end])
00217 return self
00218 except struct.error, e:
00219 raise roslib.message.DeserializationError(e)
00220
00221
00222 def serialize_numpy(self, buff, numpy):
00223 """
00224 serialize message with numpy array types into buffer
00225 @param buff: buffer
00226 @type buff: StringIO
00227 @param numpy: numpy python module
00228 @type numpy module
00229 """
00230 try:
00231 _x = self.settings.cloud_name
00232 length = len(_x)
00233 buff.write(struct.pack('<I%ss'%length, length, _x))
00234 _x = self
00235 buff.write(_struct_3i.pack(_x.settings.static_publish, _x.settings.dynamic_publish, _x.value))
00236 except struct.error, se: self._check_types(se)
00237 except TypeError, te: self._check_types(te)
00238
00239 def deserialize_numpy(self, str, numpy):
00240 """
00241 unpack serialized message in str into this message instance using numpy for array types
00242 @param str: byte array of serialized message
00243 @type str: str
00244 @param numpy: numpy python module
00245 @type numpy: module
00246 """
00247 try:
00248 if self.settings is None:
00249 self.settings = collision_environment_msgs.msg.CloudSettings()
00250 end = 0
00251 start = end
00252 end += 4
00253 (length,) = _struct_I.unpack(str[start:end])
00254 start = end
00255 end += length
00256 self.settings.cloud_name = str[start:end]
00257 _x = self
00258 start = end
00259 end += 12
00260 (_x.settings.static_publish, _x.settings.dynamic_publish, _x.value,) = _struct_3i.unpack(str[start:end])
00261 return self
00262 except struct.error, e:
00263 raise roslib.message.DeserializationError(e)
00264
00265 _struct_I = roslib.message.struct_I
00266 _struct_3i = struct.Struct("<3i")
00267 class GetCloudSettings(roslib.message.ServiceDefinition):
00268 _type = 'collision_environment_msgs/GetCloudSettings'
00269 _md5sum = 'd758eb69847678c3cf565abe841fee30'
00270 _request_class = GetCloudSettingsRequest
00271 _response_class = GetCloudSettingsResponse