00001
00002 #ifndef PDDL_MSGS_MESSAGE_PDDLDOMAIN_H
00003 #define PDDL_MSGS_MESSAGE_PDDLDOMAIN_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 #include "pddl_msgs/PDDLAction.h"
00018
00019 namespace pddl_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PDDLDomain_ {
00023 typedef PDDLDomain_<ContainerAllocator> Type;
00024
00025 PDDLDomain_()
00026 : name()
00027 , requirements()
00028 , types()
00029 , constants()
00030 , predicates()
00031 , actions()
00032 , functions()
00033 {
00034 }
00035
00036 PDDLDomain_(const ContainerAllocator& _alloc)
00037 : name(_alloc)
00038 , requirements(_alloc)
00039 , types(_alloc)
00040 , constants(_alloc)
00041 , predicates(_alloc)
00042 , actions(_alloc)
00043 , functions(_alloc)
00044 {
00045 }
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _requirements_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > requirements;
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 > _types_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 > types;
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 > _constants_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 > constants;
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 > _predicates_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 > predicates;
00061
00062 typedef std::vector< ::pddl_msgs::PDDLAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pddl_msgs::PDDLAction_<ContainerAllocator> >::other > _actions_type;
00063 std::vector< ::pddl_msgs::PDDLAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pddl_msgs::PDDLAction_<ContainerAllocator> >::other > actions;
00064
00065 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 > _functions_type;
00066 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 > functions;
00067
00068
00069 typedef boost::shared_ptr< ::pddl_msgs::PDDLDomain_<ContainerAllocator> > Ptr;
00070 typedef boost::shared_ptr< ::pddl_msgs::PDDLDomain_<ContainerAllocator> const> ConstPtr;
00071 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 };
00073 typedef ::pddl_msgs::PDDLDomain_<std::allocator<void> > PDDLDomain;
00074
00075 typedef boost::shared_ptr< ::pddl_msgs::PDDLDomain> PDDLDomainPtr;
00076 typedef boost::shared_ptr< ::pddl_msgs::PDDLDomain const> PDDLDomainConstPtr;
00077
00078
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const ::pddl_msgs::PDDLDomain_<ContainerAllocator> & v)
00081 {
00082 ros::message_operations::Printer< ::pddl_msgs::PDDLDomain_<ContainerAllocator> >::stream(s, "", v);
00083 return s;}
00084
00085 }
00086
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::pddl_msgs::PDDLDomain_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::pddl_msgs::PDDLDomain_<ContainerAllocator> const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::pddl_msgs::PDDLDomain_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "efae1c485597d25a68729e978f828ed8";
00098 }
00099
00100 static const char* value(const ::pddl_msgs::PDDLDomain_<ContainerAllocator> &) { return value(); }
00101 static const uint64_t static_value1 = 0xefae1c485597d25aULL;
00102 static const uint64_t static_value2 = 0x68729e978f828ed8ULL;
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct DataType< ::pddl_msgs::PDDLDomain_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "pddl_msgs/PDDLDomain";
00110 }
00111
00112 static const char* value(const ::pddl_msgs::PDDLDomain_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct Definition< ::pddl_msgs::PDDLDomain_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "string name\n\
00120 string requirements\n\
00121 string[] types\n\
00122 string[] constants\n\
00123 string[] predicates\n\
00124 pddl_msgs/PDDLAction[] actions\n\
00125 string[] functions\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: pddl_msgs/PDDLAction\n\
00129 string name\n\
00130 # write String in S expression like \"(and foo var)\"\n\
00131 string parameters\n\
00132 string precondition\n\
00133 string effect\n\
00134 string on_condition\n\
00135 \n\
00136 ";
00137 }
00138
00139 static const char* value(const ::pddl_msgs::PDDLDomain_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 }
00143 }
00144
00145 namespace ros
00146 {
00147 namespace serialization
00148 {
00149
00150 template<class ContainerAllocator> struct Serializer< ::pddl_msgs::PDDLDomain_<ContainerAllocator> >
00151 {
00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00153 {
00154 stream.next(m.name);
00155 stream.next(m.requirements);
00156 stream.next(m.types);
00157 stream.next(m.constants);
00158 stream.next(m.predicates);
00159 stream.next(m.actions);
00160 stream.next(m.functions);
00161 }
00162
00163 ROS_DECLARE_ALLINONE_SERIALIZER;
00164 };
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_operations
00171 {
00172
00173 template<class ContainerAllocator>
00174 struct Printer< ::pddl_msgs::PDDLDomain_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pddl_msgs::PDDLDomain_<ContainerAllocator> & v)
00177 {
00178 s << indent << "name: ";
00179 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00180 s << indent << "requirements: ";
00181 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.requirements);
00182 s << indent << "types[]" << std::endl;
00183 for (size_t i = 0; i < v.types.size(); ++i)
00184 {
00185 s << indent << " types[" << i << "]: ";
00186 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.types[i]);
00187 }
00188 s << indent << "constants[]" << std::endl;
00189 for (size_t i = 0; i < v.constants.size(); ++i)
00190 {
00191 s << indent << " constants[" << i << "]: ";
00192 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.constants[i]);
00193 }
00194 s << indent << "predicates[]" << std::endl;
00195 for (size_t i = 0; i < v.predicates.size(); ++i)
00196 {
00197 s << indent << " predicates[" << i << "]: ";
00198 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.predicates[i]);
00199 }
00200 s << indent << "actions[]" << std::endl;
00201 for (size_t i = 0; i < v.actions.size(); ++i)
00202 {
00203 s << indent << " actions[" << i << "]: ";
00204 s << std::endl;
00205 s << indent;
00206 Printer< ::pddl_msgs::PDDLAction_<ContainerAllocator> >::stream(s, indent + " ", v.actions[i]);
00207 }
00208 s << indent << "functions[]" << std::endl;
00209 for (size_t i = 0; i < v.functions.size(); ++i)
00210 {
00211 s << indent << " functions[" << i << "]: ";
00212 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.functions[i]);
00213 }
00214 }
00215 };
00216
00217
00218 }
00219 }
00220
00221 #endif // PDDL_MSGS_MESSAGE_PDDLDOMAIN_H
00222