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