Go to the documentation of this file.00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_PLACELOCATIONRESULT_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_PLACELOCATIONRESULT_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 object_manipulation_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct PlaceLocationResult_ {
00022 typedef PlaceLocationResult_<ContainerAllocator> Type;
00023
00024 PlaceLocationResult_()
00025 : result_code(0)
00026 , continuation_possible(false)
00027 {
00028 }
00029
00030 PlaceLocationResult_(const ContainerAllocator& _alloc)
00031 : result_code(0)
00032 , continuation_possible(false)
00033 {
00034 }
00035
00036 typedef int32_t _result_code_type;
00037 int32_t result_code;
00038
00039 typedef uint8_t _continuation_possible_type;
00040 uint8_t continuation_possible;
00041
00042 enum { SUCCESS = 1 };
00043 enum { PLACE_OUT_OF_REACH = 2 };
00044 enum { PLACE_IN_COLLISION = 3 };
00045 enum { PLACE_UNFEASIBLE = 4 };
00046 enum { PREPLACE_OUT_OF_REACH = 5 };
00047 enum { PREPLACE_IN_COLLISION = 6 };
00048 enum { PREPLACE_UNFEASIBLE = 7 };
00049 enum { RETREAT_OUT_OF_REACH = 8 };
00050 enum { RETREAT_IN_COLLISION = 9 };
00051 enum { RETREAT_UNFEASIBLE = 10 };
00052 enum { MOVE_ARM_FAILED = 11 };
00053 enum { PLACE_FAILED = 12 };
00054 enum { RETREAT_FAILED = 13 };
00055
00056 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > Ptr;
00057 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> const> ConstPtr;
00058 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00059 };
00060 typedef ::object_manipulation_msgs::PlaceLocationResult_<std::allocator<void> > PlaceLocationResult;
00061
00062 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult> PlaceLocationResultPtr;
00063 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult const> PlaceLocationResultConstPtr;
00064
00065
00066 template<typename ContainerAllocator>
00067 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> & v)
00068 {
00069 ros::message_operations::Printer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >::stream(s, "", v);
00070 return s;}
00071
00072 }
00073
00074 namespace ros
00075 {
00076 namespace message_traits
00077 {
00078 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > : public TrueType {};
00079 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> const> : public TrueType {};
00080 template<class ContainerAllocator>
00081 struct MD5Sum< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "8dd9edc3a2a98cab298ca81031224cda";
00085 }
00086
00087 static const char* value(const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> &) { return value(); }
00088 static const uint64_t static_value1 = 0x8dd9edc3a2a98cabULL;
00089 static const uint64_t static_value2 = 0x298ca81031224cdaULL;
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct DataType< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "object_manipulation_msgs/PlaceLocationResult";
00097 }
00098
00099 static const char* value(const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> &) { return value(); }
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct Definition< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "int32 SUCCESS = 1\n\
00107 int32 PLACE_OUT_OF_REACH = 2\n\
00108 int32 PLACE_IN_COLLISION = 3\n\
00109 int32 PLACE_UNFEASIBLE = 4\n\
00110 int32 PREPLACE_OUT_OF_REACH = 5\n\
00111 int32 PREPLACE_IN_COLLISION = 6\n\
00112 int32 PREPLACE_UNFEASIBLE = 7\n\
00113 int32 RETREAT_OUT_OF_REACH = 8\n\
00114 int32 RETREAT_IN_COLLISION = 9\n\
00115 int32 RETREAT_UNFEASIBLE = 10\n\
00116 int32 MOVE_ARM_FAILED = 11\n\
00117 int32 PLACE_FAILED = 12\n\
00118 int32 RETREAT_FAILED = 13\n\
00119 int32 result_code\n\
00120 \n\
00121 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00122 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00123 # before proceeding\n\
00124 bool continuation_possible\n\
00125 \n\
00126 ";
00127 }
00128
00129 static const char* value(const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> &) { return value(); }
00130 };
00131
00132 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > : public TrueType {};
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace serialization
00139 {
00140
00141 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >
00142 {
00143 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00144 {
00145 stream.next(m.result_code);
00146 stream.next(m.continuation_possible);
00147 }
00148
00149 ROS_DECLARE_ALLINONE_SERIALIZER;
00150 };
00151 }
00152 }
00153
00154 namespace ros
00155 {
00156 namespace message_operations
00157 {
00158
00159 template<class ContainerAllocator>
00160 struct Printer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >
00161 {
00162 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> & v)
00163 {
00164 s << indent << "result_code: ";
00165 Printer<int32_t>::stream(s, indent + " ", v.result_code);
00166 s << indent << "continuation_possible: ";
00167 Printer<uint8_t>::stream(s, indent + " ", v.continuation_possible);
00168 }
00169 };
00170
00171
00172 }
00173 }
00174
00175 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_PLACELOCATIONRESULT_H
00176