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