Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/HumanAdjacencyPair.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/HumanAdjacencyPair.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_HUMANADJACENCYPAIR_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_HUMANADJACENCYPAIR_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 "engagement_msgs/APAction.h" 00015 00016 namespace engagement_msgs 00017 { 00018 template <class ContainerAllocator> 00019 struct HumanAdjacencyPair_ : public ros::Message 00020 { 00021 typedef HumanAdjacencyPair_<ContainerAllocator> Type; 00022 00023 HumanAdjacencyPair_() 00024 : actor() 00025 , timeout(0.0) 00026 , action() 00027 { 00028 } 00029 00030 HumanAdjacencyPair_(const ContainerAllocator& _alloc) 00031 : actor(_alloc) 00032 , timeout(0.0) 00033 , action(_alloc) 00034 { 00035 } 00036 00037 typedef ::engagement_msgs::ActorID_<ContainerAllocator> _actor_type; 00038 ::engagement_msgs::ActorID_<ContainerAllocator> actor; 00039 00040 typedef float _timeout_type; 00041 float timeout; 00042 00043 typedef ::engagement_msgs::APAction_<ContainerAllocator> _action_type; 00044 ::engagement_msgs::APAction_<ContainerAllocator> action; 00045 00046 00047 private: 00048 static const char* __s_getDataType_() { return "engagement_msgs/HumanAdjacencyPair"; } 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 "b2b998c268fdd2e6ed3b451da100654d"; } 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 "# Unique id for the actor that initiated this event\n\ 00063 ActorID actor\n\ 00064 \n\ 00065 # The timeout for this human initiated connection event\n\ 00066 float32 timeout\n\ 00067 \n\ 00068 # The action that initiated the connection event\n\ 00069 engagement_msgs/APAction action\n\ 00070 \n\ 00071 ================================================================================\n\ 00072 MSG: engagement_msgs/ActorID\n\ 00073 # Unique string identifier for the actor\n\ 00074 string id\n\ 00075 \n\ 00076 # Constant to identify the Robot as the actor\n\ 00077 string ROBOT=ROBOT\n\ 00078 ================================================================================\n\ 00079 MSG: engagement_msgs/APAction\n\ 00080 # Declare constants for the different actions\n\ 00081 int8 NO_ACTION=-1\n\ 00082 int8 NOD=0\n\ 00083 int8 SHAKE=1\n\ 00084 int8 SPEECH=2\n\ 00085 int8 POINT=3\n\ 00086 int8 LOOK=4\n\ 00087 int8 EXTENDED_ACTION=5\n\ 00088 \n\ 00089 # What action the human used to complete the adjacency pair\n\ 00090 int8 value\n\ 00091 \n\ 00092 # Additional data for this action\n\ 00093 string data\n\ 00094 "; } 00095 public: 00096 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00101 { 00102 ros::serialization::OStream stream(write_ptr, 1000000000); 00103 ros::serialization::serialize(stream, actor); 00104 ros::serialization::serialize(stream, timeout); 00105 ros::serialization::serialize(stream, action); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, actor); 00113 ros::serialization::deserialize(stream, timeout); 00114 ros::serialization::deserialize(stream, action); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint32_t serializationLength() const 00119 { 00120 uint32_t size = 0; 00121 size += ros::serialization::serializationLength(actor); 00122 size += ros::serialization::serializationLength(timeout); 00123 size += ros::serialization::serializationLength(action); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> const> ConstPtr; 00129 }; // struct HumanAdjacencyPair 00130 typedef ::engagement_msgs::HumanAdjacencyPair_<std::allocator<void> > HumanAdjacencyPair; 00131 00132 typedef boost::shared_ptr< ::engagement_msgs::HumanAdjacencyPair> HumanAdjacencyPairPtr; 00133 typedef boost::shared_ptr< ::engagement_msgs::HumanAdjacencyPair const> HumanAdjacencyPairConstPtr; 00134 00135 00136 template<typename ContainerAllocator> 00137 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> & v) 00138 { 00139 ros::message_operations::Printer< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> >::stream(s, "", v); 00140 return s;} 00141 00142 } // namespace engagement_msgs 00143 00144 namespace ros 00145 { 00146 namespace message_traits 00147 { 00148 template<class ContainerAllocator> 00149 struct MD5Sum< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "b2b998c268fdd2e6ed3b451da100654d"; 00153 } 00154 00155 static const char* value(const ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> &) { return value(); } 00156 static const uint64_t static_value1 = 0xb2b998c268fdd2e6ULL; 00157 static const uint64_t static_value2 = 0xed3b451da100654dULL; 00158 }; 00159 00160 template<class ContainerAllocator> 00161 struct DataType< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "engagement_msgs/HumanAdjacencyPair"; 00165 } 00166 00167 static const char* value(const ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct Definition< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "# Unique id for the actor that initiated this event\n\ 00175 ActorID actor\n\ 00176 \n\ 00177 # The timeout for this human initiated connection event\n\ 00178 float32 timeout\n\ 00179 \n\ 00180 # The action that initiated the connection event\n\ 00181 engagement_msgs/APAction action\n\ 00182 \n\ 00183 ================================================================================\n\ 00184 MSG: engagement_msgs/ActorID\n\ 00185 # Unique string identifier for the actor\n\ 00186 string id\n\ 00187 \n\ 00188 # Constant to identify the Robot as the actor\n\ 00189 string ROBOT=ROBOT\n\ 00190 ================================================================================\n\ 00191 MSG: engagement_msgs/APAction\n\ 00192 # Declare constants for the different actions\n\ 00193 int8 NO_ACTION=-1\n\ 00194 int8 NOD=0\n\ 00195 int8 SHAKE=1\n\ 00196 int8 SPEECH=2\n\ 00197 int8 POINT=3\n\ 00198 int8 LOOK=4\n\ 00199 int8 EXTENDED_ACTION=5\n\ 00200 \n\ 00201 # What action the human used to complete the adjacency pair\n\ 00202 int8 value\n\ 00203 \n\ 00204 # Additional data for this action\n\ 00205 string data\n\ 00206 "; 00207 } 00208 00209 static const char* value(const ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> &) { return value(); } 00210 }; 00211 00212 } // namespace message_traits 00213 } // namespace ros 00214 00215 namespace ros 00216 { 00217 namespace serialization 00218 { 00219 00220 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> > 00221 { 00222 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00223 { 00224 stream.next(m.actor); 00225 stream.next(m.timeout); 00226 stream.next(m.action); 00227 } 00228 00229 ROS_DECLARE_ALLINONE_SERIALIZER; 00230 }; // struct HumanAdjacencyPair_ 00231 } // namespace serialization 00232 } // namespace ros 00233 00234 namespace ros 00235 { 00236 namespace message_operations 00237 { 00238 00239 template<class ContainerAllocator> 00240 struct Printer< ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> > 00241 { 00242 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::HumanAdjacencyPair_<ContainerAllocator> & v) 00243 { 00244 s << indent << "actor: "; 00245 s << std::endl; 00246 Printer< ::engagement_msgs::ActorID_<ContainerAllocator> >::stream(s, indent + " ", v.actor); 00247 s << indent << "timeout: "; 00248 Printer<float>::stream(s, indent + " ", v.timeout); 00249 s << indent << "action: "; 00250 s << std::endl; 00251 Printer< ::engagement_msgs::APAction_<ContainerAllocator> >::stream(s, indent + " ", v.action); 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // ENGAGEMENT_MSGS_MESSAGE_HUMANADJACENCYPAIR_H 00260 |