Project: engagement_msgs License: BSD Dependencies:
Used by: |
engagement_msgs/msg_gen/cpp/include/engagement_msgs/ActorIDStatus.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/ActorIDStatus.msg */ 00002 #ifndef ENGAGEMENT_MSGS_MESSAGE_ACTORIDSTATUS_H 00003 #define ENGAGEMENT_MSGS_MESSAGE_ACTORIDSTATUS_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/Flag.h" 00015 00016 namespace engagement_msgs 00017 { 00018 template <class ContainerAllocator> 00019 struct ActorIDStatus_ : public ros::Message 00020 { 00021 typedef ActorIDStatus_<ContainerAllocator> Type; 00022 00023 ActorIDStatus_() 00024 : actor() 00025 , status() 00026 { 00027 } 00028 00029 ActorIDStatus_(const ContainerAllocator& _alloc) 00030 : actor(_alloc) 00031 , status(_alloc) 00032 { 00033 } 00034 00035 typedef ::engagement_msgs::ActorID_<ContainerAllocator> _actor_type; 00036 ::engagement_msgs::ActorID_<ContainerAllocator> actor; 00037 00038 typedef ::bml_msgs::Flag_<ContainerAllocator> _status_type; 00039 ::bml_msgs::Flag_<ContainerAllocator> status; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "engagement_msgs/ActorIDStatus"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "3e271f34123bd3ec9d4062945abf4e53"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "# The actor id\n\ 00058 ActorID actor\n\ 00059 \n\ 00060 # The actor's flag\n\ 00061 bml_msgs/Flag status\n\ 00062 ================================================================================\n\ 00063 MSG: engagement_msgs/ActorID\n\ 00064 # Unique string identifier for the actor\n\ 00065 string id\n\ 00066 \n\ 00067 # Constant to identify the Robot as the actor\n\ 00068 string ROBOT=ROBOT\n\ 00069 ================================================================================\n\ 00070 MSG: bml_msgs/Flag\n\ 00071 # A flag which determines between TRUE and FALSE\n\ 00072 int8 value\n\ 00073 \n\ 00074 # Constant for an invalid value\n\ 00075 int8 INVALID=-1\n\ 00076 \n\ 00077 # Constants which define the values for true\n\ 00078 int8 TRUE=1\n\ 00079 int8 START=1\n\ 00080 int8 BEGIN=1\n\ 00081 int8 SUCCESS=1\n\ 00082 int8 DONE=1\n\ 00083 \n\ 00084 # Constants which define the values for false\n\ 00085 int8 FALSE=0\n\ 00086 int8 STOP=0\n\ 00087 int8 END=0\n\ 00088 int8 FAILURE=0\n\ 00089 int8 NOT_DONE=0\n\ 00090 \n\ 00091 # Constants for response types\n\ 00092 int8 OPTIONAL_RESPONSE=0\n\ 00093 int8 IS_A_RESPONSE=1\n\ 00094 int8 REQUIRES_RESPONSE=2\n\ 00095 int8 BACKCHANNEL=3\n\ 00096 \n\ 00097 # Constants which define the values for the side to use\n\ 00098 int8 NEITHER=0\n\ 00099 int8 LEFT=1\n\ 00100 int8 RIGHT=2\n\ 00101 int8 EITHER=3\n\ 00102 \n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, actor); 00113 ros::serialization::serialize(stream, status); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00118 { 00119 ros::serialization::IStream stream(read_ptr, 1000000000); 00120 ros::serialization::deserialize(stream, actor); 00121 ros::serialization::deserialize(stream, status); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(actor); 00129 size += ros::serialization::serializationLength(status); 00130 return size; 00131 } 00132 00133 typedef boost::shared_ptr< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> > Ptr; 00134 typedef boost::shared_ptr< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> const> ConstPtr; 00135 }; // struct ActorIDStatus 00136 typedef ::engagement_msgs::ActorIDStatus_<std::allocator<void> > ActorIDStatus; 00137 00138 typedef boost::shared_ptr< ::engagement_msgs::ActorIDStatus> ActorIDStatusPtr; 00139 typedef boost::shared_ptr< ::engagement_msgs::ActorIDStatus const> ActorIDStatusConstPtr; 00140 00141 00142 template<typename ContainerAllocator> 00143 std::ostream& operator<<(std::ostream& s, const ::engagement_msgs::ActorIDStatus_<ContainerAllocator> & v) 00144 { 00145 ros::message_operations::Printer< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> >::stream(s, "", v); 00146 return s;} 00147 00148 } // namespace engagement_msgs 00149 00150 namespace ros 00151 { 00152 namespace message_traits 00153 { 00154 template<class ContainerAllocator> 00155 struct MD5Sum< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "3e271f34123bd3ec9d4062945abf4e53"; 00159 } 00160 00161 static const char* value(const ::engagement_msgs::ActorIDStatus_<ContainerAllocator> &) { return value(); } 00162 static const uint64_t static_value1 = 0x3e271f34123bd3ecULL; 00163 static const uint64_t static_value2 = 0x9d4062945abf4e53ULL; 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct DataType< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "engagement_msgs/ActorIDStatus"; 00171 } 00172 00173 static const char* value(const ::engagement_msgs::ActorIDStatus_<ContainerAllocator> &) { return value(); } 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct Definition< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "# The actor id\n\ 00181 ActorID actor\n\ 00182 \n\ 00183 # The actor's flag\n\ 00184 bml_msgs/Flag status\n\ 00185 ================================================================================\n\ 00186 MSG: engagement_msgs/ActorID\n\ 00187 # Unique string identifier for the actor\n\ 00188 string id\n\ 00189 \n\ 00190 # Constant to identify the Robot as the actor\n\ 00191 string ROBOT=ROBOT\n\ 00192 ================================================================================\n\ 00193 MSG: bml_msgs/Flag\n\ 00194 # A flag which determines between TRUE and FALSE\n\ 00195 int8 value\n\ 00196 \n\ 00197 # Constant for an invalid value\n\ 00198 int8 INVALID=-1\n\ 00199 \n\ 00200 # Constants which define the values for true\n\ 00201 int8 TRUE=1\n\ 00202 int8 START=1\n\ 00203 int8 BEGIN=1\n\ 00204 int8 SUCCESS=1\n\ 00205 int8 DONE=1\n\ 00206 \n\ 00207 # Constants which define the values for false\n\ 00208 int8 FALSE=0\n\ 00209 int8 STOP=0\n\ 00210 int8 END=0\n\ 00211 int8 FAILURE=0\n\ 00212 int8 NOT_DONE=0\n\ 00213 \n\ 00214 # Constants for response types\n\ 00215 int8 OPTIONAL_RESPONSE=0\n\ 00216 int8 IS_A_RESPONSE=1\n\ 00217 int8 REQUIRES_RESPONSE=2\n\ 00218 int8 BACKCHANNEL=3\n\ 00219 \n\ 00220 # Constants which define the values for the side to use\n\ 00221 int8 NEITHER=0\n\ 00222 int8 LEFT=1\n\ 00223 int8 RIGHT=2\n\ 00224 int8 EITHER=3\n\ 00225 \n\ 00226 "; 00227 } 00228 00229 static const char* value(const ::engagement_msgs::ActorIDStatus_<ContainerAllocator> &) { return value(); } 00230 }; 00231 00232 } // namespace message_traits 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace serialization 00238 { 00239 00240 template<class ContainerAllocator> struct Serializer< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> > 00241 { 00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00243 { 00244 stream.next(m.actor); 00245 stream.next(m.status); 00246 } 00247 00248 ROS_DECLARE_ALLINONE_SERIALIZER; 00249 }; // struct ActorIDStatus_ 00250 } // namespace serialization 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace message_operations 00256 { 00257 00258 template<class ContainerAllocator> 00259 struct Printer< ::engagement_msgs::ActorIDStatus_<ContainerAllocator> > 00260 { 00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::engagement_msgs::ActorIDStatus_<ContainerAllocator> & v) 00262 { 00263 s << indent << "actor: "; 00264 s << std::endl; 00265 Printer< ::engagement_msgs::ActorID_<ContainerAllocator> >::stream(s, indent + " ", v.actor); 00266 s << indent << "status: "; 00267 s << std::endl; 00268 Printer< ::bml_msgs::Flag_<ContainerAllocator> >::stream(s, indent + " ", v.status); 00269 } 00270 }; 00271 00272 00273 } // namespace message_operations 00274 } // namespace ros 00275 00276 #endif // ENGAGEMENT_MSGS_MESSAGE_ACTORIDSTATUS_H 00277 |