00001
00002 #ifndef SBPL_LATTICE_PLANNER_MESSAGE_SBPLLATTICEPLANNERSTATS_H
00003 #define SBPL_LATTICE_PLANNER_MESSAGE_SBPLLATTICEPLANNERSTATS_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "geometry_msgs/PoseStamped.h"
00018 #include "geometry_msgs/PoseStamped.h"
00019
00020 namespace sbpl_lattice_planner
00021 {
00022 template <class ContainerAllocator>
00023 struct SBPLLatticePlannerStats_ {
00024 typedef SBPLLatticePlannerStats_<ContainerAllocator> Type;
00025
00026 SBPLLatticePlannerStats_()
00027 : initial_epsilon(0.0)
00028 , final_epsilon(0.0)
00029 , plan_to_first_solution(false)
00030 , allocated_time(0.0)
00031 , actual_time(0.0)
00032 , time_to_first_solution(0.0)
00033 , solution_cost(0.0)
00034 , path_size(0.0)
00035 , final_number_of_expands(0)
00036 , number_of_expands_initial_solution(0)
00037 , start()
00038 , goal()
00039 {
00040 }
00041
00042 SBPLLatticePlannerStats_(const ContainerAllocator& _alloc)
00043 : initial_epsilon(0.0)
00044 , final_epsilon(0.0)
00045 , plan_to_first_solution(false)
00046 , allocated_time(0.0)
00047 , actual_time(0.0)
00048 , time_to_first_solution(0.0)
00049 , solution_cost(0.0)
00050 , path_size(0.0)
00051 , final_number_of_expands(0)
00052 , number_of_expands_initial_solution(0)
00053 , start(_alloc)
00054 , goal(_alloc)
00055 {
00056 }
00057
00058 typedef double _initial_epsilon_type;
00059 double initial_epsilon;
00060
00061 typedef double _final_epsilon_type;
00062 double final_epsilon;
00063
00064 typedef uint8_t _plan_to_first_solution_type;
00065 uint8_t plan_to_first_solution;
00066
00067 typedef double _allocated_time_type;
00068 double allocated_time;
00069
00070 typedef double _actual_time_type;
00071 double actual_time;
00072
00073 typedef double _time_to_first_solution_type;
00074 double time_to_first_solution;
00075
00076 typedef double _solution_cost_type;
00077 double solution_cost;
00078
00079 typedef double _path_size_type;
00080 double path_size;
00081
00082 typedef int64_t _final_number_of_expands_type;
00083 int64_t final_number_of_expands;
00084
00085 typedef int64_t _number_of_expands_initial_solution_type;
00086 int64_t number_of_expands_initial_solution;
00087
00088 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _start_type;
00089 ::geometry_msgs::PoseStamped_<ContainerAllocator> start;
00090
00091 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _goal_type;
00092 ::geometry_msgs::PoseStamped_<ContainerAllocator> goal;
00093
00094
00095 typedef boost::shared_ptr< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> > Ptr;
00096 typedef boost::shared_ptr< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> const> ConstPtr;
00097 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00098 };
00099 typedef ::sbpl_lattice_planner::SBPLLatticePlannerStats_<std::allocator<void> > SBPLLatticePlannerStats;
00100
00101 typedef boost::shared_ptr< ::sbpl_lattice_planner::SBPLLatticePlannerStats> SBPLLatticePlannerStatsPtr;
00102 typedef boost::shared_ptr< ::sbpl_lattice_planner::SBPLLatticePlannerStats const> SBPLLatticePlannerStatsConstPtr;
00103
00104
00105 template<typename ContainerAllocator>
00106 std::ostream& operator<<(std::ostream& s, const ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> & v)
00107 {
00108 ros::message_operations::Printer< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> >::stream(s, "", v);
00109 return s;}
00110
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator> struct IsMessage< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> > : public TrueType {};
00118 template<class ContainerAllocator> struct IsMessage< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> const> : public TrueType {};
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "b1c85b1cec5e7b196cc477ac1440bbf0";
00124 }
00125
00126 static const char* value(const ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0xb1c85b1cec5e7b19ULL;
00128 static const uint64_t static_value2 = 0x6cc477ac1440bbf0ULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "sbpl_lattice_planner/SBPLLatticePlannerStats";
00136 }
00137
00138 static const char* value(const ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "#planner stats\n\
00146 float64 initial_epsilon\n\
00147 float64 final_epsilon\n\
00148 bool plan_to_first_solution\n\
00149 float64 allocated_time\n\
00150 float64 actual_time\n\
00151 float64 time_to_first_solution\n\
00152 float64 solution_cost\n\
00153 float64 path_size\n\
00154 int64 final_number_of_expands\n\
00155 int64 number_of_expands_initial_solution\n\
00156 \n\
00157 #problem stats\n\
00158 geometry_msgs/PoseStamped start\n\
00159 geometry_msgs/PoseStamped goal\n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: geometry_msgs/PoseStamped\n\
00163 # A Pose with reference coordinate frame and timestamp\n\
00164 Header header\n\
00165 Pose pose\n\
00166 \n\
00167 ================================================================================\n\
00168 MSG: std_msgs/Header\n\
00169 # Standard metadata for higher-level stamped data types.\n\
00170 # This is generally used to communicate timestamped data \n\
00171 # in a particular coordinate frame.\n\
00172 # \n\
00173 # sequence ID: consecutively increasing ID \n\
00174 uint32 seq\n\
00175 #Two-integer timestamp that is expressed as:\n\
00176 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00177 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00178 # time-handling sugar is provided by the client library\n\
00179 time stamp\n\
00180 #Frame this data is associated with\n\
00181 # 0: no frame\n\
00182 # 1: global frame\n\
00183 string frame_id\n\
00184 \n\
00185 ================================================================================\n\
00186 MSG: geometry_msgs/Pose\n\
00187 # A representation of pose in free space, composed of postion and orientation. \n\
00188 Point position\n\
00189 Quaternion orientation\n\
00190 \n\
00191 ================================================================================\n\
00192 MSG: geometry_msgs/Point\n\
00193 # This contains the position of a point in free space\n\
00194 float64 x\n\
00195 float64 y\n\
00196 float64 z\n\
00197 \n\
00198 ================================================================================\n\
00199 MSG: geometry_msgs/Quaternion\n\
00200 # This represents an orientation in free space in quaternion form.\n\
00201 \n\
00202 float64 x\n\
00203 float64 y\n\
00204 float64 z\n\
00205 float64 w\n\
00206 \n\
00207 ";
00208 }
00209
00210 static const char* value(const ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> &) { return value(); }
00211 };
00212
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace serialization
00219 {
00220
00221 template<class ContainerAllocator> struct Serializer< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> >
00222 {
00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00224 {
00225 stream.next(m.initial_epsilon);
00226 stream.next(m.final_epsilon);
00227 stream.next(m.plan_to_first_solution);
00228 stream.next(m.allocated_time);
00229 stream.next(m.actual_time);
00230 stream.next(m.time_to_first_solution);
00231 stream.next(m.solution_cost);
00232 stream.next(m.path_size);
00233 stream.next(m.final_number_of_expands);
00234 stream.next(m.number_of_expands_initial_solution);
00235 stream.next(m.start);
00236 stream.next(m.goal);
00237 }
00238
00239 ROS_DECLARE_ALLINONE_SERIALIZER;
00240 };
00241 }
00242 }
00243
00244 namespace ros
00245 {
00246 namespace message_operations
00247 {
00248
00249 template<class ContainerAllocator>
00250 struct Printer< ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> >
00251 {
00252 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sbpl_lattice_planner::SBPLLatticePlannerStats_<ContainerAllocator> & v)
00253 {
00254 s << indent << "initial_epsilon: ";
00255 Printer<double>::stream(s, indent + " ", v.initial_epsilon);
00256 s << indent << "final_epsilon: ";
00257 Printer<double>::stream(s, indent + " ", v.final_epsilon);
00258 s << indent << "plan_to_first_solution: ";
00259 Printer<uint8_t>::stream(s, indent + " ", v.plan_to_first_solution);
00260 s << indent << "allocated_time: ";
00261 Printer<double>::stream(s, indent + " ", v.allocated_time);
00262 s << indent << "actual_time: ";
00263 Printer<double>::stream(s, indent + " ", v.actual_time);
00264 s << indent << "time_to_first_solution: ";
00265 Printer<double>::stream(s, indent + " ", v.time_to_first_solution);
00266 s << indent << "solution_cost: ";
00267 Printer<double>::stream(s, indent + " ", v.solution_cost);
00268 s << indent << "path_size: ";
00269 Printer<double>::stream(s, indent + " ", v.path_size);
00270 s << indent << "final_number_of_expands: ";
00271 Printer<int64_t>::stream(s, indent + " ", v.final_number_of_expands);
00272 s << indent << "number_of_expands_initial_solution: ";
00273 Printer<int64_t>::stream(s, indent + " ", v.number_of_expands_initial_solution);
00274 s << indent << "start: ";
00275 s << std::endl;
00276 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.start);
00277 s << indent << "goal: ";
00278 s << std::endl;
00279 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00280 }
00281 };
00282
00283
00284 }
00285 }
00286
00287 #endif // SBPL_LATTICE_PLANNER_MESSAGE_SBPLLATTICEPLANNERSTATS_H
00288