00001
00002 #ifndef OMPL_ROS_INTERFACE_MESSAGE_OMPLPLANNERDIAGNOSTICS_H
00003 #define OMPL_ROS_INTERFACE_MESSAGE_OMPLPLANNERDIAGNOSTICS_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
00018 namespace ompl_ros_interface
00019 {
00020 template <class ContainerAllocator>
00021 struct OmplPlannerDiagnostics_ {
00022 typedef OmplPlannerDiagnostics_<ContainerAllocator> Type;
00023
00024 OmplPlannerDiagnostics_()
00025 : summary()
00026 , group()
00027 , planner()
00028 , result()
00029 , planning_time(0.0)
00030 , trajectory_size(0)
00031 , trajectory_duration(0.0)
00032 , state_allocator_size(0)
00033 {
00034 }
00035
00036 OmplPlannerDiagnostics_(const ContainerAllocator& _alloc)
00037 : summary(_alloc)
00038 , group(_alloc)
00039 , planner(_alloc)
00040 , result(_alloc)
00041 , planning_time(0.0)
00042 , trajectory_size(0)
00043 , trajectory_duration(0.0)
00044 , state_allocator_size(0)
00045 {
00046 }
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _summary_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > summary;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _group_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > group;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _planner_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > planner;
00056
00057 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _result_type;
00058 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > result;
00059
00060 typedef double _planning_time_type;
00061 double planning_time;
00062
00063 typedef int32_t _trajectory_size_type;
00064 int32_t trajectory_size;
00065
00066 typedef double _trajectory_duration_type;
00067 double trajectory_duration;
00068
00069 typedef int32_t _state_allocator_size_type;
00070 int32_t state_allocator_size;
00071
00072
00073 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > Ptr;
00074 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> const> ConstPtr;
00075 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 };
00077 typedef ::ompl_ros_interface::OmplPlannerDiagnostics_<std::allocator<void> > OmplPlannerDiagnostics;
00078
00079 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics> OmplPlannerDiagnosticsPtr;
00080 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics const> OmplPlannerDiagnosticsConstPtr;
00081
00082
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> & v)
00085 {
00086 ros::message_operations::Printer< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> >::stream(s, "", v);
00087 return s;}
00088
00089 }
00090
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "5b3711264bf69e94abcd2caafc0c541d";
00102 }
00103
00104 static const char* value(const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> &) { return value(); }
00105 static const uint64_t static_value1 = 0x5b3711264bf69e94ULL;
00106 static const uint64_t static_value2 = 0xabcd2caafc0c541dULL;
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct DataType< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "ompl_ros_interface/OmplPlannerDiagnostics";
00114 }
00115
00116 static const char* value(const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct Definition< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "string summary\n\
00124 string group\n\
00125 string planner\n\
00126 string result\n\
00127 float64 planning_time\n\
00128 int32 trajectory_size\n\
00129 float64 trajectory_duration\n\
00130 int32 state_allocator_size\n\
00131 \n\
00132 ";
00133 }
00134
00135 static const char* value(const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> &) { return value(); }
00136 };
00137
00138 }
00139 }
00140
00141 namespace ros
00142 {
00143 namespace serialization
00144 {
00145
00146 template<class ContainerAllocator> struct Serializer< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> >
00147 {
00148 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00149 {
00150 stream.next(m.summary);
00151 stream.next(m.group);
00152 stream.next(m.planner);
00153 stream.next(m.result);
00154 stream.next(m.planning_time);
00155 stream.next(m.trajectory_size);
00156 stream.next(m.trajectory_duration);
00157 stream.next(m.state_allocator_size);
00158 }
00159
00160 ROS_DECLARE_ALLINONE_SERIALIZER;
00161 };
00162 }
00163 }
00164
00165 namespace ros
00166 {
00167 namespace message_operations
00168 {
00169
00170 template<class ContainerAllocator>
00171 struct Printer< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> >
00172 {
00173 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> & v)
00174 {
00175 s << indent << "summary: ";
00176 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.summary);
00177 s << indent << "group: ";
00178 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.group);
00179 s << indent << "planner: ";
00180 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.planner);
00181 s << indent << "result: ";
00182 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result);
00183 s << indent << "planning_time: ";
00184 Printer<double>::stream(s, indent + " ", v.planning_time);
00185 s << indent << "trajectory_size: ";
00186 Printer<int32_t>::stream(s, indent + " ", v.trajectory_size);
00187 s << indent << "trajectory_duration: ";
00188 Printer<double>::stream(s, indent + " ", v.trajectory_duration);
00189 s << indent << "state_allocator_size: ";
00190 Printer<int32_t>::stream(s, indent + " ", v.state_allocator_size);
00191 }
00192 };
00193
00194
00195 }
00196 }
00197
00198 #endif // OMPL_ROS_INTERFACE_MESSAGE_OMPLPLANNERDIAGNOSTICS_H
00199