Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/HumanBackchannel.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/HumanBackchannel.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_HUMANBACKCHANNEL_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_HUMANBACKCHANNEL_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 00015 namespace engagement_msgs 00016 { 00017 template <class ContainerAllocator> 00018 struct HumanBackchannel_ : public ros::Message 00019 { 00020 typedef HumanBackchannel_<ContainerAllocator> Type; 00021 00022 HumanBackchannel_() 00023 : actor() 00024 , timeout(0.0) 00025 { 00026 } 00027 00028 HumanBackchannel_(const ContainerAllocator& _alloc) 00029 : actor(_alloc) 00030 , timeout(0.0) 00031 { 00032 } 00033 00034 typedef ::engagement_msgs::ActorID_<ContainerAllocator> _actor_type; 00035 ::engagement_msgs::ActorID_<ContainerAllocator> actor; 00036 00037 typedef float _timeout_type; 00038 float timeout; 00039 00040 00041 private: 00042 static const char* __s_getDataType_() { return "engagement_msgs/HumanBackchannel"; } 00043 public: 00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00045 00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00047 00048 private: 00049 static const char* __s_getMD5Sum_() { return "d3079ec57f3b4a779e754562dba4e4d0"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00052 00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00054 00055 private: 00056 static const char* __s_getMessageDefinition_() { return "# Unique id for the actor that initiated this event\n\ 00057 ActorID actor\n\ 00058 \n\ 00059 # The timeout for this human initiated connection event\n\ 00060 float32 timeout\n\ 00061 ================================================================================\n\ 00062 MSG: engagement_msgs/ActorID\n\ 00063 # Unique string identifier for the actor\n\ 00064 string id\n\ 00065 \n\ 00066 # Constant to identify the Robot as the actor\n\ 00067 string ROBOT=ROBOT\n\ 00068 "; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00075 { 00076 ros::serialization::OStream stream(write_ptr, 1000000000); 00077 ros::serialization::serialize(stream, actor); 00078 ros::serialization::serialize(stream, timeout); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, actor); 00086 ros::serialization::deserialize(stream, timeout); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint32_t serializationLength() const 00091 { 00092 uint32_t size = 0; 00093 size += ros::serialization::serializationLength(actor); 00094 size += ros::serialization::serializationLength(timeout); 00095 return size; 00096 } 00097 00098 typedef boost::shared_ptr< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> > Ptr; 00099 typedef boost::shared_ptr< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> const> ConstPtr; 00100 }; // struct HumanBackchannel 00101 typedef ::engagement_msgs::HumanBackchannel_<std::allocator<void> > HumanBackchannel; 00102 00103 typedef boost::shared_ptr< ::engagement_msgs::HumanBackchannel> HumanBackchannelPtr; 00104 typedef boost::shared_ptr< ::engagement_msgs::HumanBackchannel const> HumanBackchannelConstPtr; 00105 00106 00107 template<typename ContainerAllocator> 00108 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::HumanBackchannel_<ContainerAllocator> & v) 00109 { 00110 ros::message_operations::Printer< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> >::stream(s, "", v); 00111 return s;} 00112 00113 } // namespace engagement_msgs 00114 00115 namespace ros 00116 { 00117 namespace message_traits 00118 { 00119 template<class ContainerAllocator> 00120 struct MD5Sum< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> > { 00121 static const char* value() 00122 { 00123 return "d3079ec57f3b4a779e754562dba4e4d0"; 00124 } 00125 00126 static const char* value(const ::engagement_msgs::HumanBackchannel_<ContainerAllocator> &) { return value(); } 00127 static const uint64_t static_value1 = 0xd3079ec57f3b4a77ULL; 00128 static const uint64_t static_value2 = 0x9e754562dba4e4d0ULL; 00129 }; 00130 00131 template<class ContainerAllocator> 00132 struct DataType< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "engagement_msgs/HumanBackchannel"; 00136 } 00137 00138 static const char* value(const ::engagement_msgs::HumanBackchannel_<ContainerAllocator> &) { return value(); } 00139 }; 00140 00141 template<class ContainerAllocator> 00142 struct Definition< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> > { 00143 static const char* value() 00144 { 00145 return "# Unique id for the actor that initiated this event\n\ 00146 ActorID actor\n\ 00147 \n\ 00148 # The timeout for this human initiated connection event\n\ 00149 float32 timeout\n\ 00150 ================================================================================\n\ 00151 MSG: engagement_msgs/ActorID\n\ 00152 # Unique string identifier for the actor\n\ 00153 string id\n\ 00154 \n\ 00155 # Constant to identify the Robot as the actor\n\ 00156 string ROBOT=ROBOT\n\ 00157 "; 00158 } 00159 00160 static const char* value(const ::engagement_msgs::HumanBackchannel_<ContainerAllocator> &) { return value(); } 00161 }; 00162 00163 } // namespace message_traits 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace serialization 00169 { 00170 00171 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> > 00172 { 00173 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00174 { 00175 stream.next(m.actor); 00176 stream.next(m.timeout); 00177 } 00178 00179 ROS_DECLARE_ALLINONE_SERIALIZER; 00180 }; // struct HumanBackchannel_ 00181 } // namespace serialization 00182 } // namespace ros 00183 00184 namespace ros 00185 { 00186 namespace message_operations 00187 { 00188 00189 template<class ContainerAllocator> 00190 struct Printer< ::engagement_msgs::HumanBackchannel_<ContainerAllocator> > 00191 { 00192 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::HumanBackchannel_<ContainerAllocator> & v) 00193 { 00194 s << indent << "actor: "; 00195 s << std::endl; 00196 Printer< ::engagement_msgs::ActorID_<ContainerAllocator> >::stream(s, indent + " ", v.actor); 00197 s << indent << "timeout: "; 00198 Printer<float>::stream(s, indent + " ", v.timeout); 00199 } 00200 }; 00201 00202 00203 } // namespace message_operations 00204 } // namespace ros 00205 00206 #endif // ENGAGEMENT_MSGS_MESSAGE_HUMANBACKCHANNEL_H 00207 |