00001
00002 #ifndef TEST_ROSCPP_SERIALIZATION_MESSAGE_HEADERNOTFIRSTMEMBER_H
00003 #define TEST_ROSCPP_SERIALIZATION_MESSAGE_HEADERNOTFIRSTMEMBER_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 "std_msgs/Header.h"
00014
00015 namespace test_roscpp_serialization
00016 {
00017 template <class ContainerAllocator>
00018 struct HeaderNotFirstMember_ : public ros::Message
00019 {
00020 typedef HeaderNotFirstMember_<ContainerAllocator> Type;
00021
00022 HeaderNotFirstMember_()
00023 : foo(0)
00024 , header()
00025 {
00026 }
00027
00028 HeaderNotFirstMember_(const ContainerAllocator& _alloc)
00029 : foo(0)
00030 , header(_alloc)
00031 {
00032 }
00033
00034 typedef int8_t _foo_type;
00035 int8_t foo;
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "test_roscpp_serialization/HeaderNotFirstMember"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "c7ed781820d7a36c5947d0f441f50964"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "int8 foo\n\
00057 Header header\n\
00058 \n\
00059 ================================================================================\n\
00060 MSG: std_msgs/Header\n\
00061 # Standard metadata for higher-level stamped data types.\n\
00062 # This is generally used to communicate timestamped data \n\
00063 # in a particular coordinate frame.\n\
00064 # \n\
00065 # sequence ID: consecutively increasing ID \n\
00066 uint32 seq\n\
00067 #Two-integer timestamp that is expressed as:\n\
00068 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00069 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00070 # time-handling sugar is provided by the client library\n\
00071 time stamp\n\
00072 #Frame this data is associated with\n\
00073 # 0: no frame\n\
00074 # 1: global frame\n\
00075 string frame_id\n\
00076 \n\
00077 "; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00084 {
00085 ros::serialization::OStream stream(write_ptr, 1000000000);
00086 ros::serialization::serialize(stream, foo);
00087 ros::serialization::serialize(stream, header);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00092 {
00093 ros::serialization::IStream stream(read_ptr, 1000000000);
00094 ros::serialization::deserialize(stream, foo);
00095 ros::serialization::deserialize(stream, header);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint32_t serializationLength() const
00100 {
00101 uint32_t size = 0;
00102 size += ros::serialization::serializationLength(foo);
00103 size += ros::serialization::serializationLength(header);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::test_roscpp_serialization::HeaderNotFirstMember_<std::allocator<void> > HeaderNotFirstMember;
00111
00112 typedef boost::shared_ptr< ::test_roscpp_serialization::HeaderNotFirstMember> HeaderNotFirstMemberPtr;
00113 typedef boost::shared_ptr< ::test_roscpp_serialization::HeaderNotFirstMember const> HeaderNotFirstMemberConstPtr;
00114
00115
00116 template<typename ContainerAllocator>
00117 std::ostream& operator<<(std::ostream& s, const ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> & v)
00118 {
00119 ros::message_operations::Printer< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> >::stream(s, "", v);
00120 return s;}
00121
00122 }
00123
00124 namespace ros
00125 {
00126 namespace message_traits
00127 {
00128 template<class ContainerAllocator>
00129 struct MD5Sum< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "c7ed781820d7a36c5947d0f441f50964";
00133 }
00134
00135 static const char* value(const ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0xc7ed781820d7a36cULL;
00137 static const uint64_t static_value2 = 0x5947d0f441f50964ULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "test_roscpp_serialization/HeaderNotFirstMember";
00145 }
00146
00147 static const char* value(const ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "int8 foo\n\
00155 Header header\n\
00156 \n\
00157 ================================================================================\n\
00158 MSG: std_msgs/Header\n\
00159 # Standard metadata for higher-level stamped data types.\n\
00160 # This is generally used to communicate timestamped data \n\
00161 # in a particular coordinate frame.\n\
00162 # \n\
00163 # sequence ID: consecutively increasing ID \n\
00164 uint32 seq\n\
00165 #Two-integer timestamp that is expressed as:\n\
00166 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00167 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00168 # time-handling sugar is provided by the client library\n\
00169 time stamp\n\
00170 #Frame this data is associated with\n\
00171 # 0: no frame\n\
00172 # 1: global frame\n\
00173 string frame_id\n\
00174 \n\
00175 ";
00176 }
00177
00178 static const char* value(const ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> &) { return value(); }
00179 };
00180
00181 }
00182 }
00183
00184 namespace ros
00185 {
00186 namespace serialization
00187 {
00188
00189 template<class ContainerAllocator> struct Serializer< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> >
00190 {
00191 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00192 {
00193 stream.next(m.foo);
00194 stream.next(m.header);
00195 }
00196
00197 ROS_DECLARE_ALLINONE_SERIALIZER;
00198 };
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace message_operations
00205 {
00206
00207 template<class ContainerAllocator>
00208 struct Printer< ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> >
00209 {
00210 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roscpp_serialization::HeaderNotFirstMember_<ContainerAllocator> & v)
00211 {
00212 s << indent << "foo: ";
00213 Printer<int8_t>::stream(s, indent + " ", v.foo);
00214 s << indent << "header: ";
00215 s << std::endl;
00216 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00217 }
00218 };
00219
00220
00221 }
00222 }
00223
00224 #endif // TEST_ROSCPP_SERIALIZATION_MESSAGE_HEADERNOTFIRSTMEMBER_H
00225