00001 """autogenerated by genmsg_py from AddMarkerRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class AddMarkerRequest(roslib.message.Message):
00007 _md5sum = "d8f94bae31b356b24d0427f80426d0c3"
00008 _type = "wviz_scene_manager/AddMarkerRequest"
00009 _has_header = False
00010 _full_text = """string topic
00011
00012 """
00013 __slots__ = ['topic']
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 topic
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(AddMarkerRequest, self).__init__(*args, **kwds)
00032
00033 if self.topic is None:
00034 self.topic = ''
00035 else:
00036 self.topic = ''
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.topic
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.topic = 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.topic
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.topic = 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 AddMarkerResponse.msg. Do not edit."""
00113 import roslib.message
00114 import struct
00115
00116
00117 class AddMarkerResponse(roslib.message.Message):
00118 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00119 _type = "wviz_scene_manager/AddMarkerResponse"
00120 _has_header = False
00121 _full_text = """
00122 """
00123 __slots__ = []
00124 _slot_types = []
00125
00126 def __init__(self, *args, **kwds):
00127 """
00128 Constructor. Any message fields that are implicitly/explicitly
00129 set to None will be assigned a default value. The recommend
00130 use is keyword arguments as this is more robust to future message
00131 changes. You cannot mix in-order arguments and keyword arguments.
00132
00133 The available fields are:
00134
00135
00136 @param args: complete set of field values, in .msg order
00137 @param kwds: use keyword arguments corresponding to message field names
00138 to set specific fields.
00139 """
00140 if args or kwds:
00141 super(AddMarkerResponse, self).__init__(*args, **kwds)
00142
00143 def _get_types(self):
00144 """
00145 internal API method
00146 """
00147 return self._slot_types
00148
00149 def serialize(self, buff):
00150 """
00151 serialize message into buffer
00152 @param buff: buffer
00153 @type buff: StringIO
00154 """
00155 try:
00156 pass
00157 except struct.error, se: self._check_types(se)
00158 except TypeError, te: self._check_types(te)
00159
00160 def deserialize(self, str):
00161 """
00162 unpack serialized message in str into this message instance
00163 @param str: byte array of serialized message
00164 @type str: str
00165 """
00166 try:
00167 end = 0
00168 return self
00169 except struct.error, e:
00170 raise roslib.message.DeserializationError(e)
00171
00172
00173 def serialize_numpy(self, buff, numpy):
00174 """
00175 serialize message with numpy array types into buffer
00176 @param buff: buffer
00177 @type buff: StringIO
00178 @param numpy: numpy python module
00179 @type numpy module
00180 """
00181 try:
00182 pass
00183 except struct.error, se: self._check_types(se)
00184 except TypeError, te: self._check_types(te)
00185
00186 def deserialize_numpy(self, str, numpy):
00187 """
00188 unpack serialized message in str into this message instance using numpy for array types
00189 @param str: byte array of serialized message
00190 @type str: str
00191 @param numpy: numpy python module
00192 @type numpy: module
00193 """
00194 try:
00195 end = 0
00196 return self
00197 except struct.error, e:
00198 raise roslib.message.DeserializationError(e)
00199
00200 _struct_I = roslib.message.struct_I
00201 class AddMarker(roslib.message.ServiceDefinition):
00202 _type = 'wviz_scene_manager/AddMarker'
00203 _md5sum = 'd8f94bae31b356b24d0427f80426d0c3'
00204 _request_class = AddMarkerRequest
00205 _response_class = AddMarkerResponse