Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/APAction.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/APAction.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_APACTION_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_APACTION_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 00014 namespace engagement_msgs 00015 { 00016 template <class ContainerAllocator> 00017 struct APAction_ : public ros::Message 00018 { 00019 typedef APAction_<ContainerAllocator> Type; 00020 00021 APAction_() 00022 : value(0) 00023 , data() 00024 { 00025 } 00026 00027 APAction_(const ContainerAllocator& _alloc) 00028 : value(0) 00029 , data(_alloc) 00030 { 00031 } 00032 00033 typedef int8_t _value_type; 00034 int8_t value; 00035 00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _data_type; 00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > data; 00038 00039 enum { NO_ACTION = -1 }; 00040 enum { NOD = 0 }; 00041 enum { SHAKE = 1 }; 00042 enum { SPEECH = 2 }; 00043 enum { POINT = 3 }; 00044 enum { LOOK = 4 }; 00045 enum { EXTENDED_ACTION = 5 }; 00046 00047 private: 00048 static const char* __s_getDataType_() { return "engagement_msgs/APAction"; } 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 "42f9689d85fd76c170a8ffd616566465"; } 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 "# Declare constants for the different actions\n\ 00063 int8 NO_ACTION=-1\n\ 00064 int8 NOD=0\n\ 00065 int8 SHAKE=1\n\ 00066 int8 SPEECH=2\n\ 00067 int8 POINT=3\n\ 00068 int8 LOOK=4\n\ 00069 int8 EXTENDED_ACTION=5\n\ 00070 \n\ 00071 # What action the human used to complete the adjacency pair\n\ 00072 int8 value\n\ 00073 \n\ 00074 # Additional data for this action\n\ 00075 string data\n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, value); 00086 ros::serialization::serialize(stream, data); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, value); 00094 ros::serialization::deserialize(stream, data); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(value); 00102 size += ros::serialization::serializationLength(data); 00103 return size; 00104 } 00105 00106 typedef boost::shared_ptr< ::engagement_msgs::APAction_<ContainerAllocator> > Ptr; 00107 typedef boost::shared_ptr< ::engagement_msgs::APAction_<ContainerAllocator> const> ConstPtr; 00108 }; // struct APAction 00109 typedef ::engagement_msgs::APAction_<std::allocator<void> > APAction; 00110 00111 typedef boost::shared_ptr< ::engagement_msgs::APAction> APActionPtr; 00112 typedef boost::shared_ptr< ::engagement_msgs::APAction const> APActionConstPtr; 00113 00114 00115 template<typename ContainerAllocator> 00116 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::APAction_<ContainerAllocator> & v) 00117 { 00118 ros::message_operations::Printer< ::engagement_msgs::APAction_<ContainerAllocator> >::stream(s, "", v); 00119 return s;} 00120 00121 } // namespace engagement_msgs 00122 00123 namespace ros 00124 { 00125 namespace message_traits 00126 { 00127 template<class ContainerAllocator> 00128 struct MD5Sum< ::engagement_msgs::APAction_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "42f9689d85fd76c170a8ffd616566465"; 00132 } 00133 00134 static const char* value(const ::engagement_msgs::APAction_<ContainerAllocator> &) { return value(); } 00135 static const uint64_t static_value1 = 0x42f9689d85fd76c1ULL; 00136 static const uint64_t static_value2 = 0x70a8ffd616566465ULL; 00137 }; 00138 00139 template<class ContainerAllocator> 00140 struct DataType< ::engagement_msgs::APAction_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "engagement_msgs/APAction"; 00144 } 00145 00146 static const char* value(const ::engagement_msgs::APAction_<ContainerAllocator> &) { return value(); } 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct Definition< ::engagement_msgs::APAction_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "# Declare constants for the different actions\n\ 00154 int8 NO_ACTION=-1\n\ 00155 int8 NOD=0\n\ 00156 int8 SHAKE=1\n\ 00157 int8 SPEECH=2\n\ 00158 int8 POINT=3\n\ 00159 int8 LOOK=4\n\ 00160 int8 EXTENDED_ACTION=5\n\ 00161 \n\ 00162 # What action the human used to complete the adjacency pair\n\ 00163 int8 value\n\ 00164 \n\ 00165 # Additional data for this action\n\ 00166 string data\n\ 00167 "; 00168 } 00169 00170 static const char* value(const ::engagement_msgs::APAction_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::APAction_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.value); 00186 stream.next(m.data); 00187 } 00188 00189 ROS_DECLARE_ALLINONE_SERIALIZER; 00190 }; // struct APAction_ 00191 } // namespace serialization 00192 } // namespace ros 00193 00194 namespace ros 00195 { 00196 namespace message_operations 00197 { 00198 00199 template<class ContainerAllocator> 00200 struct Printer< ::engagement_msgs::APAction_<ContainerAllocator> > 00201 { 00202 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::APAction_<ContainerAllocator> & v) 00203 { 00204 s << indent << "value: "; 00205 Printer<int8_t>::stream(s, indent + " ", v.value); 00206 s << indent << "data: "; 00207 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.data); 00208 } 00209 }; 00210 00211 00212 } // namespace message_operations 00213 } // namespace ros 00214 00215 #endif // ENGAGEMENT_MSGS_MESSAGE_APACTION_H 00216 |