Go to the documentation of this file.00001
00002 #ifndef TEST_ROSLISP_MESSAGE_COMPLEXMESSAGE_H
00003 #define TEST_ROSLISP_MESSAGE_COMPLEXMESSAGE_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 "test_roslisp/Foo.h"
00018 #include "test_roslisp/Foo.h"
00019 #include "std_msgs/String.h"
00020
00021 namespace test_roslisp
00022 {
00023 template <class ContainerAllocator>
00024 struct ComplexMessage_ {
00025 typedef ComplexMessage_<ContainerAllocator> Type;
00026
00027 ComplexMessage_()
00028 : x()
00029 , y()
00030 , z()
00031 , w()
00032 , qux(false)
00033 , ind(0)
00034 {
00035 x.assign(0.0);
00036 }
00037
00038 ComplexMessage_(const ContainerAllocator& _alloc)
00039 : x()
00040 , y(_alloc)
00041 , z(_alloc)
00042 , w(_alloc)
00043 , qux(false)
00044 , ind(0)
00045 {
00046 x.assign(0.0);
00047 }
00048
00049 typedef boost::array<float, 4> _x_type;
00050 boost::array<float, 4> x;
00051
00052 typedef std::vector< ::test_roslisp::Foo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslisp::Foo_<ContainerAllocator> >::other > _y_type;
00053 std::vector< ::test_roslisp::Foo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslisp::Foo_<ContainerAllocator> >::other > y;
00054
00055 typedef std::vector< ::test_roslisp::Foo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslisp::Foo_<ContainerAllocator> >::other > _z_type;
00056 std::vector< ::test_roslisp::Foo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslisp::Foo_<ContainerAllocator> >::other > z;
00057
00058 typedef std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other > _w_type;
00059 std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other > w;
00060
00061 typedef uint8_t _qux_type;
00062 uint8_t qux;
00063
00064 typedef uint8_t _ind_type;
00065 uint8_t ind;
00066
00067
00068 typedef boost::shared_ptr< ::test_roslisp::ComplexMessage_<ContainerAllocator> > Ptr;
00069 typedef boost::shared_ptr< ::test_roslisp::ComplexMessage_<ContainerAllocator> const> ConstPtr;
00070 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00071 };
00072 typedef ::test_roslisp::ComplexMessage_<std::allocator<void> > ComplexMessage;
00073
00074 typedef boost::shared_ptr< ::test_roslisp::ComplexMessage> ComplexMessagePtr;
00075 typedef boost::shared_ptr< ::test_roslisp::ComplexMessage const> ComplexMessageConstPtr;
00076
00077
00078 template<typename ContainerAllocator>
00079 std::ostream& operator<<(std::ostream& s, const ::test_roslisp::ComplexMessage_<ContainerAllocator> & v)
00080 {
00081 ros::message_operations::Printer< ::test_roslisp::ComplexMessage_<ContainerAllocator> >::stream(s, "", v);
00082 return s;}
00083
00084 }
00085
00086 namespace ros
00087 {
00088 namespace message_traits
00089 {
00090 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::ComplexMessage_<ContainerAllocator> > : public TrueType {};
00091 template<class ContainerAllocator> struct IsMessage< ::test_roslisp::ComplexMessage_<ContainerAllocator> const> : public TrueType {};
00092 template<class ContainerAllocator>
00093 struct MD5Sum< ::test_roslisp::ComplexMessage_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "8bc73630573f57076b9939fd6536169a";
00097 }
00098
00099 static const char* value(const ::test_roslisp::ComplexMessage_<ContainerAllocator> &) { return value(); }
00100 static const uint64_t static_value1 = 0x8bc73630573f5707ULL;
00101 static const uint64_t static_value2 = 0x6b9939fd6536169aULL;
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct DataType< ::test_roslisp::ComplexMessage_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "test_roslisp/ComplexMessage";
00109 }
00110
00111 static const char* value(const ::test_roslisp::ComplexMessage_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct Definition< ::test_roslisp::ComplexMessage_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "float32[4] x\n\
00119 Foo[] y\n\
00120 Foo[] z\n\
00121 std_msgs/String[] w\n\
00122 bool qux\n\
00123 uint8 ind\n\
00124 ================================================================================\n\
00125 MSG: test_roslisp/Foo\n\
00126 Bar y\n\
00127 Bar[] z\n\
00128 ================================================================================\n\
00129 MSG: test_roslisp/Bar\n\
00130 int32 x=10\n\
00131 int32 y\n\
00132 ================================================================================\n\
00133 MSG: std_msgs/String\n\
00134 string data\n\
00135 \n\
00136 ";
00137 }
00138
00139 static const char* value(const ::test_roslisp::ComplexMessage_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 }
00143 }
00144
00145 namespace ros
00146 {
00147 namespace serialization
00148 {
00149
00150 template<class ContainerAllocator> struct Serializer< ::test_roslisp::ComplexMessage_<ContainerAllocator> >
00151 {
00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00153 {
00154 stream.next(m.x);
00155 stream.next(m.y);
00156 stream.next(m.z);
00157 stream.next(m.w);
00158 stream.next(m.qux);
00159 stream.next(m.ind);
00160 }
00161
00162 ROS_DECLARE_ALLINONE_SERIALIZER;
00163 };
00164 }
00165 }
00166
00167 namespace ros
00168 {
00169 namespace message_operations
00170 {
00171
00172 template<class ContainerAllocator>
00173 struct Printer< ::test_roslisp::ComplexMessage_<ContainerAllocator> >
00174 {
00175 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslisp::ComplexMessage_<ContainerAllocator> & v)
00176 {
00177 s << indent << "x[]" << std::endl;
00178 for (size_t i = 0; i < v.x.size(); ++i)
00179 {
00180 s << indent << " x[" << i << "]: ";
00181 Printer<float>::stream(s, indent + " ", v.x[i]);
00182 }
00183 s << indent << "y[]" << std::endl;
00184 for (size_t i = 0; i < v.y.size(); ++i)
00185 {
00186 s << indent << " y[" << i << "]: ";
00187 s << std::endl;
00188 s << indent;
00189 Printer< ::test_roslisp::Foo_<ContainerAllocator> >::stream(s, indent + " ", v.y[i]);
00190 }
00191 s << indent << "z[]" << std::endl;
00192 for (size_t i = 0; i < v.z.size(); ++i)
00193 {
00194 s << indent << " z[" << i << "]: ";
00195 s << std::endl;
00196 s << indent;
00197 Printer< ::test_roslisp::Foo_<ContainerAllocator> >::stream(s, indent + " ", v.z[i]);
00198 }
00199 s << indent << "w[]" << std::endl;
00200 for (size_t i = 0; i < v.w.size(); ++i)
00201 {
00202 s << indent << " w[" << i << "]: ";
00203 s << std::endl;
00204 s << indent;
00205 Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + " ", v.w[i]);
00206 }
00207 s << indent << "qux: ";
00208 Printer<uint8_t>::stream(s, indent + " ", v.qux);
00209 s << indent << "ind: ";
00210 Printer<uint8_t>::stream(s, indent + " ", v.ind);
00211 }
00212 };
00213
00214
00215 }
00216 }
00217
00218 #endif // TEST_ROSLISP_MESSAGE_COMPLEXMESSAGE_H
00219