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