Project: bml_msgs License: BSD
Dependencies:
None Used by: |
bml_msgs/msg_gen/cpp/include/bml_msgs/EntityPosition.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/EntityPosition.msg */ 00002 #ifndef BML_MSGS_MESSAGE_ENTITYPOSITION_H 00003 #define BML_MSGS_MESSAGE_ENTITYPOSITION_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/Entity.h" 00014 00015 namespace bml_msgs 00016 { 00017 template <class ContainerAllocator> 00018 struct EntityPosition_ : public ros::Message 00019 { 00020 typedef EntityPosition_<ContainerAllocator> Type; 00021 00022 EntityPosition_() 00023 : entity() 00024 , x(0.0) 00025 , y(0.0) 00026 , z(0.0) 00027 , rotation(0.0) 00028 { 00029 } 00030 00031 EntityPosition_(const ContainerAllocator& _alloc) 00032 : entity(_alloc) 00033 , x(0.0) 00034 , y(0.0) 00035 , z(0.0) 00036 , rotation(0.0) 00037 { 00038 } 00039 00040 typedef ::bml_msgs::Entity_<ContainerAllocator> _entity_type; 00041 ::bml_msgs::Entity_<ContainerAllocator> entity; 00042 00043 typedef float _x_type; 00044 float x; 00045 00046 typedef float _y_type; 00047 float y; 00048 00049 typedef float _z_type; 00050 float z; 00051 00052 typedef float _rotation_type; 00053 float rotation; 00054 00055 00056 private: 00057 static const char* __s_getDataType_() { return "bml_msgs/EntityPosition"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00060 00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00062 00063 private: 00064 static const char* __s_getMD5Sum_() { return "3cab9f9847524385c8b525d5c92664e7"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00067 00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00069 00070 private: 00071 static const char* __s_getMessageDefinition_() { return "# an entity position is the entiy itself, its location in space, and the\n\ 00072 # rotation of the entity in degrees\n\ 00073 bml_msgs/Entity entity\n\ 00074 float32 x\n\ 00075 float32 y\n\ 00076 float32 z\n\ 00077 float32 rotation\n\ 00078 ================================================================================\n\ 00079 MSG: bml_msgs/Entity\n\ 00080 #The following constants represent all possible salient objects\n\ 00081 uint8 OBJECT=0\n\ 00082 uint8 HAND=1\n\ 00083 uint8 FACE=2\n\ 00084 uint8 QUADRANT=3\n\ 00085 uint8 UNKNOWN=4\n\ 00086 \n\ 00087 # Constants for the upper quadrants\n\ 00088 string UP_LEFT=UP_LEFT\n\ 00089 string UP_FRONT=UP_FRONT\n\ 00090 string UP_RIGHT=UP_RIGHT\n\ 00091 \n\ 00092 # Constants for the middle quadrants\n\ 00093 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00094 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00095 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00096 \n\ 00097 # Constants for the lower quadrants\n\ 00098 string DOWN_LEFT=DOWN_LEFT\n\ 00099 string DOWN_FRONT=DOWN_FRONT\n\ 00100 string DOWN_RIGHT=DOWN_RIGHT\n\ 00101 \n\ 00102 #there is just one field for type\n\ 00103 uint8 type\n\ 00104 \n\ 00105 # The id of the object\n\ 00106 string id\n\ 00107 \n\ 00108 "; } 00109 public: 00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00115 { 00116 ros::serialization::OStream stream(write_ptr, 1000000000); 00117 ros::serialization::serialize(stream, entity); 00118 ros::serialization::serialize(stream, x); 00119 ros::serialization::serialize(stream, y); 00120 ros::serialization::serialize(stream, z); 00121 ros::serialization::serialize(stream, rotation); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00126 { 00127 ros::serialization::IStream stream(read_ptr, 1000000000); 00128 ros::serialization::deserialize(stream, entity); 00129 ros::serialization::deserialize(stream, x); 00130 ros::serialization::deserialize(stream, y); 00131 ros::serialization::deserialize(stream, z); 00132 ros::serialization::deserialize(stream, rotation); 00133 return stream.getData(); 00134 } 00135 00136 ROS_DEPRECATED virtual uint32_t serializationLength() const 00137 { 00138 uint32_t size = 0; 00139 size += ros::serialization::serializationLength(entity); 00140 size += ros::serialization::serializationLength(x); 00141 size += ros::serialization::serializationLength(y); 00142 size += ros::serialization::serializationLength(z); 00143 size += ros::serialization::serializationLength(rotation); 00144 return size; 00145 } 00146 00147 typedef boost::shared_ptr< ::bml_msgs::EntityPosition_<ContainerAllocator> > Ptr; 00148 typedef boost::shared_ptr< ::bml_msgs::EntityPosition_<ContainerAllocator> const> ConstPtr; 00149 }; // struct EntityPosition 00150 typedef ::bml_msgs::EntityPosition_<std::allocator<void> > EntityPosition; 00151 00152 typedef boost::shared_ptr< ::bml_msgs::EntityPosition> EntityPositionPtr; 00153 typedef boost::shared_ptr< ::bml_msgs::EntityPosition const> EntityPositionConstPtr; 00154 00155 00156 template<typename ContainerAllocator> 00157 std::ostream& operator<<(std::ostream& s, const ::bml_msgs::EntityPosition_<ContainerAllocator> & v) 00158 { 00159 ros::message_operations::Printer< ::bml_msgs::EntityPosition_<ContainerAllocator> >::stream(s, "", v); 00160 return s;} 00161 00162 } // namespace bml_msgs 00163 00164 namespace ros 00165 { 00166 namespace message_traits 00167 { 00168 template<class ContainerAllocator> 00169 struct MD5Sum< ::bml_msgs::EntityPosition_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "3cab9f9847524385c8b525d5c92664e7"; 00173 } 00174 00175 static const char* value(const ::bml_msgs::EntityPosition_<ContainerAllocator> &) { return value(); } 00176 static const uint64_t static_value1 = 0x3cab9f9847524385ULL; 00177 static const uint64_t static_value2 = 0xc8b525d5c92664e7ULL; 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct DataType< ::bml_msgs::EntityPosition_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "bml_msgs/EntityPosition"; 00185 } 00186 00187 static const char* value(const ::bml_msgs::EntityPosition_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct Definition< ::bml_msgs::EntityPosition_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "# an entity position is the entiy itself, its location in space, and the\n\ 00195 # rotation of the entity in degrees\n\ 00196 bml_msgs/Entity entity\n\ 00197 float32 x\n\ 00198 float32 y\n\ 00199 float32 z\n\ 00200 float32 rotation\n\ 00201 ================================================================================\n\ 00202 MSG: bml_msgs/Entity\n\ 00203 #The following constants represent all possible salient objects\n\ 00204 uint8 OBJECT=0\n\ 00205 uint8 HAND=1\n\ 00206 uint8 FACE=2\n\ 00207 uint8 QUADRANT=3\n\ 00208 uint8 UNKNOWN=4\n\ 00209 \n\ 00210 # Constants for the upper quadrants\n\ 00211 string UP_LEFT=UP_LEFT\n\ 00212 string UP_FRONT=UP_FRONT\n\ 00213 string UP_RIGHT=UP_RIGHT\n\ 00214 \n\ 00215 # Constants for the middle quadrants\n\ 00216 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00217 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00218 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00219 \n\ 00220 # Constants for the lower quadrants\n\ 00221 string DOWN_LEFT=DOWN_LEFT\n\ 00222 string DOWN_FRONT=DOWN_FRONT\n\ 00223 string DOWN_RIGHT=DOWN_RIGHT\n\ 00224 \n\ 00225 #there is just one field for type\n\ 00226 uint8 type\n\ 00227 \n\ 00228 # The id of the object\n\ 00229 string id\n\ 00230 \n\ 00231 "; 00232 } 00233 00234 static const char* value(const ::bml_msgs::EntityPosition_<ContainerAllocator> &) { return value(); } 00235 }; 00236 00237 } // namespace message_traits 00238 } // namespace ros 00239 00240 namespace ros 00241 { 00242 namespace serialization 00243 { 00244 00245 template<class ContainerAllocator> struct Serializer< ::bml_msgs::EntityPosition_<ContainerAllocator> > 00246 { 00247 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00248 { 00249 stream.next(m.entity); 00250 stream.next(m.x); 00251 stream.next(m.y); 00252 stream.next(m.z); 00253 stream.next(m.rotation); 00254 } 00255 00256 ROS_DECLARE_ALLINONE_SERIALIZER; 00257 }; // struct EntityPosition_ 00258 } // namespace serialization 00259 } // namespace ros 00260 00261 namespace ros 00262 { 00263 namespace message_operations 00264 { 00265 00266 template<class ContainerAllocator> 00267 struct Printer< ::bml_msgs::EntityPosition_<ContainerAllocator> > 00268 { 00269 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bml_msgs::EntityPosition_<ContainerAllocator> & v) 00270 { 00271 s << indent << "entity: "; 00272 s << std::endl; 00273 Printer< ::bml_msgs::Entity_<ContainerAllocator> >::stream(s, indent + " ", v.entity); 00274 s << indent << "x: "; 00275 Printer<float>::stream(s, indent + " ", v.x); 00276 s << indent << "y: "; 00277 Printer<float>::stream(s, indent + " ", v.y); 00278 s << indent << "z: "; 00279 Printer<float>::stream(s, indent + " ", v.z); 00280 s << indent << "rotation: "; 00281 Printer<float>::stream(s, indent + " ", v.rotation); 00282 } 00283 }; 00284 00285 00286 } // namespace message_operations 00287 } // namespace ros 00288 00289 #endif // BML_MSGS_MESSAGE_ENTITYPOSITION_H 00290 |