Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::smach_msgs::SmachContainerInitialStatusCmd_<std::allocator<void> > SmachContainerInitialStatusCmd;
00053
00054 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd> SmachContainerInitialStatusCmdPtr;
00055 typedef boost::shared_ptr< ::smach_msgs::SmachContainerInitialStatusCmd const> SmachContainerInitialStatusCmdConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "45f8cf31fc29b829db77f23001f788d6";
00077 }
00078
00079 static const char* value(const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0x45f8cf31fc29b829ULL;
00081 static const uint64_t static_value2 = 0xdb77f23001f788d6ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "smach_msgs/SmachContainerInitialStatusCmd";
00089 }
00090
00091 static const char* value(const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# The path to the node in the server\n\
00099 string path\n\
00100 \n\
00101 # The desired initial state(s)\n\
00102 string[] initial_states\n\
00103 \n\
00104 # Initial values for the local user data of the state machine\n\
00105 # A pickled user data structure\n\
00106 string local_data\n\
00107 \n\
00108 ";
00109 }
00110
00111 static const char* value(const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 }
00115 }
00116
00117 namespace ros
00118 {
00119 namespace serialization
00120 {
00121
00122 template<class ContainerAllocator> struct Serializer< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> >
00123 {
00124 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00125 {
00126 stream.next(m.path);
00127 stream.next(m.initial_states);
00128 stream.next(m.local_data);
00129 }
00130
00131 ROS_DECLARE_ALLINONE_SERIALIZER;
00132 };
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140
00141 template<class ContainerAllocator>
00142 struct Printer< ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> >
00143 {
00144 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::smach_msgs::SmachContainerInitialStatusCmd_<ContainerAllocator> & v)
00145 {
00146 s << indent << "path: ";
00147 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.path);
00148 s << indent << "initial_states[]" << std::endl;
00149 for (size_t i = 0; i < v.initial_states.size(); ++i)
00150 {
00151 s << indent << " initial_states[" << i << "]: ";
00152 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.initial_states[i]);
00153 }
00154 s << indent << "local_data: ";
00155 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.local_data);
00156 }
00157 };
00158
00159
00160 }
00161 }
00162
00163 #endif // SMACH_MSGS_MESSAGE_SMACHCONTAINERINITIALSTATUSCMD_H
00164