00001
00002 #ifndef TEST_ROSPY_MESSAGE_EMBEDTEST_H
00003 #define TEST_ROSPY_MESSAGE_EMBEDTEST_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/Int32.h"
00015 #include "std_msgs/Int32.h"
00016 #include "test_rospy/Val.h"
00017 #include "test_rospy/Val.h"
00018 #include "test_rospy/ArrayVal.h"
00019
00020 namespace test_rospy
00021 {
00022 template <class ContainerAllocator>
00023 struct EmbedTest_ : public ros::Message
00024 {
00025 typedef EmbedTest_<ContainerAllocator> Type;
00026
00027 EmbedTest_()
00028 : str1()
00029 , int1()
00030 , ints()
00031 , val()
00032 , vals()
00033 , arrayval()
00034 {
00035 }
00036
00037 EmbedTest_(const ContainerAllocator& _alloc)
00038 : str1(_alloc)
00039 , int1(_alloc)
00040 , ints(_alloc)
00041 , val(_alloc)
00042 , vals(_alloc)
00043 , arrayval(_alloc)
00044 {
00045 }
00046
00047 typedef ::std_msgs::String_<ContainerAllocator> _str1_type;
00048 ::std_msgs::String_<ContainerAllocator> str1;
00049
00050 typedef ::std_msgs::Int32_<ContainerAllocator> _int1_type;
00051 ::std_msgs::Int32_<ContainerAllocator> int1;
00052
00053 typedef std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other > _ints_type;
00054 std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other > ints;
00055
00056 typedef ::test_rospy::Val_<ContainerAllocator> _val_type;
00057 ::test_rospy::Val_<ContainerAllocator> val;
00058
00059 typedef std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other > _vals_type;
00060 std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other > vals;
00061
00062 typedef std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other > _arrayval_type;
00063 std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other > arrayval;
00064
00065
00066 ROS_DEPRECATED uint32_t get_ints_size() const { return (uint32_t)ints.size(); }
00067 ROS_DEPRECATED void set_ints_size(uint32_t size) { ints.resize((size_t)size); }
00068 ROS_DEPRECATED void get_ints_vec(std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other > & vec) const { vec = this->ints; }
00069 ROS_DEPRECATED void set_ints_vec(const std::vector< ::std_msgs::Int32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int32_<ContainerAllocator> >::other > & vec) { this->ints = vec; }
00070 ROS_DEPRECATED uint32_t get_vals_size() const { return (uint32_t)vals.size(); }
00071 ROS_DEPRECATED void set_vals_size(uint32_t size) { vals.resize((size_t)size); }
00072 ROS_DEPRECATED void get_vals_vec(std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other > & vec) const { vec = this->vals; }
00073 ROS_DEPRECATED void set_vals_vec(const std::vector< ::test_rospy::Val_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::Val_<ContainerAllocator> >::other > & vec) { this->vals = vec; }
00074 ROS_DEPRECATED uint32_t get_arrayval_size() const { return (uint32_t)arrayval.size(); }
00075 ROS_DEPRECATED void set_arrayval_size(uint32_t size) { arrayval.resize((size_t)size); }
00076 ROS_DEPRECATED void get_arrayval_vec(std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other > & vec) const { vec = this->arrayval; }
00077 ROS_DEPRECATED void set_arrayval_vec(const std::vector< ::test_rospy::ArrayVal_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_rospy::ArrayVal_<ContainerAllocator> >::other > & vec) { this->arrayval = vec; }
00078 private:
00079 static const char* __s_getDataType_() { return "test_rospy/EmbedTest"; }
00080 public:
00081 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00082
00083 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00084
00085 private:
00086 static const char* __s_getMD5Sum_() { return "f8b1fc6a0f70f541c9d6bd2886b9e249"; }
00087 public:
00088 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00089
00090 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00091
00092 private:
00093 static const char* __s_getMessageDefinition_() { return "std_msgs/String str1\n\
00094 std_msgs/Int32 int1\n\
00095 std_msgs/Int32[] ints\n\
00096 Val val\n\
00097 Val[] vals\n\
00098 ArrayVal[] arrayval\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: std_msgs/String\n\
00102 string data\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: std_msgs/Int32\n\
00106 int32 data\n\
00107 ================================================================================\n\
00108 MSG: test_rospy/Val\n\
00109 string val\n\
00110 ================================================================================\n\
00111 MSG: test_rospy/ArrayVal\n\
00112 Val[] vals\n\
00113 #Val[10] vals_fixed\n\
00114 \n\
00115 "; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00118
00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00120
00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00122 {
00123 ros::serialization::OStream stream(write_ptr, 1000000000);
00124 ros::serialization::serialize(stream, str1);
00125 ros::serialization::serialize(stream, int1);
00126 ros::serialization::serialize(stream, ints);
00127 ros::serialization::serialize(stream, val);
00128 ros::serialization::serialize(stream, vals);
00129 ros::serialization::serialize(stream, arrayval);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00134 {
00135 ros::serialization::IStream stream(read_ptr, 1000000000);
00136 ros::serialization::deserialize(stream, str1);
00137 ros::serialization::deserialize(stream, int1);
00138 ros::serialization::deserialize(stream, ints);
00139 ros::serialization::deserialize(stream, val);
00140 ros::serialization::deserialize(stream, vals);
00141 ros::serialization::deserialize(stream, arrayval);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(str1);
00149 size += ros::serialization::serializationLength(int1);
00150 size += ros::serialization::serializationLength(ints);
00151 size += ros::serialization::serializationLength(val);
00152 size += ros::serialization::serializationLength(vals);
00153 size += ros::serialization::serializationLength(arrayval);
00154 return size;
00155 }
00156
00157 typedef boost::shared_ptr< ::test_rospy::EmbedTest_<ContainerAllocator> > Ptr;
00158 typedef boost::shared_ptr< ::test_rospy::EmbedTest_<ContainerAllocator> const> ConstPtr;
00159 };
00160 typedef ::test_rospy::EmbedTest_<std::allocator<void> > EmbedTest;
00161
00162 typedef boost::shared_ptr< ::test_rospy::EmbedTest> EmbedTestPtr;
00163 typedef boost::shared_ptr< ::test_rospy::EmbedTest const> EmbedTestConstPtr;
00164
00165
00166 template<typename ContainerAllocator>
00167 std::ostream& operator<<(std::ostream& s, const ::test_rospy::EmbedTest_<ContainerAllocator> & v)
00168 {
00169 ros::message_operations::Printer< ::test_rospy::EmbedTest_<ContainerAllocator> >::stream(s, "", v);
00170 return s;}
00171
00172 }
00173
00174 namespace ros
00175 {
00176 namespace message_traits
00177 {
00178 template<class ContainerAllocator>
00179 struct MD5Sum< ::test_rospy::EmbedTest_<ContainerAllocator> > {
00180 static const char* value()
00181 {
00182 return "f8b1fc6a0f70f541c9d6bd2886b9e249";
00183 }
00184
00185 static const char* value(const ::test_rospy::EmbedTest_<ContainerAllocator> &) { return value(); }
00186 static const uint64_t static_value1 = 0xf8b1fc6a0f70f541ULL;
00187 static const uint64_t static_value2 = 0xc9d6bd2886b9e249ULL;
00188 };
00189
00190 template<class ContainerAllocator>
00191 struct DataType< ::test_rospy::EmbedTest_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "test_rospy/EmbedTest";
00195 }
00196
00197 static const char* value(const ::test_rospy::EmbedTest_<ContainerAllocator> &) { return value(); }
00198 };
00199
00200 template<class ContainerAllocator>
00201 struct Definition< ::test_rospy::EmbedTest_<ContainerAllocator> > {
00202 static const char* value()
00203 {
00204 return "std_msgs/String str1\n\
00205 std_msgs/Int32 int1\n\
00206 std_msgs/Int32[] ints\n\
00207 Val val\n\
00208 Val[] vals\n\
00209 ArrayVal[] arrayval\n\
00210 \n\
00211 ================================================================================\n\
00212 MSG: std_msgs/String\n\
00213 string data\n\
00214 \n\
00215 ================================================================================\n\
00216 MSG: std_msgs/Int32\n\
00217 int32 data\n\
00218 ================================================================================\n\
00219 MSG: test_rospy/Val\n\
00220 string val\n\
00221 ================================================================================\n\
00222 MSG: test_rospy/ArrayVal\n\
00223 Val[] vals\n\
00224 #Val[10] vals_fixed\n\
00225 \n\
00226 ";
00227 }
00228
00229 static const char* value(const ::test_rospy::EmbedTest_<ContainerAllocator> &) { return value(); }
00230 };
00231
00232 }
00233 }
00234
00235 namespace ros
00236 {
00237 namespace serialization
00238 {
00239
00240 template<class ContainerAllocator> struct Serializer< ::test_rospy::EmbedTest_<ContainerAllocator> >
00241 {
00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00243 {
00244 stream.next(m.str1);
00245 stream.next(m.int1);
00246 stream.next(m.ints);
00247 stream.next(m.val);
00248 stream.next(m.vals);
00249 stream.next(m.arrayval);
00250 }
00251
00252 ROS_DECLARE_ALLINONE_SERIALIZER;
00253 };
00254 }
00255 }
00256
00257 namespace ros
00258 {
00259 namespace message_operations
00260 {
00261
00262 template<class ContainerAllocator>
00263 struct Printer< ::test_rospy::EmbedTest_<ContainerAllocator> >
00264 {
00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rospy::EmbedTest_<ContainerAllocator> & v)
00266 {
00267 s << indent << "str1: ";
00268 s << std::endl;
00269 Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + " ", v.str1);
00270 s << indent << "int1: ";
00271 s << std::endl;
00272 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.int1);
00273 s << indent << "ints[]" << std::endl;
00274 for (size_t i = 0; i < v.ints.size(); ++i)
00275 {
00276 s << indent << " ints[" << i << "]: ";
00277 s << std::endl;
00278 s << indent;
00279 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.ints[i]);
00280 }
00281 s << indent << "val: ";
00282 s << std::endl;
00283 Printer< ::test_rospy::Val_<ContainerAllocator> >::stream(s, indent + " ", v.val);
00284 s << indent << "vals[]" << std::endl;
00285 for (size_t i = 0; i < v.vals.size(); ++i)
00286 {
00287 s << indent << " vals[" << i << "]: ";
00288 s << std::endl;
00289 s << indent;
00290 Printer< ::test_rospy::Val_<ContainerAllocator> >::stream(s, indent + " ", v.vals[i]);
00291 }
00292 s << indent << "arrayval[]" << std::endl;
00293 for (size_t i = 0; i < v.arrayval.size(); ++i)
00294 {
00295 s << indent << " arrayval[" << i << "]: ";
00296 s << std::endl;
00297 s << indent;
00298 Printer< ::test_rospy::ArrayVal_<ContainerAllocator> >::stream(s, indent + " ", v.arrayval[i]);
00299 }
00300 }
00301 };
00302
00303
00304 }
00305 }
00306
00307 #endif // TEST_ROSPY_MESSAGE_EMBEDTEST_H
00308