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