00001
00002 #ifndef SMACH_MSGS_MESSAGE_SMACHCONTAINERINITIALSTATUSCMD_H
00003 #define SMACH_MSGS_MESSAGE_SMACHCONTAINERINITIALSTATUSCMD_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
00014 namespace smach_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct SmachContainerInitialStatusCmd_ : public ros::Message
00018 {
00019 typedef SmachContainerInitialStatusCmd_<ContainerAllocator> Type;
00020
00021 SmachContainerInitialStatusCmd_()
00022 : path()
00023 , initial_states()
00024 , local_data()
00025 {
00026 }
00027
00028 SmachContainerInitialStatusCmd_(const ContainerAllocator& _alloc)
00029 : path(_alloc)
00030 , initial_states(_alloc)
00031 , local_data(_alloc)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _path_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > path;
00037
00038 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;
00039 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;
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _local_data_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > local_data;
00043
00044
00045 ROS_DEPRECATED uint32_t get_initial_states_size() const { return (uint32_t)initial_states.size(); }
00046 ROS_DEPRECATED void set_initial_states_size(uint32_t size) { initial_states.resize((size_t)size); }
00047 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; }
00048 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; }
00049 private:
00050 static const char* __s_getDataType_() { return "smach_msgs/SmachContainerInitialStatusCmd"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00053
00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00055
00056 private:
00057 static const char* __s_getMD5Sum_() { return "45f8cf31fc29b829db77f23001f788d6"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00060
00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00062
00063 private:
00064 static const char* __s_getMessageDefinition_() { return "# The path to the node in the server\n\
00065 string path\n\
00066 \n\
00067 # The desired initial state(s)\n\
00068 string[] initial_states\n\
00069 \n\
00070 # Initial values for the local user data of the state machine\n\
00071 # A pickled user data structure\n\
00072 string local_data\n\
00073 \n\
00074 "; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00081 {
00082 ros::serialization::OStream stream(write_ptr, 1000000000);
00083 ros::serialization::serialize(stream, path);
00084 ros::serialization::serialize(stream, initial_states);
00085 ros::serialization::serialize(stream, local_data);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00090 {
00091 ros::serialization::IStream stream(read_ptr, 1000000000);
00092 ros::serialization::deserialize(stream, path);
00093 ros::serialization::deserialize(stream, initial_states);
00094 ros::serialization::deserialize(stream, local_data);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint32_t serializationLength() const
00099 {
00100 uint32_t size = 0;
00101 size += ros::serialization::serializationLength(path);
00102 size += ros::serialization::serializationLength(initial_states);
00103 size += ros::serialization::serializationLength(local_data);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::smach_msgs::SmachContainerInitialStatusCmd_<std::allocator<void> > SmachContainerInitialStatusCmd;
00111
00112 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd> SmachContainerInitialStatusCmdPtr;
00113 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd const> SmachContainerInitialStatusCmdConstPtr;
00114
00115
00116 template<typename ContainerAllocator>
00117 std::ostream& operator<<(std::ostream& s, const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> & v)
00118 {
00119 ros::message_operations::Printer< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> >::stream(s, "", v);
00120 return s;}
00121
00122 }
00123
00124 namespace ros
00125 {
00126 namespace message_traits
00127 {
00128 template<class ContainerAllocator>
00129 struct MD5Sum< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "45f8cf31fc29b829db77f23001f788d6";
00133 }
00134
00135 static const char* value(const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0x45f8cf31fc29b829ULL;
00137 static const uint64_t static_value2 = 0xdb77f23001f788d6ULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "smach_msgs/SmachContainerInitialStatusCmd";
00145 }
00146
00147 static const char* value(const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "# The path to the node in the server\n\
00155 string path\n\
00156 \n\
00157 # The desired initial state(s)\n\
00158 string[] initial_states\n\
00159 \n\
00160 # Initial values for the local user data of the state machine\n\
00161 # A pickled user data structure\n\
00162 string local_data\n\
00163 \n\
00164 ";
00165 }
00166
00167 static const char* value(const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 }
00171 }
00172
00173 namespace ros
00174 {
00175 namespace serialization
00176 {
00177
00178 template<class ContainerAllocator> struct Serializer< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> >
00179 {
00180 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00181 {
00182 stream.next(m.path);
00183 stream.next(m.initial_states);
00184 stream.next(m.local_data);
00185 }
00186
00187 ROS_DECLARE_ALLINONE_SERIALIZER;
00188 };
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace message_operations
00195 {
00196
00197 template<class ContainerAllocator>
00198 struct Printer< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> >
00199 {
00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> & v)
00201 {
00202 s << indent << "path: ";
00203 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.path);
00204 s << indent << "initial_states[]" << std::endl;
00205 for (size_t i = 0; i < v.initial_states.size(); ++i)
00206 {
00207 s << indent << " initial_states[" << i << "]: ";
00208 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.initial_states[i]);
00209 }
00210 s << indent << "local_data: ";
00211 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.local_data);
00212 }
00213 };
00214
00215
00216 }
00217 }
00218
00219 #endif // SMACH_MSGS_MESSAGE_SMACHCONTAINERINITIALSTATUSCMD_H
00220