Go to the documentation of this file.00001
00002 #ifndef ROSBRIDGE_TEST_MESSAGE_HEADERARRAYTEST_H
00003 #define ROSBRIDGE_TEST_MESSAGE_HEADERARRAYTEST_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 "std_msgs/Header.h"
00018
00019 namespace rosbridge_test
00020 {
00021 template <class ContainerAllocator>
00022 struct HeaderArrayTest_ {
00023 typedef HeaderArrayTest_<ContainerAllocator> Type;
00024
00025 HeaderArrayTest_()
00026 : header()
00027 {
00028 }
00029
00030 HeaderArrayTest_(const ContainerAllocator& _alloc)
00031 : header(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector< ::std_msgs::Header_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Header_<ContainerAllocator> >::other > _header_type;
00036 std::vector< ::std_msgs::Header_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Header_<ContainerAllocator> >::other > header;
00037
00038
00039 typedef boost::shared_ptr< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::rosbridge_test::HeaderArrayTest_<std::allocator<void> > HeaderArrayTest;
00044
00045 typedef boost::shared_ptr< ::rosbridge_test::HeaderArrayTest> HeaderArrayTestPtr;
00046 typedef boost::shared_ptr< ::rosbridge_test::HeaderArrayTest const> HeaderArrayTestConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "d7be0bb39af8fb9129d5a76e6b63a290";
00068 }
00069
00070 static const char* value(const ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0xd7be0bb39af8fb91ULL;
00072 static const uint64_t static_value2 = 0x29d5a76e6b63a290ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "rosbridge_test/HeaderArrayTest";
00080 }
00081
00082 static const char* value(const ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "std_msgs/Header[] header\n\
00090 ================================================================================\n\
00091 MSG: std_msgs/Header\n\
00092 # Standard metadata for higher-level stamped data types.\n\
00093 # This is generally used to communicate timestamped data \n\
00094 # in a particular coordinate frame.\n\
00095 # \n\
00096 # sequence ID: consecutively increasing ID \n\
00097 uint32 seq\n\
00098 #Two-integer timestamp that is expressed as:\n\
00099 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00100 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00101 # time-handling sugar is provided by the client library\n\
00102 time stamp\n\
00103 #Frame this data is associated with\n\
00104 # 0: no frame\n\
00105 # 1: global frame\n\
00106 string frame_id\n\
00107 \n\
00108 ";
00109 }
00110
00111 static const char* value(const ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 }
00115 }
00116
00117 namespace ros
00118 {
00119 namespace serialization
00120 {
00121
00122 template<class ContainerAllocator> struct Serializer< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> >
00123 {
00124 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00125 {
00126 stream.next(m.header);
00127 }
00128
00129 ROS_DECLARE_ALLINONE_SERIALIZER;
00130 };
00131 }
00132 }
00133
00134 namespace ros
00135 {
00136 namespace message_operations
00137 {
00138
00139 template<class ContainerAllocator>
00140 struct Printer< ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> >
00141 {
00142 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosbridge_test::HeaderArrayTest_<ContainerAllocator> & v)
00143 {
00144 s << indent << "header[]" << std::endl;
00145 for (size_t i = 0; i < v.header.size(); ++i)
00146 {
00147 s << indent << " header[" << i << "]: ";
00148 s << std::endl;
00149 s << indent;
00150 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header[i]);
00151 }
00152 }
00153 };
00154
00155
00156 }
00157 }
00158
00159 #endif // ROSBRIDGE_TEST_MESSAGE_HEADERARRAYTEST_H
00160