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