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