00001
00002 #ifndef TEST_ROSTOPIC_MESSAGE_EMBED_H
00003 #define TEST_ROSTOPIC_MESSAGE_EMBED_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "test_rostopic/Simple.h"
00014 #include "test_rostopic/Arrays.h"
00015
00016 namespace test_rostopic
00017 {
00018 template <class ContainerAllocator>
00019 struct Embed_ : public ros::Message
00020 {
00021 typedef Embed_<ContainerAllocator> Type;
00022
00023 Embed_()
00024 : simple()
00025 , arrays()
00026 {
00027 }
00028
00029 Embed_(const ContainerAllocator& _alloc)
00030 : simple(_alloc)
00031 , arrays(_alloc)
00032 {
00033 }
00034
00035 typedef ::test_rostopic::Simple_<ContainerAllocator> _simple_type;
00036 ::test_rostopic::Simple_<ContainerAllocator> simple;
00037
00038 typedef ::test_rostopic::Arrays_<ContainerAllocator> _arrays_type;
00039 ::test_rostopic::Arrays_<ContainerAllocator> arrays;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "test_rostopic/Embed"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "6dec891298f3675c2d964c161d28efaa"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "Simple simple\n\
00058 Arrays arrays\n\
00059 \n\
00060 ================================================================================\n\
00061 MSG: test_rostopic/Simple\n\
00062 byte b\n\
00063 int16 int16\n\
00064 int32 int32\n\
00065 int64 int64\n\
00066 char c\n\
00067 uint16 uint16\n\
00068 uint32 uint32\n\
00069 uint64 uint64\n\
00070 string str\n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: test_rostopic/Arrays\n\
00074 int8[] int8_arr\n\
00075 uint8[] uint8_arr\n\
00076 int32[] int32_arr\n\
00077 uint32[] uint32_arr\n\
00078 string[] string_arr\n\
00079 time[] time_arr\n\
00080 \n\
00081 "; }
00082 public:
00083 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00084
00085 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00088 {
00089 ros::serialization::OStream stream(write_ptr, 1000000000);
00090 ros::serialization::serialize(stream, simple);
00091 ros::serialization::serialize(stream, arrays);
00092 return stream.getData();
00093 }
00094
00095 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00096 {
00097 ros::serialization::IStream stream(read_ptr, 1000000000);
00098 ros::serialization::deserialize(stream, simple);
00099 ros::serialization::deserialize(stream, arrays);
00100 return stream.getData();
00101 }
00102
00103 ROS_DEPRECATED virtual uint32_t serializationLength() const
00104 {
00105 uint32_t size = 0;
00106 size += ros::serialization::serializationLength(simple);
00107 size += ros::serialization::serializationLength(arrays);
00108 return size;
00109 }
00110
00111 typedef boost::shared_ptr< ::test_rostopic::Embed_<ContainerAllocator> > Ptr;
00112 typedef boost::shared_ptr< ::test_rostopic::Embed_<ContainerAllocator> const> ConstPtr;
00113 };
00114 typedef ::test_rostopic::Embed_<std::allocator<void> > Embed;
00115
00116 typedef boost::shared_ptr< ::test_rostopic::Embed> EmbedPtr;
00117 typedef boost::shared_ptr< ::test_rostopic::Embed const> EmbedConstPtr;
00118
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::test_rostopic::Embed_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::test_rostopic::Embed_<ContainerAllocator> >::stream(s, "", v);
00124 return s;}
00125
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator>
00133 struct MD5Sum< ::test_rostopic::Embed_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "6dec891298f3675c2d964c161d28efaa";
00137 }
00138
00139 static const char* value(const ::test_rostopic::Embed_<ContainerAllocator> &) { return value(); }
00140 static const uint64_t static_value1 = 0x6dec891298f3675cULL;
00141 static const uint64_t static_value2 = 0x2d964c161d28efaaULL;
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct DataType< ::test_rostopic::Embed_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "test_rostopic/Embed";
00149 }
00150
00151 static const char* value(const ::test_rostopic::Embed_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct Definition< ::test_rostopic::Embed_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "Simple simple\n\
00159 Arrays arrays\n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: test_rostopic/Simple\n\
00163 byte b\n\
00164 int16 int16\n\
00165 int32 int32\n\
00166 int64 int64\n\
00167 char c\n\
00168 uint16 uint16\n\
00169 uint32 uint32\n\
00170 uint64 uint64\n\
00171 string str\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: test_rostopic/Arrays\n\
00175 int8[] int8_arr\n\
00176 uint8[] uint8_arr\n\
00177 int32[] int32_arr\n\
00178 uint32[] uint32_arr\n\
00179 string[] string_arr\n\
00180 time[] time_arr\n\
00181 \n\
00182 ";
00183 }
00184
00185 static const char* value(const ::test_rostopic::Embed_<ContainerAllocator> &) { return value(); }
00186 };
00187
00188 }
00189 }
00190
00191 namespace ros
00192 {
00193 namespace serialization
00194 {
00195
00196 template<class ContainerAllocator> struct Serializer< ::test_rostopic::Embed_<ContainerAllocator> >
00197 {
00198 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00199 {
00200 stream.next(m.simple);
00201 stream.next(m.arrays);
00202 }
00203
00204 ROS_DECLARE_ALLINONE_SERIALIZER;
00205 };
00206 }
00207 }
00208
00209 namespace ros
00210 {
00211 namespace message_operations
00212 {
00213
00214 template<class ContainerAllocator>
00215 struct Printer< ::test_rostopic::Embed_<ContainerAllocator> >
00216 {
00217 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rostopic::Embed_<ContainerAllocator> & v)
00218 {
00219 s << indent << "simple: ";
00220 s << std::endl;
00221 Printer< ::test_rostopic::Simple_<ContainerAllocator> >::stream(s, indent + " ", v.simple);
00222 s << indent << "arrays: ";
00223 s << std::endl;
00224 Printer< ::test_rostopic::Arrays_<ContainerAllocator> >::stream(s, indent + " ", v.arrays);
00225 }
00226 };
00227
00228
00229 }
00230 }
00231
00232 #endif // TEST_ROSTOPIC_MESSAGE_EMBED_H
00233