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