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