Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/Performance.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/Performance.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_PERFORMANCE_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_PERFORMANCE_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 "engagement_msgs/ActorID.h" 00014 #include "bml_msgs/Flag.h" 00015 #include "bml_msgs/Entity.h" 00016 00017 namespace engagement_msgs 00018 { 00019 template <class ContainerAllocator> 00020 struct Performance_ : public ros::Message 00021 { 00022 typedef Performance_<ContainerAllocator> Type; 00023 00024 Performance_() 00025 : actor() 00026 , begin() 00027 , prob() 00028 , objects() 00029 { 00030 } 00031 00032 Performance_(const ContainerAllocator& _alloc) 00033 : actor(_alloc) 00034 , begin(_alloc) 00035 , prob(_alloc) 00036 , objects(_alloc) 00037 { 00038 } 00039 00040 typedef ::engagement_msgs::ActorID_<ContainerAllocator> _actor_type; 00041 ::engagement_msgs::ActorID_<ContainerAllocator> actor; 00042 00043 typedef ::bml_msgs::Flag_<ContainerAllocator> _begin_type; 00044 ::bml_msgs::Flag_<ContainerAllocator> begin; 00045 00046 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _prob_type; 00047 std::vector<float, typename ContainerAllocator::template rebind<float>::other > prob; 00048 00049 typedef std::vector< ::bml_msgs::Entity_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::Entity_<ContainerAllocator> >::other > _objects_type; 00050 std::vector< ::bml_msgs::Entity_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::Entity_<ContainerAllocator> >::other > objects; 00051 00052 00053 ROS_DEPRECATED uint32_t get_prob_size() const { return (uint32_t)prob.size(); } 00054 ROS_DEPRECATED void set_prob_size(uint32_t size) { prob.resize((size_t)size); } 00055 ROS_DEPRECATED void get_prob_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->prob; } 00056 ROS_DEPRECATED void set_prob_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->prob = vec; } 00057 ROS_DEPRECATED uint32_t get_objects_size() const { return (uint32_t)objects.size(); } 00058 ROS_DEPRECATED void set_objects_size(uint32_t size) { objects.resize((size_t)size); } 00059 ROS_DEPRECATED void get_objects_vec(std::vector< ::bml_msgs::Entity_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::Entity_<ContainerAllocator> >::other > & vec) const { vec = this->objects; } 00060 ROS_DEPRECATED void set_objects_vec(const std::vector< ::bml_msgs::Entity_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::Entity_<ContainerAllocator> >::other > & vec) { this->objects = vec; } 00061 private: 00062 static const char* __s_getDataType_() { return "engagement_msgs/Performance"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "c36e931d173db44349ed85e8abf79f39"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "# The identifier for the actor\n\ 00077 ActorID actor\n\ 00078 \n\ 00079 # A flag which determines between BEGIN and END\n\ 00080 bml_msgs/Flag begin\n\ 00081 \n\ 00082 # The probability associated with this Gesture\n\ 00083 float32[] prob\n\ 00084 \n\ 00085 # The sequence of objects\n\ 00086 bml_msgs/Entity[] objects\n\ 00087 ================================================================================\n\ 00088 MSG: engagement_msgs/ActorID\n\ 00089 # Unique string identifier for the actor\n\ 00090 string id\n\ 00091 \n\ 00092 # Constant to identify the Robot as the actor\n\ 00093 string ROBOT=ROBOT\n\ 00094 ================================================================================\n\ 00095 MSG: bml_msgs/Flag\n\ 00096 # A flag which determines between TRUE and FALSE\n\ 00097 int8 value\n\ 00098 \n\ 00099 # Constant for an invalid value\n\ 00100 int8 INVALID=-1\n\ 00101 \n\ 00102 # Constants which define the values for true\n\ 00103 int8 TRUE=1\n\ 00104 int8 START=1\n\ 00105 int8 BEGIN=1\n\ 00106 int8 SUCCESS=1\n\ 00107 int8 DONE=1\n\ 00108 \n\ 00109 # Constants which define the values for false\n\ 00110 int8 FALSE=0\n\ 00111 int8 STOP=0\n\ 00112 int8 END=0\n\ 00113 int8 FAILURE=0\n\ 00114 int8 NOT_DONE=0\n\ 00115 \n\ 00116 # Constants for response types\n\ 00117 int8 OPTIONAL_RESPONSE=0\n\ 00118 int8 IS_A_RESPONSE=1\n\ 00119 int8 REQUIRES_RESPONSE=2\n\ 00120 int8 BACKCHANNEL=3\n\ 00121 \n\ 00122 # Constants which define the values for the side to use\n\ 00123 int8 NEITHER=0\n\ 00124 int8 LEFT=1\n\ 00125 int8 RIGHT=2\n\ 00126 int8 EITHER=3\n\ 00127 \n\ 00128 ================================================================================\n\ 00129 MSG: bml_msgs/Entity\n\ 00130 #The following constants represent all possible salient objects\n\ 00131 uint8 OBJECT=0\n\ 00132 uint8 HAND=1\n\ 00133 uint8 FACE=2\n\ 00134 uint8 QUADRANT=3\n\ 00135 uint8 UNKNOWN=4\n\ 00136 \n\ 00137 # Constants for the upper quadrants\n\ 00138 string UP_LEFT=UP_LEFT\n\ 00139 string UP_FRONT=UP_FRONT\n\ 00140 string UP_RIGHT=UP_RIGHT\n\ 00141 \n\ 00142 # Constants for the middle quadrants\n\ 00143 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00144 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00145 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00146 \n\ 00147 # Constants for the lower quadrants\n\ 00148 string DOWN_LEFT=DOWN_LEFT\n\ 00149 string DOWN_FRONT=DOWN_FRONT\n\ 00150 string DOWN_RIGHT=DOWN_RIGHT\n\ 00151 \n\ 00152 #there is just one field for type\n\ 00153 uint8 type\n\ 00154 \n\ 00155 # The id of the object\n\ 00156 string id\n\ 00157 \n\ 00158 "; } 00159 public: 00160 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00161 00162 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00163 00164 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00165 { 00166 ros::serialization::OStream stream(write_ptr, 1000000000); 00167 ros::serialization::serialize(stream, actor); 00168 ros::serialization::serialize(stream, begin); 00169 ros::serialization::serialize(stream, prob); 00170 ros::serialization::serialize(stream, objects); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00175 { 00176 ros::serialization::IStream stream(read_ptr, 1000000000); 00177 ros::serialization::deserialize(stream, actor); 00178 ros::serialization::deserialize(stream, begin); 00179 ros::serialization::deserialize(stream, prob); 00180 ros::serialization::deserialize(stream, objects); 00181 return stream.getData(); 00182 } 00183 00184 ROS_DEPRECATED virtual uint32_t serializationLength() const 00185 { 00186 uint32_t size = 0; 00187 size += ros::serialization::serializationLength(actor); 00188 size += ros::serialization::serializationLength(begin); 00189 size += ros::serialization::serializationLength(prob); 00190 size += ros::serialization::serializationLength(objects); 00191 return size; 00192 } 00193 00194 typedef boost::shared_ptr< ::engagement_msgs::Performance_<ContainerAllocator> > Ptr; 00195 typedef boost::shared_ptr< ::engagement_msgs::Performance_<ContainerAllocator> const> ConstPtr; 00196 }; // struct Performance 00197 typedef ::engagement_msgs::Performance_<std::allocator<void> > Performance; 00198 00199 typedef boost::shared_ptr< ::engagement_msgs::Performance> PerformancePtr; 00200 typedef boost::shared_ptr< ::engagement_msgs::Performance const> PerformanceConstPtr; 00201 00202 00203 template<typename ContainerAllocator> 00204 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::Performance_<ContainerAllocator> & v) 00205 { 00206 ros::message_operations::Printer< ::engagement_msgs::Performance_<ContainerAllocator> >::stream(s, "", v); 00207 return s;} 00208 00209 } // namespace engagement_msgs 00210 00211 namespace ros 00212 { 00213 namespace message_traits 00214 { 00215 template<class ContainerAllocator> 00216 struct MD5Sum< ::engagement_msgs::Performance_<ContainerAllocator> > { 00217 static const char* value() 00218 { 00219 return "c36e931d173db44349ed85e8abf79f39"; 00220 } 00221 00222 static const char* value(const ::engagement_msgs::Performance_<ContainerAllocator> &) { return value(); } 00223 static const uint64_t static_value1 = 0xc36e931d173db443ULL; 00224 static const uint64_t static_value2 = 0x49ed85e8abf79f39ULL; 00225 }; 00226 00227 template<class ContainerAllocator> 00228 struct DataType< ::engagement_msgs::Performance_<ContainerAllocator> > { 00229 static const char* value() 00230 { 00231 return "engagement_msgs/Performance"; 00232 } 00233 00234 static const char* value(const ::engagement_msgs::Performance_<ContainerAllocator> &) { return value(); } 00235 }; 00236 00237 template<class ContainerAllocator> 00238 struct Definition< ::engagement_msgs::Performance_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "# The identifier for the actor\n\ 00242 ActorID actor\n\ 00243 \n\ 00244 # A flag which determines between BEGIN and END\n\ 00245 bml_msgs/Flag begin\n\ 00246 \n\ 00247 # The probability associated with this Gesture\n\ 00248 float32[] prob\n\ 00249 \n\ 00250 # The sequence of objects\n\ 00251 bml_msgs/Entity[] objects\n\ 00252 ================================================================================\n\ 00253 MSG: engagement_msgs/ActorID\n\ 00254 # Unique string identifier for the actor\n\ 00255 string id\n\ 00256 \n\ 00257 # Constant to identify the Robot as the actor\n\ 00258 string ROBOT=ROBOT\n\ 00259 ================================================================================\n\ 00260 MSG: bml_msgs/Flag\n\ 00261 # A flag which determines between TRUE and FALSE\n\ 00262 int8 value\n\ 00263 \n\ 00264 # Constant for an invalid value\n\ 00265 int8 INVALID=-1\n\ 00266 \n\ 00267 # Constants which define the values for true\n\ 00268 int8 TRUE=1\n\ 00269 int8 START=1\n\ 00270 int8 BEGIN=1\n\ 00271 int8 SUCCESS=1\n\ 00272 int8 DONE=1\n\ 00273 \n\ 00274 # Constants which define the values for false\n\ 00275 int8 FALSE=0\n\ 00276 int8 STOP=0\n\ 00277 int8 END=0\n\ 00278 int8 FAILURE=0\n\ 00279 int8 NOT_DONE=0\n\ 00280 \n\ 00281 # Constants for response types\n\ 00282 int8 OPTIONAL_RESPONSE=0\n\ 00283 int8 IS_A_RESPONSE=1\n\ 00284 int8 REQUIRES_RESPONSE=2\n\ 00285 int8 BACKCHANNEL=3\n\ 00286 \n\ 00287 # Constants which define the values for the side to use\n\ 00288 int8 NEITHER=0\n\ 00289 int8 LEFT=1\n\ 00290 int8 RIGHT=2\n\ 00291 int8 EITHER=3\n\ 00292 \n\ 00293 ================================================================================\n\ 00294 MSG: bml_msgs/Entity\n\ 00295 #The following constants represent all possible salient objects\n\ 00296 uint8 OBJECT=0\n\ 00297 uint8 HAND=1\n\ 00298 uint8 FACE=2\n\ 00299 uint8 QUADRANT=3\n\ 00300 uint8 UNKNOWN=4\n\ 00301 \n\ 00302 # Constants for the upper quadrants\n\ 00303 string UP_LEFT=UP_LEFT\n\ 00304 string UP_FRONT=UP_FRONT\n\ 00305 string UP_RIGHT=UP_RIGHT\n\ 00306 \n\ 00307 # Constants for the middle quadrants\n\ 00308 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00309 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00310 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00311 \n\ 00312 # Constants for the lower quadrants\n\ 00313 string DOWN_LEFT=DOWN_LEFT\n\ 00314 string DOWN_FRONT=DOWN_FRONT\n\ 00315 string DOWN_RIGHT=DOWN_RIGHT\n\ 00316 \n\ 00317 #there is just one field for type\n\ 00318 uint8 type\n\ 00319 \n\ 00320 # The id of the object\n\ 00321 string id\n\ 00322 \n\ 00323 "; 00324 } 00325 00326 static const char* value(const ::engagement_msgs::Performance_<ContainerAllocator> &) { return value(); } 00327 }; 00328 00329 } // namespace message_traits 00330 } // namespace ros 00331 00332 namespace ros 00333 { 00334 namespace serialization 00335 { 00336 00337 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::Performance_<ContainerAllocator> > 00338 { 00339 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00340 { 00341 stream.next(m.actor); 00342 stream.next(m.begin); 00343 stream.next(m.prob); 00344 stream.next(m.objects); 00345 } 00346 00347 ROS_DECLARE_ALLINONE_SERIALIZER; 00348 }; // struct Performance_ 00349 } // namespace serialization 00350 } // namespace ros 00351 00352 namespace ros 00353 { 00354 namespace message_operations 00355 { 00356 00357 template<class ContainerAllocator> 00358 struct Printer< ::engagement_msgs::Performance_<ContainerAllocator> > 00359 { 00360 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::Performance_<ContainerAllocator> & v) 00361 { 00362 s << indent << "actor: "; 00363 s << std::endl; 00364 Printer< ::engagement_msgs::ActorID_<ContainerAllocator> >::stream(s, indent + " ", v.actor); 00365 s << indent << "begin: "; 00366 s << std::endl; 00367 Printer< ::bml_msgs::Flag_<ContainerAllocator> >::stream(s, indent + " ", v.begin); 00368 s << indent << "prob[]" << std::endl; 00369 for (size_t i = 0; i < v.prob.size(); ++i) 00370 { 00371 s << indent << " prob[" << i << "]: "; 00372 Printer<float>::stream(s, indent + " ", v.prob[i]); 00373 } 00374 s << indent << "objects[]" << std::endl; 00375 for (size_t i = 0; i < v.objects.size(); ++i) 00376 { 00377 s << indent << " objects[" << i << "]: "; 00378 s << std::endl; 00379 s << indent; 00380 Printer< ::bml_msgs::Entity_<ContainerAllocator> >::stream(s, indent + " ", v.objects[i]); 00381 } 00382 } 00383 }; 00384 00385 00386 } // namespace message_operations 00387 } // namespace ros 00388 00389 #endif // ENGAGEMENT_MSGS_MESSAGE_PERFORMANCE_H 00390 |