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 <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace ompl_ros_interface
00015 {
00016 template <class ContainerAllocator>
00017 struct OmplPlannerDiagnostics_ : public ros::Message
00018 {
00019 typedef OmplPlannerDiagnostics_<ContainerAllocator> Type;
00020
00021 OmplPlannerDiagnostics_()
00022 : summary()
00023 , group()
00024 , planner()
00025 , result()
00026 , planning_time(0.0)
00027 , trajectory_size(0)
00028 , trajectory_duration(0.0)
00029 , state_allocator_size(0)
00030 {
00031 }
00032
00033 OmplPlannerDiagnostics_(const ContainerAllocator& _alloc)
00034 : summary(_alloc)
00035 , group(_alloc)
00036 , planner(_alloc)
00037 , result(_alloc)
00038 , planning_time(0.0)
00039 , trajectory_size(0)
00040 , trajectory_duration(0.0)
00041 , state_allocator_size(0)
00042 {
00043 }
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _summary_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > summary;
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _group_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > group;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _planner_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > planner;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _result_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > result;
00056
00057 typedef double _planning_time_type;
00058 double planning_time;
00059
00060 typedef int32_t _trajectory_size_type;
00061 int32_t trajectory_size;
00062
00063 typedef double _trajectory_duration_type;
00064 double trajectory_duration;
00065
00066 typedef int32_t _state_allocator_size_type;
00067 int32_t state_allocator_size;
00068
00069
00070 private:
00071 static const char* __s_getDataType_() { return "ompl_ros_interface/OmplPlannerDiagnostics"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00074
00075 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00076
00077 private:
00078 static const char* __s_getMD5Sum_() { return "5b3711264bf69e94abcd2caafc0c541d"; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00081
00082 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00083
00084 private:
00085 static const char* __s_getMessageDefinition_() { return "string summary\n\
00086 string group\n\
00087 string planner\n\
00088 string result\n\
00089 float64 planning_time\n\
00090 int32 trajectory_size\n\
00091 float64 trajectory_duration\n\
00092 int32 state_allocator_size\n\
00093 \n\
00094 "; }
00095 public:
00096 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00097
00098 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00099
00100 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00101 {
00102 ros::serialization::OStream stream(write_ptr, 1000000000);
00103 ros::serialization::serialize(stream, summary);
00104 ros::serialization::serialize(stream, group);
00105 ros::serialization::serialize(stream, planner);
00106 ros::serialization::serialize(stream, result);
00107 ros::serialization::serialize(stream, planning_time);
00108 ros::serialization::serialize(stream, trajectory_size);
00109 ros::serialization::serialize(stream, trajectory_duration);
00110 ros::serialization::serialize(stream, state_allocator_size);
00111 return stream.getData();
00112 }
00113
00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00115 {
00116 ros::serialization::IStream stream(read_ptr, 1000000000);
00117 ros::serialization::deserialize(stream, summary);
00118 ros::serialization::deserialize(stream, group);
00119 ros::serialization::deserialize(stream, planner);
00120 ros::serialization::deserialize(stream, result);
00121 ros::serialization::deserialize(stream, planning_time);
00122 ros::serialization::deserialize(stream, trajectory_size);
00123 ros::serialization::deserialize(stream, trajectory_duration);
00124 ros::serialization::deserialize(stream, state_allocator_size);
00125 return stream.getData();
00126 }
00127
00128 ROS_DEPRECATED virtual uint32_t serializationLength() const
00129 {
00130 uint32_t size = 0;
00131 size += ros::serialization::serializationLength(summary);
00132 size += ros::serialization::serializationLength(group);
00133 size += ros::serialization::serializationLength(planner);
00134 size += ros::serialization::serializationLength(result);
00135 size += ros::serialization::serializationLength(planning_time);
00136 size += ros::serialization::serializationLength(trajectory_size);
00137 size += ros::serialization::serializationLength(trajectory_duration);
00138 size += ros::serialization::serializationLength(state_allocator_size);
00139 return size;
00140 }
00141
00142 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > Ptr;
00143 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> const> ConstPtr;
00144 };
00145 typedef ::ompl_ros_interface::OmplPlannerDiagnostics_<std::allocator<void> > OmplPlannerDiagnostics;
00146
00147 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics> OmplPlannerDiagnosticsPtr;
00148 typedef boost::shared_ptr< ::ompl_ros_interface::OmplPlannerDiagnostics const> OmplPlannerDiagnosticsConstPtr;
00149
00150
00151 template<typename ContainerAllocator>
00152 std::ostream& operator<<(std::ostream& s, const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> & v)
00153 {
00154 ros::message_operations::Printer< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> >::stream(s, "", v);
00155 return s;}
00156
00157 }
00158
00159 namespace ros
00160 {
00161 namespace message_traits
00162 {
00163 template<class ContainerAllocator>
00164 struct MD5Sum< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "5b3711264bf69e94abcd2caafc0c541d";
00168 }
00169
00170 static const char* value(const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> &) { return value(); }
00171 static const uint64_t static_value1 = 0x5b3711264bf69e94ULL;
00172 static const uint64_t static_value2 = 0xabcd2caafc0c541dULL;
00173 };
00174
00175 template<class ContainerAllocator>
00176 struct DataType< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > {
00177 static const char* value()
00178 {
00179 return "ompl_ros_interface/OmplPlannerDiagnostics";
00180 }
00181
00182 static const char* value(const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> &) { return value(); }
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct Definition< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "string summary\n\
00190 string group\n\
00191 string planner\n\
00192 string result\n\
00193 float64 planning_time\n\
00194 int32 trajectory_size\n\
00195 float64 trajectory_duration\n\
00196 int32 state_allocator_size\n\
00197 \n\
00198 ";
00199 }
00200
00201 static const char* value(const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> &) { return value(); }
00202 };
00203
00204 }
00205 }
00206
00207 namespace ros
00208 {
00209 namespace serialization
00210 {
00211
00212 template<class ContainerAllocator> struct Serializer< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> >
00213 {
00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00215 {
00216 stream.next(m.summary);
00217 stream.next(m.group);
00218 stream.next(m.planner);
00219 stream.next(m.result);
00220 stream.next(m.planning_time);
00221 stream.next(m.trajectory_size);
00222 stream.next(m.trajectory_duration);
00223 stream.next(m.state_allocator_size);
00224 }
00225
00226 ROS_DECLARE_ALLINONE_SERIALIZER;
00227 };
00228 }
00229 }
00230
00231 namespace ros
00232 {
00233 namespace message_operations
00234 {
00235
00236 template<class ContainerAllocator>
00237 struct Printer< ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> >
00238 {
00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ompl_ros_interface::OmplPlannerDiagnostics_<ContainerAllocator> & v)
00240 {
00241 s << indent << "summary: ";
00242 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.summary);
00243 s << indent << "group: ";
00244 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.group);
00245 s << indent << "planner: ";
00246 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.planner);
00247 s << indent << "result: ";
00248 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result);
00249 s << indent << "planning_time: ";
00250 Printer<double>::stream(s, indent + " ", v.planning_time);
00251 s << indent << "trajectory_size: ";
00252 Printer<int32_t>::stream(s, indent + " ", v.trajectory_size);
00253 s << indent << "trajectory_duration: ";
00254 Printer<double>::stream(s, indent + " ", v.trajectory_duration);
00255 s << indent << "state_allocator_size: ";
00256 Printer<int32_t>::stream(s, indent + " ", v.state_allocator_size);
00257 }
00258 };
00259
00260
00261 }
00262 }
00263
00264 #endif // OMPL_ROS_INTERFACE_MESSAGE_OMPLPLANNERDIAGNOSTICS_H
00265