Go to the documentation of this file.00001
00002 #ifndef RVE_MSGS_MESSAGE_LINES_H
00003 #define RVE_MSGS_MESSAGE_LINES_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 "rve_msgs/Vector3.h"
00018 #include "rve_msgs/Vector3.h"
00019 #include "std_msgs/ColorRGBA.h"
00020
00021 namespace rve_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct Lines_ {
00025 typedef Lines_<ContainerAllocator> Type;
00026
00027 Lines_()
00028 : type(0)
00029 , scale()
00030 , positions()
00031 , colors()
00032 {
00033 }
00034
00035 Lines_(const ContainerAllocator& _alloc)
00036 : type(0)
00037 , scale(_alloc)
00038 , positions(_alloc)
00039 , colors(_alloc)
00040 {
00041 }
00042
00043 typedef uint8_t _type_type;
00044 uint8_t type;
00045
00046 typedef ::rve_msgs::Vector3_<ContainerAllocator> _scale_type;
00047 ::rve_msgs::Vector3_<ContainerAllocator> scale;
00048
00049 typedef std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other > _positions_type;
00050 std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other > positions;
00051
00052 typedef std::vector< ::std_msgs::ColorRGBA_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::ColorRGBA_<ContainerAllocator> >::other > _colors_type;
00053 std::vector< ::std_msgs::ColorRGBA_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::ColorRGBA_<ContainerAllocator> >::other > colors;
00054
00055 enum { TYPE_LINE_LIST = 0 };
00056 enum { TYPE_BILLBOARD_LIST = 1 };
00057
00058 typedef boost::shared_ptr< ::rve_msgs::Lines_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::rve_msgs::Lines_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::rve_msgs::Lines_<std::allocator<void> > Lines;
00063
00064 typedef boost::shared_ptr< ::rve_msgs::Lines> LinesPtr;
00065 typedef boost::shared_ptr< ::rve_msgs::Lines const> LinesConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::rve_msgs::Lines_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::rve_msgs::Lines_<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< ::rve_msgs::Lines_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::Lines_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::rve_msgs::Lines_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "e76d6ca62279cf7e556740e6b37825a2";
00087 }
00088
00089 static const char* value(const ::rve_msgs::Lines_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0xe76d6ca62279cf7eULL;
00091 static const uint64_t static_value2 = 0x556740e6b37825a2ULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::rve_msgs::Lines_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "rve_msgs/Lines";
00099 }
00100
00101 static const char* value(const ::rve_msgs::Lines_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::rve_msgs::Lines_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "uint8 TYPE_LINE_LIST = 0\n\
00109 uint8 TYPE_BILLBOARD_LIST = 1\n\
00110 \n\
00111 uint8 type\n\
00112 Vector3 scale\n\
00113 \n\
00114 Vector3[] positions\n\
00115 std_msgs/ColorRGBA[] colors\n\
00116 ================================================================================\n\
00117 MSG: rve_msgs/Vector3\n\
00118 float32 x\n\
00119 float32 y\n\
00120 float32 z\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: std_msgs/ColorRGBA\n\
00124 float32 r\n\
00125 float32 g\n\
00126 float32 b\n\
00127 float32 a\n\
00128 \n\
00129 ";
00130 }
00131
00132 static const char* value(const ::rve_msgs::Lines_<ContainerAllocator> &) { return value(); }
00133 };
00134
00135 }
00136 }
00137
00138 namespace ros
00139 {
00140 namespace serialization
00141 {
00142
00143 template<class ContainerAllocator> struct Serializer< ::rve_msgs::Lines_<ContainerAllocator> >
00144 {
00145 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00146 {
00147 stream.next(m.type);
00148 stream.next(m.scale);
00149 stream.next(m.positions);
00150 stream.next(m.colors);
00151 }
00152
00153 ROS_DECLARE_ALLINONE_SERIALIZER;
00154 };
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace message_operations
00161 {
00162
00163 template<class ContainerAllocator>
00164 struct Printer< ::rve_msgs::Lines_<ContainerAllocator> >
00165 {
00166 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rve_msgs::Lines_<ContainerAllocator> & v)
00167 {
00168 s << indent << "type: ";
00169 Printer<uint8_t>::stream(s, indent + " ", v.type);
00170 s << indent << "scale: ";
00171 s << std::endl;
00172 Printer< ::rve_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.scale);
00173 s << indent << "positions[]" << std::endl;
00174 for (size_t i = 0; i < v.positions.size(); ++i)
00175 {
00176 s << indent << " positions[" << i << "]: ";
00177 s << std::endl;
00178 s << indent;
00179 Printer< ::rve_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.positions[i]);
00180 }
00181 s << indent << "colors[]" << std::endl;
00182 for (size_t i = 0; i < v.colors.size(); ++i)
00183 {
00184 s << indent << " colors[" << i << "]: ";
00185 s << std::endl;
00186 s << indent;
00187 Printer< ::std_msgs::ColorRGBA_<ContainerAllocator> >::stream(s, indent + " ", v.colors[i]);
00188 }
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // RVE_MSGS_MESSAGE_LINES_H
00197