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