$search
00001 """autogenerated by genmsg_py from VisualizeTFTrajectoryRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import roslib.rostime 00006 00007 class VisualizeTFTrajectoryRequest(roslib.message.Message): 00008 _md5sum = "16b36f15aeb3dc7a80d54d835f28b5a8" 00009 _type = "tf_trajectory_visualization/VisualizeTFTrajectoryRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """ 00012 time start_time 00013 time end_time 00014 string tf_frame 00015 bool publish 00016 00017 """ 00018 __slots__ = ['start_time','end_time','tf_frame','publish'] 00019 _slot_types = ['time','time','string','bool'] 00020 00021 def __init__(self, *args, **kwds): 00022 """ 00023 Constructor. Any message fields that are implicitly/explicitly 00024 set to None will be assigned a default value. The recommend 00025 use is keyword arguments as this is more robust to future message 00026 changes. You cannot mix in-order arguments and keyword arguments. 00027 00028 The available fields are: 00029 start_time,end_time,tf_frame,publish 00030 00031 @param args: complete set of field values, in .msg order 00032 @param kwds: use keyword arguments corresponding to message field names 00033 to set specific fields. 00034 """ 00035 if args or kwds: 00036 super(VisualizeTFTrajectoryRequest, self).__init__(*args, **kwds) 00037 #message fields cannot be None, assign default values for those that are 00038 if self.start_time is None: 00039 self.start_time = roslib.rostime.Time() 00040 if self.end_time is None: 00041 self.end_time = roslib.rostime.Time() 00042 if self.tf_frame is None: 00043 self.tf_frame = '' 00044 if self.publish is None: 00045 self.publish = False 00046 else: 00047 self.start_time = roslib.rostime.Time() 00048 self.end_time = roslib.rostime.Time() 00049 self.tf_frame = '' 00050 self.publish = False 00051 00052 def _get_types(self): 00053 """ 00054 internal API method 00055 """ 00056 return self._slot_types 00057 00058 def serialize(self, buff): 00059 """ 00060 serialize message into buffer 00061 @param buff: buffer 00062 @type buff: StringIO 00063 """ 00064 try: 00065 _x = self 00066 buff.write(_struct_4I.pack(_x.start_time.secs, _x.start_time.nsecs, _x.end_time.secs, _x.end_time.nsecs)) 00067 _x = self.tf_frame 00068 length = len(_x) 00069 buff.write(struct.pack('<I%ss'%length, length, _x)) 00070 buff.write(_struct_B.pack(self.publish)) 00071 except struct.error as se: self._check_types(se) 00072 except TypeError as te: self._check_types(te) 00073 00074 def deserialize(self, str): 00075 """ 00076 unpack serialized message in str into this message instance 00077 @param str: byte array of serialized message 00078 @type str: str 00079 """ 00080 try: 00081 if self.start_time is None: 00082 self.start_time = roslib.rostime.Time() 00083 if self.end_time is None: 00084 self.end_time = roslib.rostime.Time() 00085 end = 0 00086 _x = self 00087 start = end 00088 end += 16 00089 (_x.start_time.secs, _x.start_time.nsecs, _x.end_time.secs, _x.end_time.nsecs,) = _struct_4I.unpack(str[start:end]) 00090 start = end 00091 end += 4 00092 (length,) = _struct_I.unpack(str[start:end]) 00093 start = end 00094 end += length 00095 self.tf_frame = str[start:end] 00096 start = end 00097 end += 1 00098 (self.publish,) = _struct_B.unpack(str[start:end]) 00099 self.publish = bool(self.publish) 00100 self.start_time.canon() 00101 self.end_time.canon() 00102 return self 00103 except struct.error as e: 00104 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00105 00106 00107 def serialize_numpy(self, buff, numpy): 00108 """ 00109 serialize message with numpy array types into buffer 00110 @param buff: buffer 00111 @type buff: StringIO 00112 @param numpy: numpy python module 00113 @type numpy module 00114 """ 00115 try: 00116 _x = self 00117 buff.write(_struct_4I.pack(_x.start_time.secs, _x.start_time.nsecs, _x.end_time.secs, _x.end_time.nsecs)) 00118 _x = self.tf_frame 00119 length = len(_x) 00120 buff.write(struct.pack('<I%ss'%length, length, _x)) 00121 buff.write(_struct_B.pack(self.publish)) 00122 except struct.error as se: self._check_types(se) 00123 except TypeError as te: self._check_types(te) 00124 00125 def deserialize_numpy(self, str, numpy): 00126 """ 00127 unpack serialized message in str into this message instance using numpy for array types 00128 @param str: byte array of serialized message 00129 @type str: str 00130 @param numpy: numpy python module 00131 @type numpy: module 00132 """ 00133 try: 00134 if self.start_time is None: 00135 self.start_time = roslib.rostime.Time() 00136 if self.end_time is None: 00137 self.end_time = roslib.rostime.Time() 00138 end = 0 00139 _x = self 00140 start = end 00141 end += 16 00142 (_x.start_time.secs, _x.start_time.nsecs, _x.end_time.secs, _x.end_time.nsecs,) = _struct_4I.unpack(str[start:end]) 00143 start = end 00144 end += 4 00145 (length,) = _struct_I.unpack(str[start:end]) 00146 start = end 00147 end += length 00148 self.tf_frame = str[start:end] 00149 start = end 00150 end += 1 00151 (self.publish,) = _struct_B.unpack(str[start:end]) 00152 self.publish = bool(self.publish) 00153 self.start_time.canon() 00154 self.end_time.canon() 00155 return self 00156 except struct.error as e: 00157 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00158 00159 _struct_I = roslib.message.struct_I 00160 _struct_B = struct.Struct("<B") 00161 _struct_4I = struct.Struct("<4I") 00162 """autogenerated by genmsg_py from VisualizeTFTrajectoryResponse.msg. Do not edit.""" 00163 import roslib.message 00164 import struct 00165 00166 import geometry_msgs.msg 00167 00168 class VisualizeTFTrajectoryResponse(roslib.message.Message): 00169 _md5sum = "3fb3f9dacc279b964c4c8341122c34df" 00170 _type = "tf_trajectory_visualization/VisualizeTFTrajectoryResponse" 00171 _has_header = False #flag to mark the presence of a Header object 00172 _full_text = """geometry_msgs/Point[] points 00173 00174 00175 ================================================================================ 00176 MSG: geometry_msgs/Point 00177 # This contains the position of a point in free space 00178 float64 x 00179 float64 y 00180 float64 z 00181 00182 """ 00183 __slots__ = ['points'] 00184 _slot_types = ['geometry_msgs/Point[]'] 00185 00186 def __init__(self, *args, **kwds): 00187 """ 00188 Constructor. Any message fields that are implicitly/explicitly 00189 set to None will be assigned a default value. The recommend 00190 use is keyword arguments as this is more robust to future message 00191 changes. You cannot mix in-order arguments and keyword arguments. 00192 00193 The available fields are: 00194 points 00195 00196 @param args: complete set of field values, in .msg order 00197 @param kwds: use keyword arguments corresponding to message field names 00198 to set specific fields. 00199 """ 00200 if args or kwds: 00201 super(VisualizeTFTrajectoryResponse, self).__init__(*args, **kwds) 00202 #message fields cannot be None, assign default values for those that are 00203 if self.points is None: 00204 self.points = [] 00205 else: 00206 self.points = [] 00207 00208 def _get_types(self): 00209 """ 00210 internal API method 00211 """ 00212 return self._slot_types 00213 00214 def serialize(self, buff): 00215 """ 00216 serialize message into buffer 00217 @param buff: buffer 00218 @type buff: StringIO 00219 """ 00220 try: 00221 length = len(self.points) 00222 buff.write(_struct_I.pack(length)) 00223 for val1 in self.points: 00224 _x = val1 00225 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00226 except struct.error as se: self._check_types(se) 00227 except TypeError as te: self._check_types(te) 00228 00229 def deserialize(self, str): 00230 """ 00231 unpack serialized message in str into this message instance 00232 @param str: byte array of serialized message 00233 @type str: str 00234 """ 00235 try: 00236 end = 0 00237 start = end 00238 end += 4 00239 (length,) = _struct_I.unpack(str[start:end]) 00240 self.points = [] 00241 for i in range(0, length): 00242 val1 = geometry_msgs.msg.Point() 00243 _x = val1 00244 start = end 00245 end += 24 00246 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00247 self.points.append(val1) 00248 return self 00249 except struct.error as e: 00250 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00251 00252 00253 def serialize_numpy(self, buff, numpy): 00254 """ 00255 serialize message with numpy array types into buffer 00256 @param buff: buffer 00257 @type buff: StringIO 00258 @param numpy: numpy python module 00259 @type numpy module 00260 """ 00261 try: 00262 length = len(self.points) 00263 buff.write(_struct_I.pack(length)) 00264 for val1 in self.points: 00265 _x = val1 00266 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00267 except struct.error as se: self._check_types(se) 00268 except TypeError as te: self._check_types(te) 00269 00270 def deserialize_numpy(self, str, numpy): 00271 """ 00272 unpack serialized message in str into this message instance using numpy for array types 00273 @param str: byte array of serialized message 00274 @type str: str 00275 @param numpy: numpy python module 00276 @type numpy: module 00277 """ 00278 try: 00279 end = 0 00280 start = end 00281 end += 4 00282 (length,) = _struct_I.unpack(str[start:end]) 00283 self.points = [] 00284 for i in range(0, length): 00285 val1 = geometry_msgs.msg.Point() 00286 _x = val1 00287 start = end 00288 end += 24 00289 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00290 self.points.append(val1) 00291 return self 00292 except struct.error as e: 00293 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00294 00295 _struct_I = roslib.message.struct_I 00296 _struct_3d = struct.Struct("<3d") 00297 class VisualizeTFTrajectory(roslib.message.ServiceDefinition): 00298 _type = 'tf_trajectory_visualization/VisualizeTFTrajectory' 00299 _md5sum = 'b792b08a8485aef0c6937c00861e6de9' 00300 _request_class = VisualizeTFTrajectoryRequest 00301 _response_class = VisualizeTFTrajectoryResponse