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