Project: bml_msgs License: BSD
Dependencies:
None Used by: |
bml_msgs/msg_gen/cpp/include/bml_msgs/BMLEmit.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/BMLEmit.msg */ 00002 #ifndef BML_MSGS_MESSAGE_BMLEMIT_H 00003 #define BML_MSGS_MESSAGE_BMLEMIT_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 00015 namespace bml_msgs 00016 { 00017 template <class ContainerAllocator> 00018 struct BMLEmit_ : public ros::Message 00019 { 00020 typedef BMLEmit_<ContainerAllocator> Type; 00021 00022 BMLEmit_() 00023 : behavior() 00024 , event() 00025 , body() 00026 { 00027 } 00028 00029 BMLEmit_(const ContainerAllocator& _alloc) 00030 : behavior(_alloc) 00031 , event(_alloc) 00032 , body(_alloc) 00033 { 00034 } 00035 00036 typedef ::bml_msgs::Behavior_<ContainerAllocator> _behavior_type; 00037 ::bml_msgs::Behavior_<ContainerAllocator> behavior; 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _event_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > event; 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _body_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > body; 00044 00045 00046 private: 00047 static const char* __s_getDataType_() { return "bml_msgs/BMLEmit"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00050 00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00052 00053 private: 00054 static const char* __s_getMD5Sum_() { return "972f100070d9c7314a142e9cbceba41c"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00057 00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00059 00060 private: 00061 static const char* __s_getMessageDefinition_() { return "# fields that the emit behaviors fire upon\n\ 00062 Behavior behavior\n\ 00063 string event\n\ 00064 string body\n\ 00065 \n\ 00066 ================================================================================\n\ 00067 MSG: bml_msgs/Behavior\n\ 00068 # this message type contains the information for basic behavior types\n\ 00069 \n\ 00070 #constants for the synch point\n\ 00071 uint8 START=0\n\ 00072 uint8 READY=1\n\ 00073 uint8 STROKE_START=2\n\ 00074 uint8 STROKE=3\n\ 00075 uint8 STROKE_END=4\n\ 00076 uint8 RELAX=5\n\ 00077 uint8 END=6\n\ 00078 \n\ 00079 # the fields\n\ 00080 string id\n\ 00081 uint8 synchPoint\n\ 00082 \n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, behavior); 00093 ros::serialization::serialize(stream, event); 00094 ros::serialization::serialize(stream, body); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00099 { 00100 ros::serialization::IStream stream(read_ptr, 1000000000); 00101 ros::serialization::deserialize(stream, behavior); 00102 ros::serialization::deserialize(stream, event); 00103 ros::serialization::deserialize(stream, body); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint32_t serializationLength() const 00108 { 00109 uint32_t size = 0; 00110 size += ros::serialization::serializationLength(behavior); 00111 size += ros::serialization::serializationLength(event); 00112 size += ros::serialization::serializationLength(body); 00113 return size; 00114 } 00115 00116 typedef boost::shared_ptr< ::bml_msgs::BMLEmit_<ContainerAllocator> > Ptr; 00117 typedef boost::shared_ptr< ::bml_msgs::BMLEmit_<ContainerAllocator> const> ConstPtr; 00118 }; // struct BMLEmit 00119 typedef ::bml_msgs::BMLEmit_<std::allocator<void> > BMLEmit; 00120 00121 typedef boost::shared_ptr< ::bml_msgs::BMLEmit> BMLEmitPtr; 00122 typedef boost::shared_ptr< ::bml_msgs::BMLEmit const> BMLEmitConstPtr; 00123 00124 00125 template<typename ContainerAllocator> 00126 std::ostream& operator<<(std::ostream& s, const ::bml_msgs::BMLEmit_<ContainerAllocator> & v) 00127 { 00128 ros::message_operations::Printer< ::bml_msgs::BMLEmit_<ContainerAllocator> >::stream(s, "", v); 00129 return s;} 00130 00131 } // namespace bml_msgs 00132 00133 namespace ros 00134 { 00135 namespace message_traits 00136 { 00137 template<class ContainerAllocator> 00138 struct MD5Sum< ::bml_msgs::BMLEmit_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "972f100070d9c7314a142e9cbceba41c"; 00142 } 00143 00144 static const char* value(const ::bml_msgs::BMLEmit_<ContainerAllocator> &) { return value(); } 00145 static const uint64_t static_value1 = 0x972f100070d9c731ULL; 00146 static const uint64_t static_value2 = 0x4a142e9cbceba41cULL; 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct DataType< ::bml_msgs::BMLEmit_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "bml_msgs/BMLEmit"; 00154 } 00155 00156 static const char* value(const ::bml_msgs::BMLEmit_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct Definition< ::bml_msgs::BMLEmit_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "# fields that the emit behaviors fire upon\n\ 00164 Behavior behavior\n\ 00165 string event\n\ 00166 string body\n\ 00167 \n\ 00168 ================================================================================\n\ 00169 MSG: bml_msgs/Behavior\n\ 00170 # this message type contains the information for basic behavior types\n\ 00171 \n\ 00172 #constants for the synch point\n\ 00173 uint8 START=0\n\ 00174 uint8 READY=1\n\ 00175 uint8 STROKE_START=2\n\ 00176 uint8 STROKE=3\n\ 00177 uint8 STROKE_END=4\n\ 00178 uint8 RELAX=5\n\ 00179 uint8 END=6\n\ 00180 \n\ 00181 # the fields\n\ 00182 string id\n\ 00183 uint8 synchPoint\n\ 00184 \n\ 00185 "; 00186 } 00187 00188 static const char* value(const ::bml_msgs::BMLEmit_<ContainerAllocator> &) { return value(); } 00189 }; 00190 00191 } // namespace message_traits 00192 } // namespace ros 00193 00194 namespace ros 00195 { 00196 namespace serialization 00197 { 00198 00199 template<class ContainerAllocator> struct Serializer< ::bml_msgs::BMLEmit_<ContainerAllocator> > 00200 { 00201 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00202 { 00203 stream.next(m.behavior); 00204 stream.next(m.event); 00205 stream.next(m.body); 00206 } 00207 00208 ROS_DECLARE_ALLINONE_SERIALIZER; 00209 }; // struct BMLEmit_ 00210 } // namespace serialization 00211 } // namespace ros 00212 00213 namespace ros 00214 { 00215 namespace message_operations 00216 { 00217 00218 template<class ContainerAllocator> 00219 struct Printer< ::bml_msgs::BMLEmit_<ContainerAllocator> > 00220 { 00221 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bml_msgs::BMLEmit_<ContainerAllocator> & v) 00222 { 00223 s << indent << "behavior: "; 00224 s << std::endl; 00225 Printer< ::bml_msgs::Behavior_<ContainerAllocator> >::stream(s, indent + " ", v.behavior); 00226 s << indent << "event: "; 00227 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.event); 00228 s << indent << "body: "; 00229 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.body); 00230 } 00231 }; 00232 00233 00234 } // namespace message_operations 00235 } // namespace ros 00236 00237 #endif // BML_MSGS_MESSAGE_BMLEMIT_H 00238 |