00001
00002 #ifndef TEST_ROSLIB_COMM_MESSAGE_SAMESUBMSG2_H
00003 #define TEST_ROSLIB_COMM_MESSAGE_SAMESUBMSG2_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
00014 namespace test_roslib_comm
00015 {
00016 template <class ContainerAllocator>
00017 struct SameSubMsg2_ : public ros::Message
00018 {
00019 typedef SameSubMsg2_<ContainerAllocator> Type;
00020
00021 SameSubMsg2_()
00022 : a(0)
00023 , b(0.0)
00024 , c()
00025 , d()
00026 , e()
00027 {
00028 d.assign(0);
00029 }
00030
00031 SameSubMsg2_(const ContainerAllocator& _alloc)
00032 : a(0)
00033 , b(0.0)
00034 , c(_alloc)
00035 , d()
00036 , e(_alloc)
00037 {
00038 d.assign(0);
00039 }
00040
00041 typedef int32_t _a_type;
00042 int32_t a;
00043
00044 typedef float _b_type;
00045 float b;
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _c_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > c;
00049
00050 typedef boost::array<uint64_t, 10> _d_type;
00051 boost::array<uint64_t, 10> d;
00052
00053 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _e_type;
00054 std::vector<double, typename ContainerAllocator::template rebind<double>::other > e;
00055
00056
00057 ROS_DEPRECATED uint32_t get_d_size() const { return (uint32_t)d.size(); }
00058 ROS_DEPRECATED uint32_t get_e_size() const { return (uint32_t)e.size(); }
00059 ROS_DEPRECATED void set_e_size(uint32_t size) { e.resize((size_t)size); }
00060 ROS_DEPRECATED void get_e_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->e; }
00061 ROS_DEPRECATED void set_e_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->e = vec; }
00062 private:
00063 static const char* __s_getDataType_() { return "test_roslib_comm/SameSubMsg2"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00066
00067 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00068
00069 private:
00070 static const char* __s_getMD5Sum_() { return "49145a54e4be1a218629e518575a0bf3"; }
00071 public:
00072 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00073
00074 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00075
00076 private:
00077 static const char* __s_getMessageDefinition_() { return "int32 a\n\
00078 float32 b\n\
00079 string c\n\
00080 uint64[10] d\n\
00081 float64[] e\n\
00082 "; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00085
00086 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00089 {
00090 ros::serialization::OStream stream(write_ptr, 1000000000);
00091 ros::serialization::serialize(stream, a);
00092 ros::serialization::serialize(stream, b);
00093 ros::serialization::serialize(stream, c);
00094 ros::serialization::serialize(stream, d);
00095 ros::serialization::serialize(stream, e);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00100 {
00101 ros::serialization::IStream stream(read_ptr, 1000000000);
00102 ros::serialization::deserialize(stream, a);
00103 ros::serialization::deserialize(stream, b);
00104 ros::serialization::deserialize(stream, c);
00105 ros::serialization::deserialize(stream, d);
00106 ros::serialization::deserialize(stream, e);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(a);
00114 size += ros::serialization::serializationLength(b);
00115 size += ros::serialization::serializationLength(c);
00116 size += ros::serialization::serializationLength(d);
00117 size += ros::serialization::serializationLength(e);
00118 return size;
00119 }
00120
00121 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> > Ptr;
00122 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> const> ConstPtr;
00123 };
00124 typedef ::test_roslib_comm::SameSubMsg2_<std::allocator<void> > SameSubMsg2;
00125
00126 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg2> SameSubMsg2Ptr;
00127 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg2 const> SameSubMsg2ConstPtr;
00128
00129
00130 template<typename ContainerAllocator>
00131 std::ostream& operator<<(std::ostream& s, const ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> & v)
00132 {
00133 ros::message_operations::Printer< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::stream(s, "", v);
00134 return s;}
00135
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator>
00143 struct MD5Sum< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> > {
00144 static const char* value()
00145 {
00146 return "49145a54e4be1a218629e518575a0bf3";
00147 }
00148
00149 static const char* value(const ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> &) { return value(); }
00150 static const uint64_t static_value1 = 0x49145a54e4be1a21ULL;
00151 static const uint64_t static_value2 = 0x8629e518575a0bf3ULL;
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct DataType< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "test_roslib_comm/SameSubMsg2";
00159 }
00160
00161 static const char* value(const ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> &) { return value(); }
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct Definition< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "int32 a\n\
00169 float32 b\n\
00170 string c\n\
00171 uint64[10] d\n\
00172 float64[] e\n\
00173 ";
00174 }
00175
00176 static const char* value(const ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> &) { return value(); }
00177 };
00178
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace serialization
00185 {
00186
00187 template<class ContainerAllocator> struct Serializer< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >
00188 {
00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00190 {
00191 stream.next(m.a);
00192 stream.next(m.b);
00193 stream.next(m.c);
00194 stream.next(m.d);
00195 stream.next(m.e);
00196 }
00197
00198 ROS_DECLARE_ALLINONE_SERIALIZER;
00199 };
00200 }
00201 }
00202
00203 namespace ros
00204 {
00205 namespace message_operations
00206 {
00207
00208 template<class ContainerAllocator>
00209 struct Printer< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >
00210 {
00211 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> & v)
00212 {
00213 s << indent << "a: ";
00214 Printer<int32_t>::stream(s, indent + " ", v.a);
00215 s << indent << "b: ";
00216 Printer<float>::stream(s, indent + " ", v.b);
00217 s << indent << "c: ";
00218 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.c);
00219 s << indent << "d[]" << std::endl;
00220 for (size_t i = 0; i < v.d.size(); ++i)
00221 {
00222 s << indent << " d[" << i << "]: ";
00223 Printer<uint64_t>::stream(s, indent + " ", v.d[i]);
00224 }
00225 s << indent << "e[]" << std::endl;
00226 for (size_t i = 0; i < v.e.size(); ++i)
00227 {
00228 s << indent << " e[" << i << "]: ";
00229 Printer<double>::stream(s, indent + " ", v.e[i]);
00230 }
00231 }
00232 };
00233
00234
00235 }
00236 }
00237
00238 #endif // TEST_ROSLIB_COMM_MESSAGE_SAMESUBMSG2_H
00239