Go to the documentation of this file.00001
00002 #ifndef YOUBOT_OVERHEAD_LOCALIZATION_MESSAGE_PATH_H
00003 #define YOUBOT_OVERHEAD_LOCALIZATION_MESSAGE_PATH_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 youbot_overhead_localization
00019 {
00020 template <class ContainerAllocator>
00021 struct Path_ {
00022 typedef Path_<ContainerAllocator> Type;
00023
00024 Path_()
00025 : pathx()
00026 , pathy()
00027 , distances()
00028 , remainingDistance(0.0)
00029 , pathLength(0)
00030 {
00031 }
00032
00033 Path_(const ContainerAllocator& _alloc)
00034 : pathx(_alloc)
00035 , pathy(_alloc)
00036 , distances(_alloc)
00037 , remainingDistance(0.0)
00038 , pathLength(0)
00039 {
00040 }
00041
00042 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _pathx_type;
00043 std::vector<float, typename ContainerAllocator::template rebind<float>::other > pathx;
00044
00045 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _pathy_type;
00046 std::vector<float, typename ContainerAllocator::template rebind<float>::other > pathy;
00047
00048 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _distances_type;
00049 std::vector<float, typename ContainerAllocator::template rebind<float>::other > distances;
00050
00051 typedef float _remainingDistance_type;
00052 float remainingDistance;
00053
00054 typedef int16_t _pathLength_type;
00055 int16_t pathLength;
00056
00057
00058 typedef boost::shared_ptr< ::youbot_overhead_localization::Path_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::youbot_overhead_localization::Path_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::youbot_overhead_localization::Path_<std::allocator<void> > Path;
00063
00064 typedef boost::shared_ptr< ::youbot_overhead_localization::Path> PathPtr;
00065 typedef boost::shared_ptr< ::youbot_overhead_localization::Path const> PathConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::youbot_overhead_localization::Path_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::youbot_overhead_localization::Path_<ContainerAllocator> >::stream(s, "", v);
00072 return s;}
00073
00074 }
00075
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::youbot_overhead_localization::Path_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::youbot_overhead_localization::Path_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::youbot_overhead_localization::Path_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "c80fb7c4576dd8be95961655daa5eeb8";
00087 }
00088
00089 static const char* value(const ::youbot_overhead_localization::Path_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0xc80fb7c4576dd8beULL;
00091 static const uint64_t static_value2 = 0x95961655daa5eeb8ULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::youbot_overhead_localization::Path_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "youbot_overhead_localization/Path";
00099 }
00100
00101 static const char* value(const ::youbot_overhead_localization::Path_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::youbot_overhead_localization::Path_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "float32[] pathx\n\
00109 float32[] pathy\n\
00110 float32[] distances\n\
00111 float32 remainingDistance\n\
00112 int16 pathLength\n\
00113 \n\
00114 ";
00115 }
00116
00117 static const char* value(const ::youbot_overhead_localization::Path_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 }
00121 }
00122
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127
00128 template<class ContainerAllocator> struct Serializer< ::youbot_overhead_localization::Path_<ContainerAllocator> >
00129 {
00130 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131 {
00132 stream.next(m.pathx);
00133 stream.next(m.pathy);
00134 stream.next(m.distances);
00135 stream.next(m.remainingDistance);
00136 stream.next(m.pathLength);
00137 }
00138
00139 ROS_DECLARE_ALLINONE_SERIALIZER;
00140 };
00141 }
00142 }
00143
00144 namespace ros
00145 {
00146 namespace message_operations
00147 {
00148
00149 template<class ContainerAllocator>
00150 struct Printer< ::youbot_overhead_localization::Path_<ContainerAllocator> >
00151 {
00152 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::youbot_overhead_localization::Path_<ContainerAllocator> & v)
00153 {
00154 s << indent << "pathx[]" << std::endl;
00155 for (size_t i = 0; i < v.pathx.size(); ++i)
00156 {
00157 s << indent << " pathx[" << i << "]: ";
00158 Printer<float>::stream(s, indent + " ", v.pathx[i]);
00159 }
00160 s << indent << "pathy[]" << std::endl;
00161 for (size_t i = 0; i < v.pathy.size(); ++i)
00162 {
00163 s << indent << " pathy[" << i << "]: ";
00164 Printer<float>::stream(s, indent + " ", v.pathy[i]);
00165 }
00166 s << indent << "distances[]" << std::endl;
00167 for (size_t i = 0; i < v.distances.size(); ++i)
00168 {
00169 s << indent << " distances[" << i << "]: ";
00170 Printer<float>::stream(s, indent + " ", v.distances[i]);
00171 }
00172 s << indent << "remainingDistance: ";
00173 Printer<float>::stream(s, indent + " ", v.remainingDistance);
00174 s << indent << "pathLength: ";
00175 Printer<int16_t>::stream(s, indent + " ", v.pathLength);
00176 }
00177 };
00178
00179
00180 }
00181 }
00182
00183 #endif // YOUBOT_OVERHEAD_LOCALIZATION_MESSAGE_PATH_H
00184