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