00001
00002 #ifndef SMACH_MSGS_MESSAGE_SMACHCONTAINERSTRUCTURE_H
00003 #define SMACH_MSGS_MESSAGE_SMACHCONTAINERSTRUCTURE_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 SmachContainerStructure_ {
00023 typedef SmachContainerStructure_<ContainerAllocator> Type;
00024
00025 SmachContainerStructure_()
00026 : header()
00027 , path()
00028 , children()
00029 , internal_outcomes()
00030 , outcomes_from()
00031 , outcomes_to()
00032 , container_outcomes()
00033 {
00034 }
00035
00036 SmachContainerStructure_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , path(_alloc)
00039 , children(_alloc)
00040 , internal_outcomes(_alloc)
00041 , outcomes_from(_alloc)
00042 , outcomes_to(_alloc)
00043 , container_outcomes(_alloc)
00044 {
00045 }
00046
00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00048 ::std_msgs::Header_<ContainerAllocator> header;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _path_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > path;
00052
00053 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 > _children_type;
00054 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 > children;
00055
00056 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 > _internal_outcomes_type;
00057 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 > internal_outcomes;
00058
00059 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 > _outcomes_from_type;
00060 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 > outcomes_from;
00061
00062 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 > _outcomes_to_type;
00063 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 > outcomes_to;
00064
00065 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 > _container_outcomes_type;
00066 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 > container_outcomes;
00067
00068
00069 ROS_DEPRECATED uint32_t get_children_size() const { return (uint32_t)children.size(); }
00070 ROS_DEPRECATED void set_children_size(uint32_t size) { children.resize((size_t)size); }
00071 ROS_DEPRECATED void get_children_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->children; }
00072 ROS_DEPRECATED void set_children_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->children = vec; }
00073 ROS_DEPRECATED uint32_t get_internal_outcomes_size() const { return (uint32_t)internal_outcomes.size(); }
00074 ROS_DEPRECATED void set_internal_outcomes_size(uint32_t size) { internal_outcomes.resize((size_t)size); }
00075 ROS_DEPRECATED void get_internal_outcomes_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->internal_outcomes; }
00076 ROS_DEPRECATED void set_internal_outcomes_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->internal_outcomes = vec; }
00077 ROS_DEPRECATED uint32_t get_outcomes_from_size() const { return (uint32_t)outcomes_from.size(); }
00078 ROS_DEPRECATED void set_outcomes_from_size(uint32_t size) { outcomes_from.resize((size_t)size); }
00079 ROS_DEPRECATED void get_outcomes_from_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->outcomes_from; }
00080 ROS_DEPRECATED void set_outcomes_from_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->outcomes_from = vec; }
00081 ROS_DEPRECATED uint32_t get_outcomes_to_size() const { return (uint32_t)outcomes_to.size(); }
00082 ROS_DEPRECATED void set_outcomes_to_size(uint32_t size) { outcomes_to.resize((size_t)size); }
00083 ROS_DEPRECATED void get_outcomes_to_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->outcomes_to; }
00084 ROS_DEPRECATED void set_outcomes_to_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->outcomes_to = vec; }
00085 ROS_DEPRECATED uint32_t get_container_outcomes_size() const { return (uint32_t)container_outcomes.size(); }
00086 ROS_DEPRECATED void set_container_outcomes_size(uint32_t size) { container_outcomes.resize((size_t)size); }
00087 ROS_DEPRECATED void get_container_outcomes_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->container_outcomes; }
00088 ROS_DEPRECATED void set_container_outcomes_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->container_outcomes = vec; }
00089 private:
00090 static const char* __s_getDataType_() { return "smach_msgs/SmachContainerStructure"; }
00091 public:
00092 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00093
00094 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00095
00096 private:
00097 static const char* __s_getMD5Sum_() { return "3d3d1e0d0f99779ee9e58101a5dcf7ea"; }
00098 public:
00099 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00100
00101 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00102
00103 private:
00104 static const char* __s_getMessageDefinition_() { return "Header header\n\
00105 \n\
00106 # The path to this node in the server\n\
00107 string path\n\
00108 \n\
00109 # The children of this node\n\
00110 string[] children\n\
00111 \n\
00112 # The outcome edges\n\
00113 string[] internal_outcomes\n\
00114 string[] outcomes_from\n\
00115 string[] outcomes_to\n\
00116 \n\
00117 # The potential outcomes from this container\n\
00118 string[] container_outcomes\n\
00119 \n\
00120 ================================================================================\n\
00121 MSG: std_msgs/Header\n\
00122 # Standard metadata for higher-level stamped data types.\n\
00123 # This is generally used to communicate timestamped data \n\
00124 # in a particular coordinate frame.\n\
00125 # \n\
00126 # sequence ID: consecutively increasing ID \n\
00127 uint32 seq\n\
00128 #Two-integer timestamp that is expressed as:\n\
00129 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00130 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00131 # time-handling sugar is provided by the client library\n\
00132 time stamp\n\
00133 #Frame this data is associated with\n\
00134 # 0: no frame\n\
00135 # 1: global frame\n\
00136 string frame_id\n\
00137 \n\
00138 "; }
00139 public:
00140 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00141
00142 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00143
00144 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00145 {
00146 ros::serialization::OStream stream(write_ptr, 1000000000);
00147 ros::serialization::serialize(stream, header);
00148 ros::serialization::serialize(stream, path);
00149 ros::serialization::serialize(stream, children);
00150 ros::serialization::serialize(stream, internal_outcomes);
00151 ros::serialization::serialize(stream, outcomes_from);
00152 ros::serialization::serialize(stream, outcomes_to);
00153 ros::serialization::serialize(stream, container_outcomes);
00154 return stream.getData();
00155 }
00156
00157 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00158 {
00159 ros::serialization::IStream stream(read_ptr, 1000000000);
00160 ros::serialization::deserialize(stream, header);
00161 ros::serialization::deserialize(stream, path);
00162 ros::serialization::deserialize(stream, children);
00163 ros::serialization::deserialize(stream, internal_outcomes);
00164 ros::serialization::deserialize(stream, outcomes_from);
00165 ros::serialization::deserialize(stream, outcomes_to);
00166 ros::serialization::deserialize(stream, container_outcomes);
00167 return stream.getData();
00168 }
00169
00170 ROS_DEPRECATED virtual uint32_t serializationLength() const
00171 {
00172 uint32_t size = 0;
00173 size += ros::serialization::serializationLength(header);
00174 size += ros::serialization::serializationLength(path);
00175 size += ros::serialization::serializationLength(children);
00176 size += ros::serialization::serializationLength(internal_outcomes);
00177 size += ros::serialization::serializationLength(outcomes_from);
00178 size += ros::serialization::serializationLength(outcomes_to);
00179 size += ros::serialization::serializationLength(container_outcomes);
00180 return size;
00181 }
00182
00183 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > Ptr;
00184 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> const> ConstPtr;
00185 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00186 };
00187 typedef ::smach_msgs::SmachContainerStructure_<std::allocator<void> > SmachContainerStructure;
00188
00189 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStructure> SmachContainerStructurePtr;
00190 typedef boost::shared_ptr< ::smach_msgs::SmachContainerStructure const> SmachContainerStructureConstPtr;
00191
00192
00193 template<typename ContainerAllocator>
00194 std::ostream& operator<<(std::ostream& s, const ::smach_msgs::SmachContainerStructure_<ContainerAllocator> & v)
00195 {
00196 ros::message_operations::Printer< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> >::stream(s, "", v);
00197 return s;}
00198
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_traits
00204 {
00205 template<class ContainerAllocator> struct IsMessage< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > : public TrueType {};
00206 template<class ContainerAllocator> struct IsMessage< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> const> : public TrueType {};
00207 template<class ContainerAllocator>
00208 struct MD5Sum< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "3d3d1e0d0f99779ee9e58101a5dcf7ea";
00212 }
00213
00214 static const char* value(const ::smach_msgs::SmachContainerStructure_<ContainerAllocator> &) { return value(); }
00215 static const uint64_t static_value1 = 0x3d3d1e0d0f99779eULL;
00216 static const uint64_t static_value2 = 0xe9e58101a5dcf7eaULL;
00217 };
00218
00219 template<class ContainerAllocator>
00220 struct DataType< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > {
00221 static const char* value()
00222 {
00223 return "smach_msgs/SmachContainerStructure";
00224 }
00225
00226 static const char* value(const ::smach_msgs::SmachContainerStructure_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 template<class ContainerAllocator>
00230 struct Definition< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > {
00231 static const char* value()
00232 {
00233 return "Header header\n\
00234 \n\
00235 # The path to this node in the server\n\
00236 string path\n\
00237 \n\
00238 # The children of this node\n\
00239 string[] children\n\
00240 \n\
00241 # The outcome edges\n\
00242 string[] internal_outcomes\n\
00243 string[] outcomes_from\n\
00244 string[] outcomes_to\n\
00245 \n\
00246 # The potential outcomes from this container\n\
00247 string[] container_outcomes\n\
00248 \n\
00249 ================================================================================\n\
00250 MSG: std_msgs/Header\n\
00251 # Standard metadata for higher-level stamped data types.\n\
00252 # This is generally used to communicate timestamped data \n\
00253 # in a particular coordinate frame.\n\
00254 # \n\
00255 # sequence ID: consecutively increasing ID \n\
00256 uint32 seq\n\
00257 #Two-integer timestamp that is expressed as:\n\
00258 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00259 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00260 # time-handling sugar is provided by the client library\n\
00261 time stamp\n\
00262 #Frame this data is associated with\n\
00263 # 0: no frame\n\
00264 # 1: global frame\n\
00265 string frame_id\n\
00266 \n\
00267 ";
00268 }
00269
00270 static const char* value(const ::smach_msgs::SmachContainerStructure_<ContainerAllocator> &) { return value(); }
00271 };
00272
00273 template<class ContainerAllocator> struct HasHeader< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > : public TrueType {};
00274 template<class ContainerAllocator> struct HasHeader< const ::smach_msgs::SmachContainerStructure_<ContainerAllocator> > : public TrueType {};
00275 }
00276 }
00277
00278 namespace ros
00279 {
00280 namespace serialization
00281 {
00282
00283 template<class ContainerAllocator> struct Serializer< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> >
00284 {
00285 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00286 {
00287 stream.next(m.header);
00288 stream.next(m.path);
00289 stream.next(m.children);
00290 stream.next(m.internal_outcomes);
00291 stream.next(m.outcomes_from);
00292 stream.next(m.outcomes_to);
00293 stream.next(m.container_outcomes);
00294 }
00295
00296 ROS_DECLARE_ALLINONE_SERIALIZER;
00297 };
00298 }
00299 }
00300
00301 namespace ros
00302 {
00303 namespace message_operations
00304 {
00305
00306 template<class ContainerAllocator>
00307 struct Printer< ::smach_msgs::SmachContainerStructure_<ContainerAllocator> >
00308 {
00309 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::smach_msgs::SmachContainerStructure_<ContainerAllocator> & v)
00310 {
00311 s << indent << "header: ";
00312 s << std::endl;
00313 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00314 s << indent << "path: ";
00315 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.path);
00316 s << indent << "children[]" << std::endl;
00317 for (size_t i = 0; i < v.children.size(); ++i)
00318 {
00319 s << indent << " children[" << i << "]: ";
00320 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.children[i]);
00321 }
00322 s << indent << "internal_outcomes[]" << std::endl;
00323 for (size_t i = 0; i < v.internal_outcomes.size(); ++i)
00324 {
00325 s << indent << " internal_outcomes[" << i << "]: ";
00326 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.internal_outcomes[i]);
00327 }
00328 s << indent << "outcomes_from[]" << std::endl;
00329 for (size_t i = 0; i < v.outcomes_from.size(); ++i)
00330 {
00331 s << indent << " outcomes_from[" << i << "]: ";
00332 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.outcomes_from[i]);
00333 }
00334 s << indent << "outcomes_to[]" << std::endl;
00335 for (size_t i = 0; i < v.outcomes_to.size(); ++i)
00336 {
00337 s << indent << " outcomes_to[" << i << "]: ";
00338 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.outcomes_to[i]);
00339 }
00340 s << indent << "container_outcomes[]" << std::endl;
00341 for (size_t i = 0; i < v.container_outcomes.size(); ++i)
00342 {
00343 s << indent << " container_outcomes[" << i << "]: ";
00344 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.container_outcomes[i]);
00345 }
00346 }
00347 };
00348
00349
00350 }
00351 }
00352
00353 #endif // SMACH_MSGS_MESSAGE_SMACHCONTAINERSTRUCTURE_H
00354