Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/Speech.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/Speech.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_SPEECH_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_SPEECH_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 "engagement_msgs/ActorID.h" 00014 #include "bml_msgs/Flag.h" 00015 #include "bml_msgs/Flag.h" 00016 00017 namespace engagement_msgs 00018 { 00019 template <class ContainerAllocator> 00020 struct Speech_ : public ros::Message 00021 { 00022 typedef Speech_<ContainerAllocator> Type; 00023 00024 Speech_() 00025 : actor() 00026 , begin() 00027 , response() 00028 { 00029 } 00030 00031 Speech_(const ContainerAllocator& _alloc) 00032 : actor(_alloc) 00033 , begin(_alloc) 00034 , response(_alloc) 00035 { 00036 } 00037 00038 typedef ::engagement_msgs::ActorID_<ContainerAllocator> _actor_type; 00039 ::engagement_msgs::ActorID_<ContainerAllocator> actor; 00040 00041 typedef ::bml_msgs::Flag_<ContainerAllocator> _begin_type; 00042 ::bml_msgs::Flag_<ContainerAllocator> begin; 00043 00044 typedef ::bml_msgs::Flag_<ContainerAllocator> _response_type; 00045 ::bml_msgs::Flag_<ContainerAllocator> response; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "engagement_msgs/Speech"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "8c7d1df4646faab3f0225cf87204bdbc"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# Unique string identifier for the actor who is giving up the floor\n\ 00064 ActorID actor\n\ 00065 \n\ 00066 # A flag which determines between BEGIN and END\n\ 00067 bml_msgs/Flag begin\n\ 00068 \n\ 00069 # Whether this utterance requires a response or not\n\ 00070 bml_msgs/Flag response\n\ 00071 ================================================================================\n\ 00072 MSG: engagement_msgs/ActorID\n\ 00073 # Unique string identifier for the actor\n\ 00074 string id\n\ 00075 \n\ 00076 # Constant to identify the Robot as the actor\n\ 00077 string ROBOT=ROBOT\n\ 00078 ================================================================================\n\ 00079 MSG: bml_msgs/Flag\n\ 00080 # A flag which determines between TRUE and FALSE\n\ 00081 int8 value\n\ 00082 \n\ 00083 # Constant for an invalid value\n\ 00084 int8 INVALID=-1\n\ 00085 \n\ 00086 # Constants which define the values for true\n\ 00087 int8 TRUE=1\n\ 00088 int8 START=1\n\ 00089 int8 BEGIN=1\n\ 00090 int8 SUCCESS=1\n\ 00091 int8 DONE=1\n\ 00092 \n\ 00093 # Constants which define the values for false\n\ 00094 int8 FALSE=0\n\ 00095 int8 STOP=0\n\ 00096 int8 END=0\n\ 00097 int8 FAILURE=0\n\ 00098 int8 NOT_DONE=0\n\ 00099 \n\ 00100 # Constants for response types\n\ 00101 int8 OPTIONAL_RESPONSE=0\n\ 00102 int8 IS_A_RESPONSE=1\n\ 00103 int8 REQUIRES_RESPONSE=2\n\ 00104 int8 BACKCHANNEL=3\n\ 00105 \n\ 00106 # Constants which define the values for the side to use\n\ 00107 int8 NEITHER=0\n\ 00108 int8 LEFT=1\n\ 00109 int8 RIGHT=2\n\ 00110 int8 EITHER=3\n\ 00111 \n\ 00112 "; } 00113 public: 00114 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00115 00116 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00117 00118 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00119 { 00120 ros::serialization::OStream stream(write_ptr, 1000000000); 00121 ros::serialization::serialize(stream, actor); 00122 ros::serialization::serialize(stream, begin); 00123 ros::serialization::serialize(stream, response); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00128 { 00129 ros::serialization::IStream stream(read_ptr, 1000000000); 00130 ros::serialization::deserialize(stream, actor); 00131 ros::serialization::deserialize(stream, begin); 00132 ros::serialization::deserialize(stream, response); 00133 return stream.getData(); 00134 } 00135 00136 ROS_DEPRECATED virtual uint32_t serializationLength() const 00137 { 00138 uint32_t size = 0; 00139 size += ros::serialization::serializationLength(actor); 00140 size += ros::serialization::serializationLength(begin); 00141 size += ros::serialization::serializationLength(response); 00142 return size; 00143 } 00144 00145 typedef boost::shared_ptr< ::engagement_msgs::Speech_<ContainerAllocator> > Ptr; 00146 typedef boost::shared_ptr< ::engagement_msgs::Speech_<ContainerAllocator> const> ConstPtr; 00147 }; // struct Speech 00148 typedef ::engagement_msgs::Speech_<std::allocator<void> > Speech; 00149 00150 typedef boost::shared_ptr< ::engagement_msgs::Speech> SpeechPtr; 00151 typedef boost::shared_ptr< ::engagement_msgs::Speech const> SpeechConstPtr; 00152 00153 00154 template<typename ContainerAllocator> 00155 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::Speech_<ContainerAllocator> & v) 00156 { 00157 ros::message_operations::Printer< ::engagement_msgs::Speech_<ContainerAllocator> >::stream(s, "", v); 00158 return s;} 00159 00160 } // namespace engagement_msgs 00161 00162 namespace ros 00163 { 00164 namespace message_traits 00165 { 00166 template<class ContainerAllocator> 00167 struct MD5Sum< ::engagement_msgs::Speech_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "8c7d1df4646faab3f0225cf87204bdbc"; 00171 } 00172 00173 static const char* value(const ::engagement_msgs::Speech_<ContainerAllocator> &) { return value(); } 00174 static const uint64_t static_value1 = 0x8c7d1df4646faab3ULL; 00175 static const uint64_t static_value2 = 0xf0225cf87204bdbcULL; 00176 }; 00177 00178 template<class ContainerAllocator> 00179 struct DataType< ::engagement_msgs::Speech_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "engagement_msgs/Speech"; 00183 } 00184 00185 static const char* value(const ::engagement_msgs::Speech_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 template<class ContainerAllocator> 00189 struct Definition< ::engagement_msgs::Speech_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "# Unique string identifier for the actor who is giving up the floor\n\ 00193 ActorID actor\n\ 00194 \n\ 00195 # A flag which determines between BEGIN and END\n\ 00196 bml_msgs/Flag begin\n\ 00197 \n\ 00198 # Whether this utterance requires a response or not\n\ 00199 bml_msgs/Flag response\n\ 00200 ================================================================================\n\ 00201 MSG: engagement_msgs/ActorID\n\ 00202 # Unique string identifier for the actor\n\ 00203 string id\n\ 00204 \n\ 00205 # Constant to identify the Robot as the actor\n\ 00206 string ROBOT=ROBOT\n\ 00207 ================================================================================\n\ 00208 MSG: bml_msgs/Flag\n\ 00209 # A flag which determines between TRUE and FALSE\n\ 00210 int8 value\n\ 00211 \n\ 00212 # Constant for an invalid value\n\ 00213 int8 INVALID=-1\n\ 00214 \n\ 00215 # Constants which define the values for true\n\ 00216 int8 TRUE=1\n\ 00217 int8 START=1\n\ 00218 int8 BEGIN=1\n\ 00219 int8 SUCCESS=1\n\ 00220 int8 DONE=1\n\ 00221 \n\ 00222 # Constants which define the values for false\n\ 00223 int8 FALSE=0\n\ 00224 int8 STOP=0\n\ 00225 int8 END=0\n\ 00226 int8 FAILURE=0\n\ 00227 int8 NOT_DONE=0\n\ 00228 \n\ 00229 # Constants for response types\n\ 00230 int8 OPTIONAL_RESPONSE=0\n\ 00231 int8 IS_A_RESPONSE=1\n\ 00232 int8 REQUIRES_RESPONSE=2\n\ 00233 int8 BACKCHANNEL=3\n\ 00234 \n\ 00235 # Constants which define the values for the side to use\n\ 00236 int8 NEITHER=0\n\ 00237 int8 LEFT=1\n\ 00238 int8 RIGHT=2\n\ 00239 int8 EITHER=3\n\ 00240 \n\ 00241 "; 00242 } 00243 00244 static const char* value(const ::engagement_msgs::Speech_<ContainerAllocator> &) { return value(); } 00245 }; 00246 00247 } // namespace message_traits 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace serialization 00253 { 00254 00255 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::Speech_<ContainerAllocator> > 00256 { 00257 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00258 { 00259 stream.next(m.actor); 00260 stream.next(m.begin); 00261 stream.next(m.response); 00262 } 00263 00264 ROS_DECLARE_ALLINONE_SERIALIZER; 00265 }; // struct Speech_ 00266 } // namespace serialization 00267 } // namespace ros 00268 00269 namespace ros 00270 { 00271 namespace message_operations 00272 { 00273 00274 template<class ContainerAllocator> 00275 struct Printer< ::engagement_msgs::Speech_<ContainerAllocator> > 00276 { 00277 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::Speech_<ContainerAllocator> & v) 00278 { 00279 s << indent << "actor: "; 00280 s << std::endl; 00281 Printer< ::engagement_msgs::ActorID_<ContainerAllocator> >::stream(s, indent + " ", v.actor); 00282 s << indent << "begin: "; 00283 s << std::endl; 00284 Printer< ::bml_msgs::Flag_<ContainerAllocator> >::stream(s, indent + " ", v.begin); 00285 s << indent << "response: "; 00286 s << std::endl; 00287 Printer< ::bml_msgs::Flag_<ContainerAllocator> >::stream(s, indent + " ", v.response); 00288 } 00289 }; 00290 00291 00292 } // namespace message_operations 00293 } // namespace ros 00294 00295 #endif // ENGAGEMENT_MSGS_MESSAGE_SPEECH_H 00296 |