00001
00002 #ifndef TEST_ROSPY_MESSAGE_TESTFIXEDARRAY_H
00003 #define TEST_ROSPY_MESSAGE_TESTFIXEDARRAY_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_rospy
00015 {
00016 template <class ContainerAllocator>
00017 struct TestFixedArray_ : public ros::Message
00018 {
00019 typedef TestFixedArray_<ContainerAllocator> Type;
00020
00021 TestFixedArray_()
00022 : f32_1()
00023 , f32_3()
00024 , f64_1()
00025 , f64_3()
00026 , i8_1()
00027 , i8_3()
00028 , u8_1()
00029 , u8_3()
00030 , i32_1()
00031 , i32_3()
00032 , u32_1()
00033 , u32_3()
00034 , s_1()
00035 , s_3()
00036 , b_1()
00037 , b_3()
00038 {
00039 f32_1.assign(0.0);
00040 f32_3.assign(0.0);
00041 f64_1.assign(0.0);
00042 f64_3.assign(0.0);
00043 i8_1.assign(0);
00044 i8_3.assign(0);
00045 u8_1.assign(0);
00046 u8_3.assign(0);
00047 i32_1.assign(0);
00048 i32_3.assign(0);
00049 u32_1.assign(0);
00050 u32_3.assign(0);
00051 b_1.assign(false);
00052 b_3.assign(false);
00053 }
00054
00055 TestFixedArray_(const ContainerAllocator& _alloc)
00056 : f32_1()
00057 , f32_3()
00058 , f64_1()
00059 , f64_3()
00060 , i8_1()
00061 , i8_3()
00062 , u8_1()
00063 , u8_3()
00064 , i32_1()
00065 , i32_3()
00066 , u32_1()
00067 , u32_3()
00068 , s_1()
00069 , s_3()
00070 , b_1()
00071 , b_3()
00072 {
00073 f32_1.assign(0.0);
00074 f32_3.assign(0.0);
00075 f64_1.assign(0.0);
00076 f64_3.assign(0.0);
00077 i8_1.assign(0);
00078 i8_3.assign(0);
00079 u8_1.assign(0);
00080 u8_3.assign(0);
00081 i32_1.assign(0);
00082 i32_3.assign(0);
00083 u32_1.assign(0);
00084 u32_3.assign(0);
00085 s_1.assign(std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > (_alloc));
00086 s_3.assign(std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > (_alloc));
00087 b_1.assign(false);
00088 b_3.assign(false);
00089 }
00090
00091 typedef boost::array<float, 1> _f32_1_type;
00092 boost::array<float, 1> f32_1;
00093
00094 typedef boost::array<float, 3> _f32_3_type;
00095 boost::array<float, 3> f32_3;
00096
00097 typedef boost::array<double, 1> _f64_1_type;
00098 boost::array<double, 1> f64_1;
00099
00100 typedef boost::array<double, 3> _f64_3_type;
00101 boost::array<double, 3> f64_3;
00102
00103 typedef boost::array<int8_t, 1> _i8_1_type;
00104 boost::array<int8_t, 1> i8_1;
00105
00106 typedef boost::array<int8_t, 3> _i8_3_type;
00107 boost::array<int8_t, 3> i8_3;
00108
00109 typedef boost::array<uint8_t, 1> _u8_1_type;
00110 boost::array<uint8_t, 1> u8_1;
00111
00112 typedef boost::array<uint8_t, 3> _u8_3_type;
00113 boost::array<uint8_t, 3> u8_3;
00114
00115 typedef boost::array<int32_t, 1> _i32_1_type;
00116 boost::array<int32_t, 1> i32_1;
00117
00118 typedef boost::array<int32_t, 3> _i32_3_type;
00119 boost::array<int32_t, 3> i32_3;
00120
00121 typedef boost::array<uint32_t, 1> _u32_1_type;
00122 boost::array<uint32_t, 1> u32_1;
00123
00124 typedef boost::array<uint32_t, 3> _u32_3_type;
00125 boost::array<uint32_t, 3> u32_3;
00126
00127 typedef boost::array<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , 1> _s_1_type;
00128 boost::array<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , 1> s_1;
00129
00130 typedef boost::array<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , 3> _s_3_type;
00131 boost::array<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , 3> s_3;
00132
00133 typedef boost::array<uint8_t, 1> _b_1_type;
00134 boost::array<uint8_t, 1> b_1;
00135
00136 typedef boost::array<uint8_t, 3> _b_3_type;
00137 boost::array<uint8_t, 3> b_3;
00138
00139
00140 ROS_DEPRECATED uint32_t get_f32_1_size() const { return (uint32_t)f32_1.size(); }
00141 ROS_DEPRECATED uint32_t get_f32_3_size() const { return (uint32_t)f32_3.size(); }
00142 ROS_DEPRECATED uint32_t get_f64_1_size() const { return (uint32_t)f64_1.size(); }
00143 ROS_DEPRECATED uint32_t get_f64_3_size() const { return (uint32_t)f64_3.size(); }
00144 ROS_DEPRECATED uint32_t get_i8_1_size() const { return (uint32_t)i8_1.size(); }
00145 ROS_DEPRECATED uint32_t get_i8_3_size() const { return (uint32_t)i8_3.size(); }
00146 ROS_DEPRECATED uint32_t get_u8_1_size() const { return (uint32_t)u8_1.size(); }
00147 ROS_DEPRECATED uint32_t get_u8_3_size() const { return (uint32_t)u8_3.size(); }
00148 ROS_DEPRECATED uint32_t get_i32_1_size() const { return (uint32_t)i32_1.size(); }
00149 ROS_DEPRECATED uint32_t get_i32_3_size() const { return (uint32_t)i32_3.size(); }
00150 ROS_DEPRECATED uint32_t get_u32_1_size() const { return (uint32_t)u32_1.size(); }
00151 ROS_DEPRECATED uint32_t get_u32_3_size() const { return (uint32_t)u32_3.size(); }
00152 ROS_DEPRECATED uint32_t get_s_1_size() const { return (uint32_t)s_1.size(); }
00153 ROS_DEPRECATED uint32_t get_s_3_size() const { return (uint32_t)s_3.size(); }
00154 ROS_DEPRECATED uint32_t get_b_1_size() const { return (uint32_t)b_1.size(); }
00155 ROS_DEPRECATED uint32_t get_b_3_size() const { return (uint32_t)b_3.size(); }
00156 private:
00157 static const char* __s_getDataType_() { return "test_rospy/TestFixedArray"; }
00158 public:
00159 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00160
00161 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00162
00163 private:
00164 static const char* __s_getMD5Sum_() { return "1557473dc09f1a01a00123a713c822a7"; }
00165 public:
00166 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00167
00168 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00169
00170 private:
00171 static const char* __s_getMessageDefinition_() { return "float32[1] f32_1\n\
00172 float32[3] f32_3\n\
00173 float64[1] f64_1\n\
00174 float64[3] f64_3\n\
00175 int8[1] i8_1\n\
00176 int8[3] i8_3\n\
00177 uint8[1] u8_1\n\
00178 uint8[3] u8_3\n\
00179 int32[1] i32_1\n\
00180 int32[3] i32_3\n\
00181 uint32[1] u32_1\n\
00182 uint32[3] u32_3\n\
00183 string[1] s_1\n\
00184 string[3] s_3\n\
00185 bool[1] b_1\n\
00186 bool[3] b_3\n\
00187 "; }
00188 public:
00189 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00190
00191 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00192
00193 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00194 {
00195 ros::serialization::OStream stream(write_ptr, 1000000000);
00196 ros::serialization::serialize(stream, f32_1);
00197 ros::serialization::serialize(stream, f32_3);
00198 ros::serialization::serialize(stream, f64_1);
00199 ros::serialization::serialize(stream, f64_3);
00200 ros::serialization::serialize(stream, i8_1);
00201 ros::serialization::serialize(stream, i8_3);
00202 ros::serialization::serialize(stream, u8_1);
00203 ros::serialization::serialize(stream, u8_3);
00204 ros::serialization::serialize(stream, i32_1);
00205 ros::serialization::serialize(stream, i32_3);
00206 ros::serialization::serialize(stream, u32_1);
00207 ros::serialization::serialize(stream, u32_3);
00208 ros::serialization::serialize(stream, s_1);
00209 ros::serialization::serialize(stream, s_3);
00210 ros::serialization::serialize(stream, b_1);
00211 ros::serialization::serialize(stream, b_3);
00212 return stream.getData();
00213 }
00214
00215 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00216 {
00217 ros::serialization::IStream stream(read_ptr, 1000000000);
00218 ros::serialization::deserialize(stream, f32_1);
00219 ros::serialization::deserialize(stream, f32_3);
00220 ros::serialization::deserialize(stream, f64_1);
00221 ros::serialization::deserialize(stream, f64_3);
00222 ros::serialization::deserialize(stream, i8_1);
00223 ros::serialization::deserialize(stream, i8_3);
00224 ros::serialization::deserialize(stream, u8_1);
00225 ros::serialization::deserialize(stream, u8_3);
00226 ros::serialization::deserialize(stream, i32_1);
00227 ros::serialization::deserialize(stream, i32_3);
00228 ros::serialization::deserialize(stream, u32_1);
00229 ros::serialization::deserialize(stream, u32_3);
00230 ros::serialization::deserialize(stream, s_1);
00231 ros::serialization::deserialize(stream, s_3);
00232 ros::serialization::deserialize(stream, b_1);
00233 ros::serialization::deserialize(stream, b_3);
00234 return stream.getData();
00235 }
00236
00237 ROS_DEPRECATED virtual uint32_t serializationLength() const
00238 {
00239 uint32_t size = 0;
00240 size += ros::serialization::serializationLength(f32_1);
00241 size += ros::serialization::serializationLength(f32_3);
00242 size += ros::serialization::serializationLength(f64_1);
00243 size += ros::serialization::serializationLength(f64_3);
00244 size += ros::serialization::serializationLength(i8_1);
00245 size += ros::serialization::serializationLength(i8_3);
00246 size += ros::serialization::serializationLength(u8_1);
00247 size += ros::serialization::serializationLength(u8_3);
00248 size += ros::serialization::serializationLength(i32_1);
00249 size += ros::serialization::serializationLength(i32_3);
00250 size += ros::serialization::serializationLength(u32_1);
00251 size += ros::serialization::serializationLength(u32_3);
00252 size += ros::serialization::serializationLength(s_1);
00253 size += ros::serialization::serializationLength(s_3);
00254 size += ros::serialization::serializationLength(b_1);
00255 size += ros::serialization::serializationLength(b_3);
00256 return size;
00257 }
00258
00259 typedef boost::shared_ptr< ::test_rospy::TestFixedArray_<ContainerAllocator> > Ptr;
00260 typedef boost::shared_ptr< ::test_rospy::TestFixedArray_<ContainerAllocator> const> ConstPtr;
00261 };
00262 typedef ::test_rospy::TestFixedArray_<std::allocator<void> > TestFixedArray;
00263
00264 typedef boost::shared_ptr< ::test_rospy::TestFixedArray> TestFixedArrayPtr;
00265 typedef boost::shared_ptr< ::test_rospy::TestFixedArray const> TestFixedArrayConstPtr;
00266
00267
00268 template<typename ContainerAllocator>
00269 std::ostream& operator<<(std::ostream& s, const ::test_rospy::TestFixedArray_<ContainerAllocator> & v)
00270 {
00271 ros::message_operations::Printer< ::test_rospy::TestFixedArray_<ContainerAllocator> >::stream(s, "", v);
00272 return s;}
00273
00274 }
00275
00276 namespace ros
00277 {
00278 namespace message_traits
00279 {
00280 template<class ContainerAllocator>
00281 struct MD5Sum< ::test_rospy::TestFixedArray_<ContainerAllocator> > {
00282 static const char* value()
00283 {
00284 return "1557473dc09f1a01a00123a713c822a7";
00285 }
00286
00287 static const char* value(const ::test_rospy::TestFixedArray_<ContainerAllocator> &) { return value(); }
00288 static const uint64_t static_value1 = 0x1557473dc09f1a01ULL;
00289 static const uint64_t static_value2 = 0xa00123a713c822a7ULL;
00290 };
00291
00292 template<class ContainerAllocator>
00293 struct DataType< ::test_rospy::TestFixedArray_<ContainerAllocator> > {
00294 static const char* value()
00295 {
00296 return "test_rospy/TestFixedArray";
00297 }
00298
00299 static const char* value(const ::test_rospy::TestFixedArray_<ContainerAllocator> &) { return value(); }
00300 };
00301
00302 template<class ContainerAllocator>
00303 struct Definition< ::test_rospy::TestFixedArray_<ContainerAllocator> > {
00304 static const char* value()
00305 {
00306 return "float32[1] f32_1\n\
00307 float32[3] f32_3\n\
00308 float64[1] f64_1\n\
00309 float64[3] f64_3\n\
00310 int8[1] i8_1\n\
00311 int8[3] i8_3\n\
00312 uint8[1] u8_1\n\
00313 uint8[3] u8_3\n\
00314 int32[1] i32_1\n\
00315 int32[3] i32_3\n\
00316 uint32[1] u32_1\n\
00317 uint32[3] u32_3\n\
00318 string[1] s_1\n\
00319 string[3] s_3\n\
00320 bool[1] b_1\n\
00321 bool[3] b_3\n\
00322 ";
00323 }
00324
00325 static const char* value(const ::test_rospy::TestFixedArray_<ContainerAllocator> &) { return value(); }
00326 };
00327
00328 }
00329 }
00330
00331 namespace ros
00332 {
00333 namespace serialization
00334 {
00335
00336 template<class ContainerAllocator> struct Serializer< ::test_rospy::TestFixedArray_<ContainerAllocator> >
00337 {
00338 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00339 {
00340 stream.next(m.f32_1);
00341 stream.next(m.f32_3);
00342 stream.next(m.f64_1);
00343 stream.next(m.f64_3);
00344 stream.next(m.i8_1);
00345 stream.next(m.i8_3);
00346 stream.next(m.u8_1);
00347 stream.next(m.u8_3);
00348 stream.next(m.i32_1);
00349 stream.next(m.i32_3);
00350 stream.next(m.u32_1);
00351 stream.next(m.u32_3);
00352 stream.next(m.s_1);
00353 stream.next(m.s_3);
00354 stream.next(m.b_1);
00355 stream.next(m.b_3);
00356 }
00357
00358 ROS_DECLARE_ALLINONE_SERIALIZER;
00359 };
00360 }
00361 }
00362
00363 namespace ros
00364 {
00365 namespace message_operations
00366 {
00367
00368 template<class ContainerAllocator>
00369 struct Printer< ::test_rospy::TestFixedArray_<ContainerAllocator> >
00370 {
00371 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rospy::TestFixedArray_<ContainerAllocator> & v)
00372 {
00373 s << indent << "f32_1[]" << std::endl;
00374 for (size_t i = 0; i < v.f32_1.size(); ++i)
00375 {
00376 s << indent << " f32_1[" << i << "]: ";
00377 Printer<float>::stream(s, indent + " ", v.f32_1[i]);
00378 }
00379 s << indent << "f32_3[]" << std::endl;
00380 for (size_t i = 0; i < v.f32_3.size(); ++i)
00381 {
00382 s << indent << " f32_3[" << i << "]: ";
00383 Printer<float>::stream(s, indent + " ", v.f32_3[i]);
00384 }
00385 s << indent << "f64_1[]" << std::endl;
00386 for (size_t i = 0; i < v.f64_1.size(); ++i)
00387 {
00388 s << indent << " f64_1[" << i << "]: ";
00389 Printer<double>::stream(s, indent + " ", v.f64_1[i]);
00390 }
00391 s << indent << "f64_3[]" << std::endl;
00392 for (size_t i = 0; i < v.f64_3.size(); ++i)
00393 {
00394 s << indent << " f64_3[" << i << "]: ";
00395 Printer<double>::stream(s, indent + " ", v.f64_3[i]);
00396 }
00397 s << indent << "i8_1[]" << std::endl;
00398 for (size_t i = 0; i < v.i8_1.size(); ++i)
00399 {
00400 s << indent << " i8_1[" << i << "]: ";
00401 Printer<int8_t>::stream(s, indent + " ", v.i8_1[i]);
00402 }
00403 s << indent << "i8_3[]" << std::endl;
00404 for (size_t i = 0; i < v.i8_3.size(); ++i)
00405 {
00406 s << indent << " i8_3[" << i << "]: ";
00407 Printer<int8_t>::stream(s, indent + " ", v.i8_3[i]);
00408 }
00409 s << indent << "u8_1[]" << std::endl;
00410 for (size_t i = 0; i < v.u8_1.size(); ++i)
00411 {
00412 s << indent << " u8_1[" << i << "]: ";
00413 Printer<uint8_t>::stream(s, indent + " ", v.u8_1[i]);
00414 }
00415 s << indent << "u8_3[]" << std::endl;
00416 for (size_t i = 0; i < v.u8_3.size(); ++i)
00417 {
00418 s << indent << " u8_3[" << i << "]: ";
00419 Printer<uint8_t>::stream(s, indent + " ", v.u8_3[i]);
00420 }
00421 s << indent << "i32_1[]" << std::endl;
00422 for (size_t i = 0; i < v.i32_1.size(); ++i)
00423 {
00424 s << indent << " i32_1[" << i << "]: ";
00425 Printer<int32_t>::stream(s, indent + " ", v.i32_1[i]);
00426 }
00427 s << indent << "i32_3[]" << std::endl;
00428 for (size_t i = 0; i < v.i32_3.size(); ++i)
00429 {
00430 s << indent << " i32_3[" << i << "]: ";
00431 Printer<int32_t>::stream(s, indent + " ", v.i32_3[i]);
00432 }
00433 s << indent << "u32_1[]" << std::endl;
00434 for (size_t i = 0; i < v.u32_1.size(); ++i)
00435 {
00436 s << indent << " u32_1[" << i << "]: ";
00437 Printer<uint32_t>::stream(s, indent + " ", v.u32_1[i]);
00438 }
00439 s << indent << "u32_3[]" << std::endl;
00440 for (size_t i = 0; i < v.u32_3.size(); ++i)
00441 {
00442 s << indent << " u32_3[" << i << "]: ";
00443 Printer<uint32_t>::stream(s, indent + " ", v.u32_3[i]);
00444 }
00445 s << indent << "s_1[]" << std::endl;
00446 for (size_t i = 0; i < v.s_1.size(); ++i)
00447 {
00448 s << indent << " s_1[" << i << "]: ";
00449 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.s_1[i]);
00450 }
00451 s << indent << "s_3[]" << std::endl;
00452 for (size_t i = 0; i < v.s_3.size(); ++i)
00453 {
00454 s << indent << " s_3[" << i << "]: ";
00455 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.s_3[i]);
00456 }
00457 s << indent << "b_1[]" << std::endl;
00458 for (size_t i = 0; i < v.b_1.size(); ++i)
00459 {
00460 s << indent << " b_1[" << i << "]: ";
00461 Printer<uint8_t>::stream(s, indent + " ", v.b_1[i]);
00462 }
00463 s << indent << "b_3[]" << std::endl;
00464 for (size_t i = 0; i < v.b_3.size(); ++i)
00465 {
00466 s << indent << " b_3[" << i << "]: ";
00467 Printer<uint8_t>::stream(s, indent + " ", v.b_3[i]);
00468 }
00469 }
00470 };
00471
00472
00473 }
00474 }
00475
00476 #endif // TEST_ROSPY_MESSAGE_TESTFIXEDARRAY_H
00477