$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_msgs/msg/SRS_Action.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_SRS_ACTION_H 00003 #define SRS_MSGS_MESSAGE_SRS_ACTION_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 #include "srs_msgs/Component.h" 00018 00019 namespace srs_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct SRS_Action_ { 00023 typedef SRS_Action_<ContainerAllocator> Type; 00024 00025 SRS_Action_() 00026 : objectID(0) 00027 , objectName() 00028 , actionID(0) 00029 , actionName() 00030 , component_is_required(false) 00031 , components() 00032 , symbolic_is_required(false) 00033 , symbolicID(0) 00034 , symbolicName() 00035 , description() 00036 { 00037 } 00038 00039 SRS_Action_(const ContainerAllocator& _alloc) 00040 : objectID(0) 00041 , objectName(_alloc) 00042 , actionID(0) 00043 , actionName(_alloc) 00044 , component_is_required(false) 00045 , components(_alloc) 00046 , symbolic_is_required(false) 00047 , symbolicID(0) 00048 , symbolicName(_alloc) 00049 , description(_alloc) 00050 { 00051 } 00052 00053 typedef uint32_t _objectID_type; 00054 uint32_t objectID; 00055 00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _objectName_type; 00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > objectName; 00058 00059 typedef uint32_t _actionID_type; 00060 uint32_t actionID; 00061 00062 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _actionName_type; 00063 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > actionName; 00064 00065 typedef uint8_t _component_is_required_type; 00066 uint8_t component_is_required; 00067 00068 typedef std::vector< ::srs_msgs::Component_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::Component_<ContainerAllocator> >::other > _components_type; 00069 std::vector< ::srs_msgs::Component_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::Component_<ContainerAllocator> >::other > components; 00070 00071 typedef uint8_t _symbolic_is_required_type; 00072 uint8_t symbolic_is_required; 00073 00074 typedef uint32_t _symbolicID_type; 00075 uint32_t symbolicID; 00076 00077 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _symbolicName_type; 00078 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > symbolicName; 00079 00080 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type; 00081 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description; 00082 00083 00084 ROS_DEPRECATED uint32_t get_components_size() const { return (uint32_t)components.size(); } 00085 ROS_DEPRECATED void set_components_size(uint32_t size) { components.resize((size_t)size); } 00086 ROS_DEPRECATED void get_components_vec(std::vector< ::srs_msgs::Component_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::Component_<ContainerAllocator> >::other > & vec) const { vec = this->components; } 00087 ROS_DEPRECATED void set_components_vec(const std::vector< ::srs_msgs::Component_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::Component_<ContainerAllocator> >::other > & vec) { this->components = vec; } 00088 private: 00089 static const char* __s_getDataType_() { return "srs_msgs/SRS_Action"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00092 00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00094 00095 private: 00096 static const char* __s_getMD5Sum_() { return "78f876cadd0a50a227e671e96dc7e09b"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00099 00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00101 00102 private: 00103 static const char* __s_getMessageDefinition_() { return "# this message contains information to define a SRS action \n\ 00104 \n\ 00105 uint32 objectID #targeted object\n\ 00106 \n\ 00107 string objectName #object name for easy reading\n\ 00108 \n\ 00109 uint32 actionID #action to be applied\n\ 00110 \n\ 00111 string actionName #action name for easy reading\n\ 00112 \n\ 00113 bool component_is_required #a component is required or not\n\ 00114 \n\ 00115 srs_msgs/Component[] components #components required\n\ 00116 \n\ 00117 bool symbolic_is_required #a component is required or not\n\ 00118 \n\ 00119 uint32 symbolicID # ID of the symbolic\n\ 00120 \n\ 00121 string symbolicName #name of the symbolic\n\ 00122 \n\ 00123 string description #a short description on the current action set to null if no description\n\ 00124 ================================================================================\n\ 00125 MSG: srs_msgs/Component\n\ 00126 # this message contains information to define a list of required components for an action \n\ 00127 uint32 componentID #ID\n\ 00128 string componentName #Name\n\ 00129 \n\ 00130 "; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00135 00136 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00137 { 00138 ros::serialization::OStream stream(write_ptr, 1000000000); 00139 ros::serialization::serialize(stream, objectID); 00140 ros::serialization::serialize(stream, objectName); 00141 ros::serialization::serialize(stream, actionID); 00142 ros::serialization::serialize(stream, actionName); 00143 ros::serialization::serialize(stream, component_is_required); 00144 ros::serialization::serialize(stream, components); 00145 ros::serialization::serialize(stream, symbolic_is_required); 00146 ros::serialization::serialize(stream, symbolicID); 00147 ros::serialization::serialize(stream, symbolicName); 00148 ros::serialization::serialize(stream, description); 00149 return stream.getData(); 00150 } 00151 00152 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00153 { 00154 ros::serialization::IStream stream(read_ptr, 1000000000); 00155 ros::serialization::deserialize(stream, objectID); 00156 ros::serialization::deserialize(stream, objectName); 00157 ros::serialization::deserialize(stream, actionID); 00158 ros::serialization::deserialize(stream, actionName); 00159 ros::serialization::deserialize(stream, component_is_required); 00160 ros::serialization::deserialize(stream, components); 00161 ros::serialization::deserialize(stream, symbolic_is_required); 00162 ros::serialization::deserialize(stream, symbolicID); 00163 ros::serialization::deserialize(stream, symbolicName); 00164 ros::serialization::deserialize(stream, description); 00165 return stream.getData(); 00166 } 00167 00168 ROS_DEPRECATED virtual uint32_t serializationLength() const 00169 { 00170 uint32_t size = 0; 00171 size += ros::serialization::serializationLength(objectID); 00172 size += ros::serialization::serializationLength(objectName); 00173 size += ros::serialization::serializationLength(actionID); 00174 size += ros::serialization::serializationLength(actionName); 00175 size += ros::serialization::serializationLength(component_is_required); 00176 size += ros::serialization::serializationLength(components); 00177 size += ros::serialization::serializationLength(symbolic_is_required); 00178 size += ros::serialization::serializationLength(symbolicID); 00179 size += ros::serialization::serializationLength(symbolicName); 00180 size += ros::serialization::serializationLength(description); 00181 return size; 00182 } 00183 00184 typedef boost::shared_ptr< ::srs_msgs::SRS_Action_<ContainerAllocator> > Ptr; 00185 typedef boost::shared_ptr< ::srs_msgs::SRS_Action_<ContainerAllocator> const> ConstPtr; 00186 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00187 }; // struct SRS_Action 00188 typedef ::srs_msgs::SRS_Action_<std::allocator<void> > SRS_Action; 00189 00190 typedef boost::shared_ptr< ::srs_msgs::SRS_Action> SRS_ActionPtr; 00191 typedef boost::shared_ptr< ::srs_msgs::SRS_Action const> SRS_ActionConstPtr; 00192 00193 00194 template<typename ContainerAllocator> 00195 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::SRS_Action_<ContainerAllocator> & v) 00196 { 00197 ros::message_operations::Printer< ::srs_msgs::SRS_Action_<ContainerAllocator> >::stream(s, "", v); 00198 return s;} 00199 00200 } // namespace srs_msgs 00201 00202 namespace ros 00203 { 00204 namespace message_traits 00205 { 00206 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::SRS_Action_<ContainerAllocator> > : public TrueType {}; 00207 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::SRS_Action_<ContainerAllocator> const> : public TrueType {}; 00208 template<class ContainerAllocator> 00209 struct MD5Sum< ::srs_msgs::SRS_Action_<ContainerAllocator> > { 00210 static const char* value() 00211 { 00212 return "78f876cadd0a50a227e671e96dc7e09b"; 00213 } 00214 00215 static const char* value(const ::srs_msgs::SRS_Action_<ContainerAllocator> &) { return value(); } 00216 static const uint64_t static_value1 = 0x78f876cadd0a50a2ULL; 00217 static const uint64_t static_value2 = 0x27e671e96dc7e09bULL; 00218 }; 00219 00220 template<class ContainerAllocator> 00221 struct DataType< ::srs_msgs::SRS_Action_<ContainerAllocator> > { 00222 static const char* value() 00223 { 00224 return "srs_msgs/SRS_Action"; 00225 } 00226 00227 static const char* value(const ::srs_msgs::SRS_Action_<ContainerAllocator> &) { return value(); } 00228 }; 00229 00230 template<class ContainerAllocator> 00231 struct Definition< ::srs_msgs::SRS_Action_<ContainerAllocator> > { 00232 static const char* value() 00233 { 00234 return "# this message contains information to define a SRS action \n\ 00235 \n\ 00236 uint32 objectID #targeted object\n\ 00237 \n\ 00238 string objectName #object name for easy reading\n\ 00239 \n\ 00240 uint32 actionID #action to be applied\n\ 00241 \n\ 00242 string actionName #action name for easy reading\n\ 00243 \n\ 00244 bool component_is_required #a component is required or not\n\ 00245 \n\ 00246 srs_msgs/Component[] components #components required\n\ 00247 \n\ 00248 bool symbolic_is_required #a component is required or not\n\ 00249 \n\ 00250 uint32 symbolicID # ID of the symbolic\n\ 00251 \n\ 00252 string symbolicName #name of the symbolic\n\ 00253 \n\ 00254 string description #a short description on the current action set to null if no description\n\ 00255 ================================================================================\n\ 00256 MSG: srs_msgs/Component\n\ 00257 # this message contains information to define a list of required components for an action \n\ 00258 uint32 componentID #ID\n\ 00259 string componentName #Name\n\ 00260 \n\ 00261 "; 00262 } 00263 00264 static const char* value(const ::srs_msgs::SRS_Action_<ContainerAllocator> &) { return value(); } 00265 }; 00266 00267 } // namespace message_traits 00268 } // namespace ros 00269 00270 namespace ros 00271 { 00272 namespace serialization 00273 { 00274 00275 template<class ContainerAllocator> struct Serializer< ::srs_msgs::SRS_Action_<ContainerAllocator> > 00276 { 00277 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00278 { 00279 stream.next(m.objectID); 00280 stream.next(m.objectName); 00281 stream.next(m.actionID); 00282 stream.next(m.actionName); 00283 stream.next(m.component_is_required); 00284 stream.next(m.components); 00285 stream.next(m.symbolic_is_required); 00286 stream.next(m.symbolicID); 00287 stream.next(m.symbolicName); 00288 stream.next(m.description); 00289 } 00290 00291 ROS_DECLARE_ALLINONE_SERIALIZER; 00292 }; // struct SRS_Action_ 00293 } // namespace serialization 00294 } // namespace ros 00295 00296 namespace ros 00297 { 00298 namespace message_operations 00299 { 00300 00301 template<class ContainerAllocator> 00302 struct Printer< ::srs_msgs::SRS_Action_<ContainerAllocator> > 00303 { 00304 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::SRS_Action_<ContainerAllocator> & v) 00305 { 00306 s << indent << "objectID: "; 00307 Printer<uint32_t>::stream(s, indent + " ", v.objectID); 00308 s << indent << "objectName: "; 00309 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.objectName); 00310 s << indent << "actionID: "; 00311 Printer<uint32_t>::stream(s, indent + " ", v.actionID); 00312 s << indent << "actionName: "; 00313 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.actionName); 00314 s << indent << "component_is_required: "; 00315 Printer<uint8_t>::stream(s, indent + " ", v.component_is_required); 00316 s << indent << "components[]" << std::endl; 00317 for (size_t i = 0; i < v.components.size(); ++i) 00318 { 00319 s << indent << " components[" << i << "]: "; 00320 s << std::endl; 00321 s << indent; 00322 Printer< ::srs_msgs::Component_<ContainerAllocator> >::stream(s, indent + " ", v.components[i]); 00323 } 00324 s << indent << "symbolic_is_required: "; 00325 Printer<uint8_t>::stream(s, indent + " ", v.symbolic_is_required); 00326 s << indent << "symbolicID: "; 00327 Printer<uint32_t>::stream(s, indent + " ", v.symbolicID); 00328 s << indent << "symbolicName: "; 00329 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.symbolicName); 00330 s << indent << "description: "; 00331 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description); 00332 } 00333 }; 00334 00335 00336 } // namespace message_operations 00337 } // namespace ros 00338 00339 #endif // SRS_MSGS_MESSAGE_SRS_ACTION_H 00340