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