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