00001
00002 #ifndef TEST_ROSMSG_MESSAGE_ROSMSGC_H
00003 #define TEST_ROSMSG_MESSAGE_ROSMSGC_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/String.h"
00014 #include "std_msgs/String.h"
00015
00016 namespace test_rosmsg
00017 {
00018 template <class ContainerAllocator>
00019 struct RosmsgC_ : public ros::Message
00020 {
00021 typedef RosmsgC_<ContainerAllocator> Type;
00022
00023 RosmsgC_()
00024 : s1()
00025 , s2()
00026 {
00027 }
00028
00029 RosmsgC_(const ContainerAllocator& _alloc)
00030 : s1(_alloc)
00031 , s2(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::String_<ContainerAllocator> _s1_type;
00036 ::std_msgs::String_<ContainerAllocator> s1;
00037
00038 typedef ::std_msgs::String_<ContainerAllocator> _s2_type;
00039 ::std_msgs::String_<ContainerAllocator> s2;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "test_rosmsg/RosmsgC"; }
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 "cc91a7e3c1498150f3554cbcab2800d2"; }
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 "std_msgs/String s1\n\
00058 std_msgs/String s2\n\
00059 \n\
00060 ================================================================================\n\
00061 MSG: std_msgs/String\n\
00062 string data\n\
00063 \n\
00064 "; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00067
00068 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00071 {
00072 ros::serialization::OStream stream(write_ptr, 1000000000);
00073 ros::serialization::serialize(stream, s1);
00074 ros::serialization::serialize(stream, s2);
00075 return stream.getData();
00076 }
00077
00078 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00079 {
00080 ros::serialization::IStream stream(read_ptr, 1000000000);
00081 ros::serialization::deserialize(stream, s1);
00082 ros::serialization::deserialize(stream, s2);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(s1);
00090 size += ros::serialization::serializationLength(s2);
00091 return size;
00092 }
00093
00094 typedef boost::shared_ptr< ::test_rosmsg::RosmsgC_<ContainerAllocator> > Ptr;
00095 typedef boost::shared_ptr< ::test_rosmsg::RosmsgC_<ContainerAllocator> const> ConstPtr;
00096 };
00097 typedef ::test_rosmsg::RosmsgC_<std::allocator<void> > RosmsgC;
00098
00099 typedef boost::shared_ptr< ::test_rosmsg::RosmsgC> RosmsgCPtr;
00100 typedef boost::shared_ptr< ::test_rosmsg::RosmsgC const> RosmsgCConstPtr;
00101
00102
00103 template<typename ContainerAllocator>
00104 std::ostream& operator<<(std::ostream& s, const ::test_rosmsg::RosmsgC_<ContainerAllocator> & v)
00105 {
00106 ros::message_operations::Printer< ::test_rosmsg::RosmsgC_<ContainerAllocator> >::stream(s, "", v);
00107 return s;}
00108
00109 }
00110
00111 namespace ros
00112 {
00113 namespace message_traits
00114 {
00115 template<class ContainerAllocator>
00116 struct MD5Sum< ::test_rosmsg::RosmsgC_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "cc91a7e3c1498150f3554cbcab2800d2";
00120 }
00121
00122 static const char* value(const ::test_rosmsg::RosmsgC_<ContainerAllocator> &) { return value(); }
00123 static const uint64_t static_value1 = 0xcc91a7e3c1498150ULL;
00124 static const uint64_t static_value2 = 0xf3554cbcab2800d2ULL;
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct DataType< ::test_rosmsg::RosmsgC_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "test_rosmsg/RosmsgC";
00132 }
00133
00134 static const char* value(const ::test_rosmsg::RosmsgC_<ContainerAllocator> &) { return value(); }
00135 };
00136
00137 template<class ContainerAllocator>
00138 struct Definition< ::test_rosmsg::RosmsgC_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "std_msgs/String s1\n\
00142 std_msgs/String s2\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: std_msgs/String\n\
00146 string data\n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::test_rosmsg::RosmsgC_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161
00162 template<class ContainerAllocator> struct Serializer< ::test_rosmsg::RosmsgC_<ContainerAllocator> >
00163 {
00164 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165 {
00166 stream.next(m.s1);
00167 stream.next(m.s2);
00168 }
00169
00170 ROS_DECLARE_ALLINONE_SERIALIZER;
00171 };
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179
00180 template<class ContainerAllocator>
00181 struct Printer< ::test_rosmsg::RosmsgC_<ContainerAllocator> >
00182 {
00183 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rosmsg::RosmsgC_<ContainerAllocator> & v)
00184 {
00185 s << indent << "s1: ";
00186 s << std::endl;
00187 Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + " ", v.s1);
00188 s << indent << "s2: ";
00189 s << std::endl;
00190 Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + " ", v.s2);
00191 }
00192 };
00193
00194
00195 }
00196 }
00197
00198 #endif // TEST_ROSMSG_MESSAGE_ROSMSGC_H
00199