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