Go to the documentation of this file.00001
00002 #ifndef SRS_KNOWLEDGE_MESSAGE_MOVEACTION_H
00003 #define SRS_KNOWLEDGE_MESSAGE_MOVEACTION_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 "geometry_msgs/Pose2D.h"
00018
00019 namespace srs_knowledge
00020 {
00021 template <class ContainerAllocator>
00022 struct MoveAction_ {
00023 typedef MoveAction_<ContainerAllocator> Type;
00024
00025 MoveAction_()
00026 : dim(0)
00027 , targetPose2D()
00028 , ifWaitObjectTaken(false)
00029 {
00030 }
00031
00032 MoveAction_(const ContainerAllocator& _alloc)
00033 : dim(0)
00034 , targetPose2D(_alloc)
00035 , ifWaitObjectTaken(false)
00036 {
00037 }
00038
00039 typedef int32_t _dim_type;
00040 int32_t dim;
00041
00042 typedef ::geometry_msgs::Pose2D_<ContainerAllocator> _targetPose2D_type;
00043 ::geometry_msgs::Pose2D_<ContainerAllocator> targetPose2D;
00044
00045 typedef uint8_t _ifWaitObjectTaken_type;
00046 uint8_t ifWaitObjectTaken;
00047
00048
00049 typedef boost::shared_ptr< ::srs_knowledge::MoveAction_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::srs_knowledge::MoveAction_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::srs_knowledge::MoveAction_<std::allocator<void> > MoveAction;
00054
00055 typedef boost::shared_ptr< ::srs_knowledge::MoveAction> MoveActionPtr;
00056 typedef boost::shared_ptr< ::srs_knowledge::MoveAction const> MoveActionConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::MoveAction_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::srs_knowledge::MoveAction_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::MoveAction_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::MoveAction_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::srs_knowledge::MoveAction_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "ff89e1acfb05cc083ae6d59fe1ff3ffd";
00078 }
00079
00080 static const char* value(const ::srs_knowledge::MoveAction_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0xff89e1acfb05cc08ULL;
00082 static const uint64_t static_value2 = 0x3ae6d59fe1ff3ffdULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::srs_knowledge::MoveAction_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "srs_knowledge/MoveAction";
00090 }
00091
00092 static const char* value(const ::srs_knowledge::MoveAction_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::srs_knowledge::MoveAction_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "# dim: dimension 2D or 3D or -1 (no move command.)\n\
00100 int32 dim\n\
00101 \n\
00102 # Target Pose\n\
00103 # geometry_msgs/Pose targetPose3D\n\
00104 geometry_msgs/Pose2D targetPose2D\n\
00105 \n\
00106 # Wait for object taken from tray at target or not\n\
00107 bool ifWaitObjectTaken\n\
00108 \n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: geometry_msgs/Pose2D\n\
00112 # This expresses a position and orientation on a 2D manifold.\n\
00113 \n\
00114 float64 x\n\
00115 float64 y\n\
00116 float64 theta\n\
00117 ";
00118 }
00119
00120 static const char* value(const ::srs_knowledge::MoveAction_<ContainerAllocator> &) { return value(); }
00121 };
00122
00123 template<class ContainerAllocator> struct IsFixedSize< ::srs_knowledge::MoveAction_<ContainerAllocator> > : public TrueType {};
00124 }
00125 }
00126
00127 namespace ros
00128 {
00129 namespace serialization
00130 {
00131
00132 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::MoveAction_<ContainerAllocator> >
00133 {
00134 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00135 {
00136 stream.next(m.dim);
00137 stream.next(m.targetPose2D);
00138 stream.next(m.ifWaitObjectTaken);
00139 }
00140
00141 ROS_DECLARE_ALLINONE_SERIALIZER;
00142 };
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace message_operations
00149 {
00150
00151 template<class ContainerAllocator>
00152 struct Printer< ::srs_knowledge::MoveAction_<ContainerAllocator> >
00153 {
00154 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::MoveAction_<ContainerAllocator> & v)
00155 {
00156 s << indent << "dim: ";
00157 Printer<int32_t>::stream(s, indent + " ", v.dim);
00158 s << indent << "targetPose2D: ";
00159 s << std::endl;
00160 Printer< ::geometry_msgs::Pose2D_<ContainerAllocator> >::stream(s, indent + " ", v.targetPose2D);
00161 s << indent << "ifWaitObjectTaken: ";
00162 Printer<uint8_t>::stream(s, indent + " ", v.ifWaitObjectTaken);
00163 }
00164 };
00165
00166
00167 }
00168 }
00169
00170 #endif // SRS_KNOWLEDGE_MESSAGE_MOVEACTION_H
00171