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