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