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