00001
00002 #ifndef PDDL_MSGS_MESSAGE_PDDLPROBLEM_H
00003 #define PDDL_MSGS_MESSAGE_PDDLPROBLEM_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/PDDLObject.h"
00018
00019 namespace pddl_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PDDLProblem_ {
00023 typedef PDDLProblem_<ContainerAllocator> Type;
00024
00025 PDDLProblem_()
00026 : name()
00027 , domain()
00028 , objects()
00029 , initial()
00030 , goal()
00031 {
00032 }
00033
00034 PDDLProblem_(const ContainerAllocator& _alloc)
00035 : name(_alloc)
00036 , domain(_alloc)
00037 , objects(_alloc)
00038 , initial(_alloc)
00039 , goal(_alloc)
00040 {
00041 }
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _domain_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > domain;
00048
00049 typedef std::vector< ::pddl_msgs::PDDLObject_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pddl_msgs::PDDLObject_<ContainerAllocator> >::other > _objects_type;
00050 std::vector< ::pddl_msgs::PDDLObject_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pddl_msgs::PDDLObject_<ContainerAllocator> >::other > objects;
00051
00052 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_type;
00053 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;
00054
00055 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _goal_type;
00056 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > goal;
00057
00058
00059 typedef boost::shared_ptr< ::pddl_msgs::PDDLProblem_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::pddl_msgs::PDDLProblem_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::pddl_msgs::PDDLProblem_<std::allocator<void> > PDDLProblem;
00064
00065 typedef boost::shared_ptr< ::pddl_msgs::PDDLProblem> PDDLProblemPtr;
00066 typedef boost::shared_ptr< ::pddl_msgs::PDDLProblem const> PDDLProblemConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::pddl_msgs::PDDLProblem_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::pddl_msgs::PDDLProblem_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::pddl_msgs::PDDLProblem_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::pddl_msgs::PDDLProblem_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::pddl_msgs::PDDLProblem_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "7216b7591930e96836a3288534e695f6";
00088 }
00089
00090 static const char* value(const ::pddl_msgs::PDDLProblem_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0x7216b7591930e968ULL;
00092 static const uint64_t static_value2 = 0x36a3288534e695f6ULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::pddl_msgs::PDDLProblem_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "pddl_msgs/PDDLProblem";
00100 }
00101
00102 static const char* value(const ::pddl_msgs::PDDLProblem_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::pddl_msgs::PDDLProblem_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "string name # name of problem\n\
00110 string domain # name of domain to use\n\
00111 pddl_msgs/PDDLObject[] objects # how to represent type?\n\
00112 string[] initial # initial condition\n\
00113 string goal # goal conjunction\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: pddl_msgs/PDDLObject\n\
00117 # definition of PDDLObject\n\
00118 string name\n\
00119 string type\n\
00120 \n\
00121 ";
00122 }
00123
00124 static const char* value(const ::pddl_msgs::PDDLProblem_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 }
00128 }
00129
00130 namespace ros
00131 {
00132 namespace serialization
00133 {
00134
00135 template<class ContainerAllocator> struct Serializer< ::pddl_msgs::PDDLProblem_<ContainerAllocator> >
00136 {
00137 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00138 {
00139 stream.next(m.name);
00140 stream.next(m.domain);
00141 stream.next(m.objects);
00142 stream.next(m.initial);
00143 stream.next(m.goal);
00144 }
00145
00146 ROS_DECLARE_ALLINONE_SERIALIZER;
00147 };
00148 }
00149 }
00150
00151 namespace ros
00152 {
00153 namespace message_operations
00154 {
00155
00156 template<class ContainerAllocator>
00157 struct Printer< ::pddl_msgs::PDDLProblem_<ContainerAllocator> >
00158 {
00159 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pddl_msgs::PDDLProblem_<ContainerAllocator> & v)
00160 {
00161 s << indent << "name: ";
00162 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00163 s << indent << "domain: ";
00164 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.domain);
00165 s << indent << "objects[]" << std::endl;
00166 for (size_t i = 0; i < v.objects.size(); ++i)
00167 {
00168 s << indent << " objects[" << i << "]: ";
00169 s << std::endl;
00170 s << indent;
00171 Printer< ::pddl_msgs::PDDLObject_<ContainerAllocator> >::stream(s, indent + " ", v.objects[i]);
00172 }
00173 s << indent << "initial[]" << std::endl;
00174 for (size_t i = 0; i < v.initial.size(); ++i)
00175 {
00176 s << indent << " initial[" << i << "]: ";
00177 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.initial[i]);
00178 }
00179 s << indent << "goal: ";
00180 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.goal);
00181 }
00182 };
00183
00184
00185 }
00186 }
00187
00188 #endif // PDDL_MSGS_MESSAGE_PDDLPROBLEM_H
00189