Project: bml_msgs License: BSD
Dependencies:
None Used by: |
bml_msgs/msg_gen/cpp/include/bml_msgs/BehaviorResult.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/BehaviorResult.msg */ 00002 #ifndef BML_MSGS_MESSAGE_BEHAVIORRESULT_H 00003 #define BML_MSGS_MESSAGE_BEHAVIORRESULT_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 "bml_msgs/Behavior.h" 00014 #include "bml_msgs/Flag.h" 00015 00016 namespace bml_msgs 00017 { 00018 template <class ContainerAllocator> 00019 struct BehaviorResult_ : public ros::Message 00020 { 00021 typedef BehaviorResult_<ContainerAllocator> Type; 00022 00023 BehaviorResult_() 00024 : behavior() 00025 , result() 00026 { 00027 } 00028 00029 BehaviorResult_(const ContainerAllocator& _alloc) 00030 : behavior(_alloc) 00031 , result(_alloc) 00032 { 00033 } 00034 00035 typedef ::bml_msgs::Behavior_<ContainerAllocator> _behavior_type; 00036 ::bml_msgs::Behavior_<ContainerAllocator> behavior; 00037 00038 typedef ::bml_msgs::Flag_<ContainerAllocator> _result_type; 00039 ::bml_msgs::Flag_<ContainerAllocator> result; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "bml_msgs/BehaviorResult"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "a3e9c828e2aecb9c1f250d152dc60b04"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "# this message is used to link a result flag to an id\n\ 00058 Behavior behavior\n\ 00059 Flag result\n\ 00060 \n\ 00061 ================================================================================\n\ 00062 MSG: bml_msgs/Behavior\n\ 00063 # this message type contains the information for basic behavior types\n\ 00064 \n\ 00065 #constants for the synch point\n\ 00066 uint8 START=0\n\ 00067 uint8 READY=1\n\ 00068 uint8 STROKE_START=2\n\ 00069 uint8 STROKE=3\n\ 00070 uint8 STROKE_END=4\n\ 00071 uint8 RELAX=5\n\ 00072 uint8 END=6\n\ 00073 \n\ 00074 # the fields\n\ 00075 string id\n\ 00076 uint8 synchPoint\n\ 00077 \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, behavior); 00122 ros::serialization::serialize(stream, result); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00127 { 00128 ros::serialization::IStream stream(read_ptr, 1000000000); 00129 ros::serialization::deserialize(stream, behavior); 00130 ros::serialization::deserialize(stream, result); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(behavior); 00138 size += ros::serialization::serializationLength(result); 00139 return size; 00140 } 00141 00142 typedef boost::shared_ptr< ::bml_msgs::BehaviorResult_<ContainerAllocator> > Ptr; 00143 typedef boost::shared_ptr< ::bml_msgs::BehaviorResult_<ContainerAllocator> const> ConstPtr; 00144 }; // struct BehaviorResult 00145 typedef ::bml_msgs::BehaviorResult_<std::allocator<void> > BehaviorResult; 00146 00147 typedef boost::shared_ptr< ::bml_msgs::BehaviorResult> BehaviorResultPtr; 00148 typedef boost::shared_ptr< ::bml_msgs::BehaviorResult const> BehaviorResultConstPtr; 00149 00150 00151 template<typename ContainerAllocator> 00152 std::ostream& operator<<(std::ostream& s, const ::bml_msgs::BehaviorResult_<ContainerAllocator> & v) 00153 { 00154 ros::message_operations::Printer< ::bml_msgs::BehaviorResult_<ContainerAllocator> >::stream(s, "", v); 00155 return s;} 00156 00157 } // namespace bml_msgs 00158 00159 namespace ros 00160 { 00161 namespace message_traits 00162 { 00163 template<class ContainerAllocator> 00164 struct MD5Sum< ::bml_msgs::BehaviorResult_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "a3e9c828e2aecb9c1f250d152dc60b04"; 00168 } 00169 00170 static const char* value(const ::bml_msgs::BehaviorResult_<ContainerAllocator> &) { return value(); } 00171 static const uint64_t static_value1 = 0xa3e9c828e2aecb9cULL; 00172 static const uint64_t static_value2 = 0x1f250d152dc60b04ULL; 00173 }; 00174 00175 template<class ContainerAllocator> 00176 struct DataType< ::bml_msgs::BehaviorResult_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "bml_msgs/BehaviorResult"; 00180 } 00181 00182 static const char* value(const ::bml_msgs::BehaviorResult_<ContainerAllocator> &) { return value(); } 00183 }; 00184 00185 template<class ContainerAllocator> 00186 struct Definition< ::bml_msgs::BehaviorResult_<ContainerAllocator> > { 00187 static const char* value() 00188 { 00189 return "# this message is used to link a result flag to an id\n\ 00190 Behavior behavior\n\ 00191 Flag result\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: bml_msgs/Behavior\n\ 00195 # this message type contains the information for basic behavior types\n\ 00196 \n\ 00197 #constants for the synch point\n\ 00198 uint8 START=0\n\ 00199 uint8 READY=1\n\ 00200 uint8 STROKE_START=2\n\ 00201 uint8 STROKE=3\n\ 00202 uint8 STROKE_END=4\n\ 00203 uint8 RELAX=5\n\ 00204 uint8 END=6\n\ 00205 \n\ 00206 # the fields\n\ 00207 string id\n\ 00208 uint8 synchPoint\n\ 00209 \n\ 00210 ================================================================================\n\ 00211 MSG: bml_msgs/Flag\n\ 00212 # A flag which determines between TRUE and FALSE\n\ 00213 int8 value\n\ 00214 \n\ 00215 # Constant for an invalid value\n\ 00216 int8 INVALID=-1\n\ 00217 \n\ 00218 # Constants which define the values for true\n\ 00219 int8 TRUE=1\n\ 00220 int8 START=1\n\ 00221 int8 BEGIN=1\n\ 00222 int8 SUCCESS=1\n\ 00223 int8 DONE=1\n\ 00224 \n\ 00225 # Constants which define the values for false\n\ 00226 int8 FALSE=0\n\ 00227 int8 STOP=0\n\ 00228 int8 END=0\n\ 00229 int8 FAILURE=0\n\ 00230 int8 NOT_DONE=0\n\ 00231 \n\ 00232 # Constants for response types\n\ 00233 int8 OPTIONAL_RESPONSE=0\n\ 00234 int8 IS_A_RESPONSE=1\n\ 00235 int8 REQUIRES_RESPONSE=2\n\ 00236 int8 BACKCHANNEL=3\n\ 00237 \n\ 00238 # Constants which define the values for the side to use\n\ 00239 int8 NEITHER=0\n\ 00240 int8 LEFT=1\n\ 00241 int8 RIGHT=2\n\ 00242 int8 EITHER=3\n\ 00243 \n\ 00244 "; 00245 } 00246 00247 static const char* value(const ::bml_msgs::BehaviorResult_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 } // namespace message_traits 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace serialization 00256 { 00257 00258 template<class ContainerAllocator> struct Serializer< ::bml_msgs::BehaviorResult_<ContainerAllocator> > 00259 { 00260 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00261 { 00262 stream.next(m.behavior); 00263 stream.next(m.result); 00264 } 00265 00266 ROS_DECLARE_ALLINONE_SERIALIZER; 00267 }; // struct BehaviorResult_ 00268 } // namespace serialization 00269 } // namespace ros 00270 00271 namespace ros 00272 { 00273 namespace message_operations 00274 { 00275 00276 template<class ContainerAllocator> 00277 struct Printer< ::bml_msgs::BehaviorResult_<ContainerAllocator> > 00278 { 00279 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bml_msgs::BehaviorResult_<ContainerAllocator> & v) 00280 { 00281 s << indent << "behavior: "; 00282 s << std::endl; 00283 Printer< ::bml_msgs::Behavior_<ContainerAllocator> >::stream(s, indent + " ", v.behavior); 00284 s << indent << "result: "; 00285 s << std::endl; 00286 Printer< ::bml_msgs::Flag_<ContainerAllocator> >::stream(s, indent + " ", v.result); 00287 } 00288 }; 00289 00290 00291 } // namespace message_operations 00292 } // namespace ros 00293 00294 #endif // BML_MSGS_MESSAGE_BEHAVIORRESULT_H 00295 |