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