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