00001
00002 #ifndef TEST_ROSCPP_SERIALIZATION_MESSAGE_EMBEDDEDEXTERNAL_H
00003 #define TEST_ROSCPP_SERIALIZATION_MESSAGE_EMBEDDEDEXTERNAL_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/UInt8.h"
00014
00015 namespace test_roscpp_serialization
00016 {
00017 template <class ContainerAllocator>
00018 struct EmbeddedExternal_ : public ros::Message
00019 {
00020 typedef EmbeddedExternal_<ContainerAllocator> Type;
00021
00022 EmbeddedExternal_()
00023 : a()
00024 {
00025 }
00026
00027 EmbeddedExternal_(const ContainerAllocator& _alloc)
00028 : a(_alloc)
00029 {
00030 }
00031
00032 typedef ::std_msgs::UInt8_<ContainerAllocator> _a_type;
00033 ::std_msgs::UInt8_<ContainerAllocator> a;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "test_roscpp_serialization/EmbeddedExternal"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "a09b324865f98bbf605e59ed0cefbc1d"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "std_msgs/UInt8 a\n\
00052 ================================================================================\n\
00053 MSG: std_msgs/UInt8\n\
00054 uint8 data\n\
00055 \n\
00056 "; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00059
00060 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00061
00062 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00063 {
00064 ros::serialization::OStream stream(write_ptr, 1000000000);
00065 ros::serialization::serialize(stream, a);
00066 return stream.getData();
00067 }
00068
00069 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00070 {
00071 ros::serialization::IStream stream(read_ptr, 1000000000);
00072 ros::serialization::deserialize(stream, a);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint32_t serializationLength() const
00077 {
00078 uint32_t size = 0;
00079 size += ros::serialization::serializationLength(a);
00080 return size;
00081 }
00082
00083 typedef boost::shared_ptr< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> > Ptr;
00084 typedef boost::shared_ptr< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> const> ConstPtr;
00085 };
00086 typedef ::test_roscpp_serialization::EmbeddedExternal_<std::allocator<void> > EmbeddedExternal;
00087
00088 typedef boost::shared_ptr< ::test_roscpp_serialization::EmbeddedExternal> EmbeddedExternalPtr;
00089 typedef boost::shared_ptr< ::test_roscpp_serialization::EmbeddedExternal const> EmbeddedExternalConstPtr;
00090
00091
00092 template<typename ContainerAllocator>
00093 std::ostream& operator<<(std::ostream& s, const ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> & v)
00094 {
00095 ros::message_operations::Printer< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> >::stream(s, "", v);
00096 return s;}
00097
00098 }
00099
00100 namespace ros
00101 {
00102 namespace message_traits
00103 {
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "a09b324865f98bbf605e59ed0cefbc1d";
00109 }
00110
00111 static const char* value(const ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0xa09b324865f98bbfULL;
00113 static const uint64_t static_value2 = 0x605e59ed0cefbc1dULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "test_roscpp_serialization/EmbeddedExternal";
00121 }
00122
00123 static const char* value(const ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "std_msgs/UInt8 a\n\
00131 ================================================================================\n\
00132 MSG: std_msgs/UInt8\n\
00133 uint8 data\n\
00134 \n\
00135 ";
00136 }
00137
00138 static const char* value(const ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator> struct IsFixedSize< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> > : public TrueType {};
00142 }
00143 }
00144
00145 namespace ros
00146 {
00147 namespace serialization
00148 {
00149
00150 template<class ContainerAllocator> struct Serializer< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> >
00151 {
00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00153 {
00154 stream.next(m.a);
00155 }
00156
00157 ROS_DECLARE_ALLINONE_SERIALIZER;
00158 };
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace message_operations
00165 {
00166
00167 template<class ContainerAllocator>
00168 struct Printer< ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> >
00169 {
00170 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roscpp_serialization::EmbeddedExternal_<ContainerAllocator> & v)
00171 {
00172 s << indent << "a: ";
00173 s << std::endl;
00174 Printer< ::std_msgs::UInt8_<ContainerAllocator> >::stream(s, indent + " ", v.a);
00175 }
00176 };
00177
00178
00179 }
00180 }
00181
00182 #endif // TEST_ROSCPP_SERIALIZATION_MESSAGE_EMBEDDEDEXTERNAL_H
00183