Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/HumanDirectedGaze.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/HumanDirectedGaze.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_HUMANDIRECTEDGAZE_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_HUMANDIRECTEDGAZE_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/Entity.h" 00015 00016 namespace engagement_msgs 00017 { 00018 template <class ContainerAllocator> 00019 struct HumanDirectedGaze_ : public ros::Message 00020 { 00021 typedef HumanDirectedGaze_<ContainerAllocator> Type; 00022 00023 HumanDirectedGaze_() 00024 : actor() 00025 , timeout(0.0) 00026 , objects() 00027 , action(0) 00028 { 00029 } 00030 00031 HumanDirectedGaze_(const ContainerAllocator& _alloc) 00032 : actor(_alloc) 00033 , timeout(0.0) 00034 , objects(_alloc) 00035 , action(0) 00036 { 00037 } 00038 00039 typedef ::engagement_msgs::ActorID_<ContainerAllocator> _actor_type; 00040 ::engagement_msgs::ActorID_<ContainerAllocator> actor; 00041 00042 typedef float _timeout_type; 00043 float timeout; 00044 00045 typedef std::vector< ::bml_msgs::Entity_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::Entity_<ContainerAllocator> >::other > _objects_type; 00046 std::vector< ::bml_msgs::Entity_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::Entity_<ContainerAllocator> >::other > objects; 00047 00048 typedef int8_t _action_type; 00049 int8_t action; 00050 00051 enum { POINT = 3 }; 00052 enum { LOOK = 4 }; 00053 00054 ROS_DEPRECATED uint32_t get_objects_size() const { return (uint32_t)objects.size(); } 00055 ROS_DEPRECATED void set_objects_size(uint32_t size) { objects.resize((size_t)size); } 00056 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; } 00057 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; } 00058 private: 00059 static const char* __s_getDataType_() { return "engagement_msgs/HumanDirectedGaze"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "dbbe704718bbae7b9e008cb359675968"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# Unique id for the actor that initiated this event\n\ 00074 ActorID actor\n\ 00075 \n\ 00076 # The timeout for this human initiated connection event\n\ 00077 float32 timeout\n\ 00078 \n\ 00079 # The objects associated with this connection event\n\ 00080 bml_msgs/Entity[] objects\n\ 00081 \n\ 00082 # Declare constants for the different actions\n\ 00083 int8 POINT=3\n\ 00084 int8 LOOK=4\n\ 00085 \n\ 00086 # What action the human used\n\ 00087 int8 action\n\ 00088 ================================================================================\n\ 00089 MSG: engagement_msgs/ActorID\n\ 00090 # Unique string identifier for the actor\n\ 00091 string id\n\ 00092 \n\ 00093 # Constant to identify the Robot as the actor\n\ 00094 string ROBOT=ROBOT\n\ 00095 ================================================================================\n\ 00096 MSG: bml_msgs/Entity\n\ 00097 #The following constants represent all possible salient objects\n\ 00098 uint8 OBJECT=0\n\ 00099 uint8 HAND=1\n\ 00100 uint8 FACE=2\n\ 00101 uint8 QUADRANT=3\n\ 00102 uint8 UNKNOWN=4\n\ 00103 \n\ 00104 # Constants for the upper quadrants\n\ 00105 string UP_LEFT=UP_LEFT\n\ 00106 string UP_FRONT=UP_FRONT\n\ 00107 string UP_RIGHT=UP_RIGHT\n\ 00108 \n\ 00109 # Constants for the middle quadrants\n\ 00110 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00111 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00112 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00113 \n\ 00114 # Constants for the lower quadrants\n\ 00115 string DOWN_LEFT=DOWN_LEFT\n\ 00116 string DOWN_FRONT=DOWN_FRONT\n\ 00117 string DOWN_RIGHT=DOWN_RIGHT\n\ 00118 \n\ 00119 #there is just one field for type\n\ 00120 uint8 type\n\ 00121 \n\ 00122 # The id of the object\n\ 00123 string id\n\ 00124 \n\ 00125 "; } 00126 public: 00127 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00132 { 00133 ros::serialization::OStream stream(write_ptr, 1000000000); 00134 ros::serialization::serialize(stream, actor); 00135 ros::serialization::serialize(stream, timeout); 00136 ros::serialization::serialize(stream, objects); 00137 ros::serialization::serialize(stream, action); 00138 return stream.getData(); 00139 } 00140 00141 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00142 { 00143 ros::serialization::IStream stream(read_ptr, 1000000000); 00144 ros::serialization::deserialize(stream, actor); 00145 ros::serialization::deserialize(stream, timeout); 00146 ros::serialization::deserialize(stream, objects); 00147 ros::serialization::deserialize(stream, action); 00148 return stream.getData(); 00149 } 00150 00151 ROS_DEPRECATED virtual uint32_t serializationLength() const 00152 { 00153 uint32_t size = 0; 00154 size += ros::serialization::serializationLength(actor); 00155 size += ros::serialization::serializationLength(timeout); 00156 size += ros::serialization::serializationLength(objects); 00157 size += ros::serialization::serializationLength(action); 00158 return size; 00159 } 00160 00161 typedef boost::shared_ptr< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> > Ptr; 00162 typedef boost::shared_ptr< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> const> ConstPtr; 00163 }; // struct HumanDirectedGaze 00164 typedef ::engagement_msgs::HumanDirectedGaze_<std::allocator<void> > HumanDirectedGaze; 00165 00166 typedef boost::shared_ptr< ::engagement_msgs::HumanDirectedGaze> HumanDirectedGazePtr; 00167 typedef boost::shared_ptr< ::engagement_msgs::HumanDirectedGaze const> HumanDirectedGazeConstPtr; 00168 00169 00170 template<typename ContainerAllocator> 00171 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> & v) 00172 { 00173 ros::message_operations::Printer< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> >::stream(s, "", v); 00174 return s;} 00175 00176 } // namespace engagement_msgs 00177 00178 namespace ros 00179 { 00180 namespace message_traits 00181 { 00182 template<class ContainerAllocator> 00183 struct MD5Sum< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "dbbe704718bbae7b9e008cb359675968"; 00187 } 00188 00189 static const char* value(const ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> &) { return value(); } 00190 static const uint64_t static_value1 = 0xdbbe704718bbae7bULL; 00191 static const uint64_t static_value2 = 0x9e008cb359675968ULL; 00192 }; 00193 00194 template<class ContainerAllocator> 00195 struct DataType< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "engagement_msgs/HumanDirectedGaze"; 00199 } 00200 00201 static const char* value(const ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> &) { return value(); } 00202 }; 00203 00204 template<class ContainerAllocator> 00205 struct Definition< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> > { 00206 static const char* value() 00207 { 00208 return "# Unique id for the actor that initiated this event\n\ 00209 ActorID actor\n\ 00210 \n\ 00211 # The timeout for this human initiated connection event\n\ 00212 float32 timeout\n\ 00213 \n\ 00214 # The objects associated with this connection event\n\ 00215 bml_msgs/Entity[] objects\n\ 00216 \n\ 00217 # Declare constants for the different actions\n\ 00218 int8 POINT=3\n\ 00219 int8 LOOK=4\n\ 00220 \n\ 00221 # What action the human used\n\ 00222 int8 action\n\ 00223 ================================================================================\n\ 00224 MSG: engagement_msgs/ActorID\n\ 00225 # Unique string identifier for the actor\n\ 00226 string id\n\ 00227 \n\ 00228 # Constant to identify the Robot as the actor\n\ 00229 string ROBOT=ROBOT\n\ 00230 ================================================================================\n\ 00231 MSG: bml_msgs/Entity\n\ 00232 #The following constants represent all possible salient objects\n\ 00233 uint8 OBJECT=0\n\ 00234 uint8 HAND=1\n\ 00235 uint8 FACE=2\n\ 00236 uint8 QUADRANT=3\n\ 00237 uint8 UNKNOWN=4\n\ 00238 \n\ 00239 # Constants for the upper quadrants\n\ 00240 string UP_LEFT=UP_LEFT\n\ 00241 string UP_FRONT=UP_FRONT\n\ 00242 string UP_RIGHT=UP_RIGHT\n\ 00243 \n\ 00244 # Constants for the middle quadrants\n\ 00245 string STRAIGHT_LEFT=STRAIGHT_LEFT\n\ 00246 string STRAIGHT_FRONT=STRAIGHT_FRONT\n\ 00247 string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n\ 00248 \n\ 00249 # Constants for the lower quadrants\n\ 00250 string DOWN_LEFT=DOWN_LEFT\n\ 00251 string DOWN_FRONT=DOWN_FRONT\n\ 00252 string DOWN_RIGHT=DOWN_RIGHT\n\ 00253 \n\ 00254 #there is just one field for type\n\ 00255 uint8 type\n\ 00256 \n\ 00257 # The id of the object\n\ 00258 string id\n\ 00259 \n\ 00260 "; 00261 } 00262 00263 static const char* value(const ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> &) { return value(); } 00264 }; 00265 00266 } // namespace message_traits 00267 } // namespace ros 00268 00269 namespace ros 00270 { 00271 namespace serialization 00272 { 00273 00274 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> > 00275 { 00276 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00277 { 00278 stream.next(m.actor); 00279 stream.next(m.timeout); 00280 stream.next(m.objects); 00281 stream.next(m.action); 00282 } 00283 00284 ROS_DECLARE_ALLINONE_SERIALIZER; 00285 }; // struct HumanDirectedGaze_ 00286 } // namespace serialization 00287 } // namespace ros 00288 00289 namespace ros 00290 { 00291 namespace message_operations 00292 { 00293 00294 template<class ContainerAllocator> 00295 struct Printer< ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> > 00296 { 00297 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::HumanDirectedGaze_<ContainerAllocator> & v) 00298 { 00299 s << indent << "actor: "; 00300 s << std::endl; 00301 Printer< ::engagement_msgs::ActorID_<ContainerAllocator> >::stream(s, indent + " ", v.actor); 00302 s << indent << "timeout: "; 00303 Printer<float>::stream(s, indent + " ", v.timeout); 00304 s << indent << "objects[]" << std::endl; 00305 for (size_t i = 0; i < v.objects.size(); ++i) 00306 { 00307 s << indent << " objects[" << i << "]: "; 00308 s << std::endl; 00309 s << indent; 00310 Printer< ::bml_msgs::Entity_<ContainerAllocator> >::stream(s, indent + " ", v.objects[i]); 00311 } 00312 s << indent << "action: "; 00313 Printer<int8_t>::stream(s, indent + " ", v.action); 00314 } 00315 }; 00316 00317 00318 } // namespace message_operations 00319 } // namespace ros 00320 00321 #endif // ENGAGEMENT_MSGS_MESSAGE_HUMANDIRECTEDGAZE_H 00322 |