Project: bml_msgs License: BSD
Dependencies:
None Used by: |
bml_msgs/msg_gen/cpp/include/bml_msgs/Entity.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/Entity.msg */ 00002 #ifndef BML_MSGS_MESSAGE_ENTITY_H 00003 #define BML_MSGS_MESSAGE_ENTITY_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 Entity_ : public ros::Message 00018 { 00019 typedef Entity_<ContainerAllocator> Type; 00020 00021 Entity_() 00022 : type(0) 00023 , id() 00024 { 00025 } 00026 00027 Entity_(const ContainerAllocator& _alloc) 00028 : type(0) 00029 , id(_alloc) 00030 { 00031 } 00032 00033 typedef uint8_t _type_type; 00034 uint8_t type; 00035 00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type; 00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > id; 00038 00039 enum { OBJECT = 0 }; 00040 enum { HAND = 1 }; 00041 enum { FACE = 2 }; 00042 enum { QUADRANT = 3 }; 00043 enum { UNKNOWN = 4 }; 00044 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > UP_LEFT; 00045 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > UP_FRONT; 00046 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > UP_RIGHT; 00047 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > STRAIGHT_LEFT; 00048 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > STRAIGHT_FRONT; 00049 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > STRAIGHT_RIGHT; 00050 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DOWN_LEFT; 00051 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DOWN_FRONT; 00052 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DOWN_RIGHT; 00053 00054 private: 00055 static const char* __s_getDataType_() { return "bml_msgs/Entity"; } 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 "b906d5c02b3b1ce0c6f8a7c2a7f24b2c"; } 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 "#The following constants represent all possible salient objects\n\ 00070 uint8 OBJECT=0\n\ 00071 uint8 HAND=1\n\ 00072 uint8 FACE=2\n\ 00073 uint8 QUADRANT=3\n\ 00074 uint8 UNKNOWN=4\n\ 00075 \n\ 00076 # Constants for the upper quadrants\n\ 00077 string UP_LEFT=UP_LEFT\n\ 00078 string UP_FRONT=UP_FRONT\n\ 00079 string UP_RIGHT=UP_RIGHT\n\ 00080 \n\ 00081 # Constants for the middle quadrants\n\ 00082 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00083 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00084 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00085 \n\ 00086 # Constants for the lower quadrants\n\ 00087 string DOWN_LEFT=DOWN_LEFT\n\ 00088 string DOWN_FRONT=DOWN_FRONT\n\ 00089 string DOWN_RIGHT=DOWN_RIGHT\n\ 00090 \n\ 00091 #there is just one field for type\n\ 00092 uint8 type\n\ 00093 \n\ 00094 # The id of the object\n\ 00095 string id\n\ 00096 \n\ 00097 "; } 00098 public: 00099 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00104 { 00105 ros::serialization::OStream stream(write_ptr, 1000000000); 00106 ros::serialization::serialize(stream, type); 00107 ros::serialization::serialize(stream, id); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00112 { 00113 ros::serialization::IStream stream(read_ptr, 1000000000); 00114 ros::serialization::deserialize(stream, type); 00115 ros::serialization::deserialize(stream, id); 00116 return stream.getData(); 00117 } 00118 00119 ROS_DEPRECATED virtual uint32_t serializationLength() const 00120 { 00121 uint32_t size = 0; 00122 size += ros::serialization::serializationLength(type); 00123 size += ros::serialization::serializationLength(id); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::bml_msgs::Entity_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::bml_msgs::Entity_<ContainerAllocator> const> ConstPtr; 00129 }; // struct Entity 00130 typedef ::bml_msgs::Entity_<std::allocator<void> > Entity; 00131 00132 typedef boost::shared_ptr< ::bml_msgs::Entity> EntityPtr; 00133 typedef boost::shared_ptr< ::bml_msgs::Entity const> EntityConstPtr; 00134 00135 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::UP_LEFT = "UP_LEFT"; 00136 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::UP_FRONT = "UP_FRONT"; 00137 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::UP_RIGHT = "UP_RIGHT"; 00138 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::STRAIGHT_LEFT = "STRAIGHT_LEFT"; 00139 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::STRAIGHT_FRONT = "STRAIGHT_FRONT"; 00140 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::STRAIGHT_RIGHT = "STRAIGHT_RIGHT"; 00141 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::DOWN_LEFT = "DOWN_LEFT"; 00142 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::DOWN_FRONT = "DOWN_FRONT"; 00143 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Entity_<ContainerAllocator>::DOWN_RIGHT = "DOWN_RIGHT"; 00144 00145 template<typename ContainerAllocator> 00146 std::ostream& operator<<(std::ostream& s, const ::bml_msgs::Entity_<ContainerAllocator> & v) 00147 { 00148 ros::message_operations::Printer< ::bml_msgs::Entity_<ContainerAllocator> >::stream(s, "", v); 00149 return s;} 00150 00151 } // namespace bml_msgs 00152 00153 namespace ros 00154 { 00155 namespace message_traits 00156 { 00157 template<class ContainerAllocator> 00158 struct MD5Sum< ::bml_msgs::Entity_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "b906d5c02b3b1ce0c6f8a7c2a7f24b2c"; 00162 } 00163 00164 static const char* value(const ::bml_msgs::Entity_<ContainerAllocator> &) { return value(); } 00165 static const uint64_t static_value1 = 0xb906d5c02b3b1ce0ULL; 00166 static const uint64_t static_value2 = 0xc6f8a7c2a7f24b2cULL; 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct DataType< ::bml_msgs::Entity_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "bml_msgs/Entity"; 00174 } 00175 00176 static const char* value(const ::bml_msgs::Entity_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 template<class ContainerAllocator> 00180 struct Definition< ::bml_msgs::Entity_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "#The following constants represent all possible salient objects\n\ 00184 uint8 OBJECT=0\n\ 00185 uint8 HAND=1\n\ 00186 uint8 FACE=2\n\ 00187 uint8 QUADRANT=3\n\ 00188 uint8 UNKNOWN=4\n\ 00189 \n\ 00190 # Constants for the upper quadrants\n\ 00191 string UP_LEFT=UP_LEFT\n\ 00192 string UP_FRONT=UP_FRONT\n\ 00193 string UP_RIGHT=UP_RIGHT\n\ 00194 \n\ 00195 # Constants for the middle quadrants\n\ 00196 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00197 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00198 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00199 \n\ 00200 # Constants for the lower quadrants\n\ 00201 string DOWN_LEFT=DOWN_LEFT\n\ 00202 string DOWN_FRONT=DOWN_FRONT\n\ 00203 string DOWN_RIGHT=DOWN_RIGHT\n\ 00204 \n\ 00205 #there is just one field for type\n\ 00206 uint8 type\n\ 00207 \n\ 00208 # The id of the object\n\ 00209 string id\n\ 00210 \n\ 00211 "; 00212 } 00213 00214 static const char* value(const ::bml_msgs::Entity_<ContainerAllocator> &) { return value(); } 00215 }; 00216 00217 } // namespace message_traits 00218 } // namespace ros 00219 00220 namespace ros 00221 { 00222 namespace serialization 00223 { 00224 00225 template<class ContainerAllocator> struct Serializer< ::bml_msgs::Entity_<ContainerAllocator> > 00226 { 00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00228 { 00229 stream.next(m.type); 00230 stream.next(m.id); 00231 } 00232 00233 ROS_DECLARE_ALLINONE_SERIALIZER; 00234 }; // struct Entity_ 00235 } // namespace serialization 00236 } // namespace ros 00237 00238 namespace ros 00239 { 00240 namespace message_operations 00241 { 00242 00243 template<class ContainerAllocator> 00244 struct Printer< ::bml_msgs::Entity_<ContainerAllocator> > 00245 { 00246 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bml_msgs::Entity_<ContainerAllocator> & v) 00247 { 00248 s << indent << "type: "; 00249 Printer<uint8_t>::stream(s, indent + " ", v.type); 00250 s << indent << "id: "; 00251 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.id); 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // BML_MSGS_MESSAGE_ENTITY_H 00260 |