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