00001
00002 #ifndef COB_SOUND_MESSAGE_SAYGOAL_H
00003 #define COB_SOUND_MESSAGE_SAYGOAL_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/String.h"
00014
00015 namespace cob_sound
00016 {
00017 template <class ContainerAllocator>
00018 struct SayGoal_ : public ros::Message
00019 {
00020 typedef SayGoal_<ContainerAllocator> Type;
00021
00022 SayGoal_()
00023 : text()
00024 {
00025 }
00026
00027 SayGoal_(const ContainerAllocator& _alloc)
00028 : text(_alloc)
00029 {
00030 }
00031
00032 typedef ::std_msgs::String_<ContainerAllocator> _text_type;
00033 ::std_msgs::String_<ContainerAllocator> text;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "cob_sound/SayGoal"; }
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 "7fb91077b93c329c9eeaea1c488c03e0"; }
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 "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00052 # goal\n\
00053 std_msgs/String text\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: std_msgs/String\n\
00057 string data\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, text);
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, text);
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(text);
00083 return size;
00084 }
00085
00086 typedef boost::shared_ptr< ::cob_sound::SayGoal_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::cob_sound::SayGoal_<ContainerAllocator> const> ConstPtr;
00088 };
00089 typedef ::cob_sound::SayGoal_<std::allocator<void> > SayGoal;
00090
00091 typedef boost::shared_ptr< ::cob_sound::SayGoal> SayGoalPtr;
00092 typedef boost::shared_ptr< ::cob_sound::SayGoal const> SayGoalConstPtr;
00093
00094
00095 template<typename ContainerAllocator>
00096 std::ostream& operator<<(std::ostream& s, const ::cob_sound::SayGoal_<ContainerAllocator> & v)
00097 {
00098 ros::message_operations::Printer< ::cob_sound::SayGoal_<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< ::cob_sound::SayGoal_<ContainerAllocator> > {
00109 static const char* value()
00110 {
00111 return "7fb91077b93c329c9eeaea1c488c03e0";
00112 }
00113
00114 static const char* value(const ::cob_sound::SayGoal_<ContainerAllocator> &) { return value(); }
00115 static const uint64_t static_value1 = 0x7fb91077b93c329cULL;
00116 static const uint64_t static_value2 = 0x9eeaea1c488c03e0ULL;
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct DataType< ::cob_sound::SayGoal_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "cob_sound/SayGoal";
00124 }
00125
00126 static const char* value(const ::cob_sound::SayGoal_<ContainerAllocator> &) { return value(); }
00127 };
00128
00129 template<class ContainerAllocator>
00130 struct Definition< ::cob_sound::SayGoal_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00134 # goal\n\
00135 std_msgs/String text\n\
00136 \n\
00137 ================================================================================\n\
00138 MSG: std_msgs/String\n\
00139 string data\n\
00140 \n\
00141 ";
00142 }
00143
00144 static const char* value(const ::cob_sound::SayGoal_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::cob_sound::SayGoal_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.text);
00160 }
00161
00162 ROS_DECLARE_ALLINONE_SERIALIZER;
00163 };
00164 }
00165 }
00166
00167 namespace ros
00168 {
00169 namespace message_operations
00170 {
00171
00172 template<class ContainerAllocator>
00173 struct Printer< ::cob_sound::SayGoal_<ContainerAllocator> >
00174 {
00175 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_sound::SayGoal_<ContainerAllocator> & v)
00176 {
00177 s << indent << "text: ";
00178 s << std::endl;
00179 Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + " ", v.text);
00180 }
00181 };
00182
00183
00184 }
00185 }
00186
00187 #endif // COB_SOUND_MESSAGE_SAYGOAL_H
00188