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