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