00001
00002 #ifndef TEST_ROSPY_MESSAGE_HEADERHEADERVAL_H
00003 #define TEST_ROSPY_MESSAGE_HEADERHEADERVAL_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 #include "test_rospy/HeaderVal.h"
00015
00016 namespace test_rospy
00017 {
00018 template <class ContainerAllocator>
00019 struct HeaderHeaderVal_ : public ros::Message
00020 {
00021 typedef HeaderHeaderVal_<ContainerAllocator> Type;
00022
00023 HeaderHeaderVal_()
00024 : header()
00025 , val()
00026 {
00027 }
00028
00029 HeaderHeaderVal_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , val(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef ::test_rospy::HeaderVal_<ContainerAllocator> _val_type;
00039 ::test_rospy::HeaderVal_<ContainerAllocator> val;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "test_rospy/HeaderHeaderVal"; }
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 "ae71c365b9bafbc4abaf37150c80a6b5"; }
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 "Header header\n\
00058 HeaderVal val\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 ================================================================================\n\
00078 MSG: test_rospy/HeaderVal\n\
00079 Header header\n\
00080 string val\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, header);
00091 ros::serialization::serialize(stream, val);
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, header);
00099 ros::serialization::deserialize(stream, val);
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(header);
00107 size += ros::serialization::serializationLength(val);
00108 return size;
00109 }
00110
00111 typedef boost::shared_ptr< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> > Ptr;
00112 typedef boost::shared_ptr< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> const> ConstPtr;
00113 };
00114 typedef ::test_rospy::HeaderHeaderVal_<std::allocator<void> > HeaderHeaderVal;
00115
00116 typedef boost::shared_ptr< ::test_rospy::HeaderHeaderVal> HeaderHeaderValPtr;
00117 typedef boost::shared_ptr< ::test_rospy::HeaderHeaderVal const> HeaderHeaderValConstPtr;
00118
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::test_rospy::HeaderHeaderVal_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::test_rospy::HeaderHeaderVal_<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_rospy::HeaderHeaderVal_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "ae71c365b9bafbc4abaf37150c80a6b5";
00137 }
00138
00139 static const char* value(const ::test_rospy::HeaderHeaderVal_<ContainerAllocator> &) { return value(); }
00140 static const uint64_t static_value1 = 0xae71c365b9bafbc4ULL;
00141 static const uint64_t static_value2 = 0xabaf37150c80a6b5ULL;
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct DataType< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "test_rospy/HeaderHeaderVal";
00149 }
00150
00151 static const char* value(const ::test_rospy::HeaderHeaderVal_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct Definition< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "Header header\n\
00159 HeaderVal val\n\
00160 ================================================================================\n\
00161 MSG: std_msgs/Header\n\
00162 # Standard metadata for higher-level stamped data types.\n\
00163 # This is generally used to communicate timestamped data \n\
00164 # in a particular coordinate frame.\n\
00165 # \n\
00166 # sequence ID: consecutively increasing ID \n\
00167 uint32 seq\n\
00168 #Two-integer timestamp that is expressed as:\n\
00169 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00170 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00171 # time-handling sugar is provided by the client library\n\
00172 time stamp\n\
00173 #Frame this data is associated with\n\
00174 # 0: no frame\n\
00175 # 1: global frame\n\
00176 string frame_id\n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: test_rospy/HeaderVal\n\
00180 Header header\n\
00181 string val\n\
00182 ";
00183 }
00184
00185 static const char* value(const ::test_rospy::HeaderHeaderVal_<ContainerAllocator> &) { return value(); }
00186 };
00187
00188 template<class ContainerAllocator> struct HasHeader< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> > : public TrueType {};
00189 template<class ContainerAllocator> struct HasHeader< const ::test_rospy::HeaderHeaderVal_<ContainerAllocator> > : public TrueType {};
00190 }
00191 }
00192
00193 namespace ros
00194 {
00195 namespace serialization
00196 {
00197
00198 template<class ContainerAllocator> struct Serializer< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> >
00199 {
00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00201 {
00202 stream.next(m.header);
00203 stream.next(m.val);
00204 }
00205
00206 ROS_DECLARE_ALLINONE_SERIALIZER;
00207 };
00208 }
00209 }
00210
00211 namespace ros
00212 {
00213 namespace message_operations
00214 {
00215
00216 template<class ContainerAllocator>
00217 struct Printer< ::test_rospy::HeaderHeaderVal_<ContainerAllocator> >
00218 {
00219 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rospy::HeaderHeaderVal_<ContainerAllocator> & v)
00220 {
00221 s << indent << "header: ";
00222 s << std::endl;
00223 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00224 s << indent << "val: ";
00225 s << std::endl;
00226 Printer< ::test_rospy::HeaderVal_<ContainerAllocator> >::stream(s, indent + " ", v.val);
00227 }
00228 };
00229
00230
00231 }
00232 }
00233
00234 #endif // TEST_ROSPY_MESSAGE_HEADERHEADERVAL_H
00235