$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-executive_smach/doc_stacks/2013-03-01_15-24-25.455373/executive_smach/smach_msgs/msg/SmachContainerStatus.msg */ 00002 #ifndef SMACH_MSGS_MESSAGE_SMACHCONTAINERSTATUS_H 00003 #define SMACH_MSGS_MESSAGE_SMACHCONTAINERSTATUS_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 "std_msgs/Header.h" 00018 00019 namespace smach_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct SmachContainerStatus_ { 00023 typedef SmachContainerStatus_<ContainerAllocator> Type; 00024 00025 SmachContainerStatus_() 00026 : header() 00027 , path() 00028 , initial_states() 00029 , active_states() 00030 , local_data() 00031 , info() 00032 { 00033 } 00034 00035 SmachContainerStatus_(const ContainerAllocator& _alloc) 00036 : header(_alloc) 00037 , path(_alloc) 00038 , initial_states(_alloc) 00039 , active_states(_alloc) 00040 , local_data(_alloc) 00041 , info(_alloc) 00042 { 00043 } 00044 00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00046 ::std_msgs::Header_<ContainerAllocator> header; 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _path_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > path; 00050 00051 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _initial_states_type; 00052 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > initial_states; 00053 00054 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _active_states_type; 00055 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > active_states; 00056 00057 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _local_data_type; 00058 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > local_data; 00059 00060 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _info_type; 00061 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > info; 00062 00063 00064 ROS_DEPRECATED uint32_t get_initial_states_size() const { return (uint32_t)initial_states.size(); } 00065 ROS_DEPRECATED void set_initial_states_size(uint32_t size) { initial_states.resize((size_t)size); } 00066 ROS_DEPRECATED void get_initial_states_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->initial_states; } 00067 ROS_DEPRECATED void set_initial_states_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->initial_states = vec; } 00068 ROS_DEPRECATED uint32_t get_active_states_size() const { return (uint32_t)active_states.size(); } 00069 ROS_DEPRECATED void set_active_states_size(uint32_t size) { active_states.resize((size_t)size); } 00070 ROS_DEPRECATED void get_active_states_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->active_states; } 00071 ROS_DEPRECATED void set_active_states_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->active_states = vec; } 00072 private: 00073 static const char* __s_getDataType_() { return "smach_msgs/SmachContainerStatus"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00076 00077 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00078 00079 private: 00080 static const char* __s_getMD5Sum_() { return "5ba2bb79ac19e3842d562a191f2a675b"; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00083 00084 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00085 00086 private: 00087 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00088 \n\ 00089 # The path to this node in the server\n\ 00090 string path\n\ 00091 \n\ 00092 # The initial state description\n\ 00093 string[] initial_states\n\ 00094 \n\ 00095 # The current state description\n\ 00096 string[] active_states\n\ 00097 \n\ 00098 # A pickled user data structure\n\ 00099 string local_data\n\ 00100 \n\ 00101 # Debugging info string\n\ 00102 string info\n\ 00103 \n\ 00104 ================================================================================\n\ 00105 MSG: std_msgs/Header\n\ 00106 # Standard metadata for higher-level stamped data types.\n\ 00107 # This is generally used to communicate timestamped data \n\ 00108 # in a particular coordinate frame.\n\ 00109 # \n\ 00110 # sequence ID: consecutively increasing ID \n\ 00111 uint32 seq\n\ 00112 #Two-integer timestamp that is expressed as:\n\ 00113 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00114 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00115 # time-handling sugar is provided by the client library\n\ 00116 time stamp\n\ 00117 #Frame this data is associated with\n\ 00118 # 0: no frame\n\ 00119 # 1: global frame\n\ 00120 string frame_id\n\ 00121 \n\ 00122 "; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00129 { 00130 ros::serialization::OStream stream(write_ptr, 1000000000); 00131 ros::serialization::serialize(stream, header); 00132 ros::serialization::serialize(stream, path); 00133 ros::serialization::serialize(stream, initial_states); 00134 ros::serialization::serialize(stream, active_states); 00135 ros::serialization::serialize(stream, local_data); 00136 ros::serialization::serialize(stream, info); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00141 { 00142 ros::serialization::IStream stream(read_ptr, 1000000000); 00143 ros::serialization::deserialize(stream, header); 00144 ros::serialization::deserialize(stream, path); 00145 ros::serialization::deserialize(stream, initial_states); 00146 ros::serialization::deserialize(stream, active_states); 00147 ros::serialization::deserialize(stream, local_data); 00148 ros::serialization::deserialize(stream, info); 00149 return stream.getData(); 00150 } 00151 00152 ROS_DEPRECATED virtual uint32_t serializationLength() const 00153 { 00154 uint32_t size = 0; 00155 size += ros::serialization::serializationLength(header); 00156 size += ros::serialization::serializationLength(path); 00157 size += ros::serialization::serializationLength(initial_states); 00158 size += ros::serialization::serializationLength(active_states); 00159 size += ros::serialization::serializationLength(local_data); 00160 size += ros::serialization::serializationLength(info); 00161 return size; 00162 } 00163 00164 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > Ptr; 00165 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> const> ConstPtr; 00166 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00167 }; // struct SmachContainerStatus 00168 typedef ::smach_msgs::SmachContainerStatus_<std::allocator<void> > SmachContainerStatus; 00169 00170 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStatus> SmachContainerStatusPtr; 00171 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStatus const> SmachContainerStatusConstPtr; 00172 00173 00174 template<typename ContainerAllocator> 00175 std::ostream& operator<<(std::ostream& s, const ::smach_msgs::SmachContainerStatus_<ContainerAllocator> & v) 00176 { 00177 ros::message_operations::Printer< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> >::stream(s, "", v); 00178 return s;} 00179 00180 } // namespace smach_msgs 00181 00182 namespace ros 00183 { 00184 namespace message_traits 00185 { 00186 template<class ContainerAllocator> struct IsMessage< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > : public TrueType {}; 00187 template<class ContainerAllocator> struct IsMessage< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> const> : public TrueType {}; 00188 template<class ContainerAllocator> 00189 struct MD5Sum< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "5ba2bb79ac19e3842d562a191f2a675b"; 00193 } 00194 00195 static const char* value(const ::smach_msgs::SmachContainerStatus_<ContainerAllocator> &) { return value(); } 00196 static const uint64_t static_value1 = 0x5ba2bb79ac19e384ULL; 00197 static const uint64_t static_value2 = 0x2d562a191f2a675bULL; 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct DataType< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "smach_msgs/SmachContainerStatus"; 00205 } 00206 00207 static const char* value(const ::smach_msgs::SmachContainerStatus_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 template<class ContainerAllocator> 00211 struct Definition< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > { 00212 static const char* value() 00213 { 00214 return "Header header\n\ 00215 \n\ 00216 # The path to this node in the server\n\ 00217 string path\n\ 00218 \n\ 00219 # The initial state description\n\ 00220 string[] initial_states\n\ 00221 \n\ 00222 # The current state description\n\ 00223 string[] active_states\n\ 00224 \n\ 00225 # A pickled user data structure\n\ 00226 string local_data\n\ 00227 \n\ 00228 # Debugging info string\n\ 00229 string info\n\ 00230 \n\ 00231 ================================================================================\n\ 00232 MSG: std_msgs/Header\n\ 00233 # Standard metadata for higher-level stamped data types.\n\ 00234 # This is generally used to communicate timestamped data \n\ 00235 # in a particular coordinate frame.\n\ 00236 # \n\ 00237 # sequence ID: consecutively increasing ID \n\ 00238 uint32 seq\n\ 00239 #Two-integer timestamp that is expressed as:\n\ 00240 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00241 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00242 # time-handling sugar is provided by the client library\n\ 00243 time stamp\n\ 00244 #Frame this data is associated with\n\ 00245 # 0: no frame\n\ 00246 # 1: global frame\n\ 00247 string frame_id\n\ 00248 \n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::smach_msgs::SmachContainerStatus_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 template<class ContainerAllocator> struct HasHeader< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > : public TrueType {}; 00256 template<class ContainerAllocator> struct HasHeader< const ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > : public TrueType {}; 00257 } // namespace message_traits 00258 } // namespace ros 00259 00260 namespace ros 00261 { 00262 namespace serialization 00263 { 00264 00265 template<class ContainerAllocator> struct Serializer< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > 00266 { 00267 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00268 { 00269 stream.next(m.header); 00270 stream.next(m.path); 00271 stream.next(m.initial_states); 00272 stream.next(m.active_states); 00273 stream.next(m.local_data); 00274 stream.next(m.info); 00275 } 00276 00277 ROS_DECLARE_ALLINONE_SERIALIZER; 00278 }; // struct SmachContainerStatus_ 00279 } // namespace serialization 00280 } // namespace ros 00281 00282 namespace ros 00283 { 00284 namespace message_operations 00285 { 00286 00287 template<class ContainerAllocator> 00288 struct Printer< ::smach_msgs::SmachContainerStatus_<ContainerAllocator> > 00289 { 00290 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::smach_msgs::SmachContainerStatus_<ContainerAllocator> & v) 00291 { 00292 s << indent << "header: "; 00293 s << std::endl; 00294 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00295 s << indent << "path: "; 00296 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.path); 00297 s << indent << "initial_states[]" << std::endl; 00298 for (size_t i = 0; i < v.initial_states.size(); ++i) 00299 { 00300 s << indent << " initial_states[" << i << "]: "; 00301 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.initial_states[i]); 00302 } 00303 s << indent << "active_states[]" << std::endl; 00304 for (size_t i = 0; i < v.active_states.size(); ++i) 00305 { 00306 s << indent << " active_states[" << i << "]: "; 00307 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.active_states[i]); 00308 } 00309 s << indent << "local_data: "; 00310 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.local_data); 00311 s << indent << "info: "; 00312 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.info); 00313 } 00314 }; 00315 00316 00317 } // namespace message_operations 00318 } // namespace ros 00319 00320 #endif // SMACH_MSGS_MESSAGE_SMACHCONTAINERSTATUS_H 00321