GraspResult.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-object_manipulation/doc_stacks/2014-01-02_11-30-37.444899/object_manipulation/object_manipulation_msgs/msg/GraspResult.msg */
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPRESULT_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPRESULT_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 GraspResult_ {
00022   typedef GraspResult_<ContainerAllocator> Type;
00023 
00024   GraspResult_()
00025   : result_code(0)
00026   , continuation_possible(false)
00027   {
00028   }
00029 
00030   GraspResult_(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 { GRASP_OUT_OF_REACH = 2 };
00044   enum { GRASP_IN_COLLISION = 3 };
00045   enum { GRASP_UNFEASIBLE = 4 };
00046   enum { PREGRASP_OUT_OF_REACH = 5 };
00047   enum { PREGRASP_IN_COLLISION = 6 };
00048   enum { PREGRASP_UNFEASIBLE = 7 };
00049   enum { LIFT_OUT_OF_REACH = 8 };
00050   enum { LIFT_IN_COLLISION = 9 };
00051   enum { LIFT_UNFEASIBLE = 10 };
00052   enum { MOVE_ARM_FAILED = 11 };
00053   enum { GRASP_FAILED = 12 };
00054   enum { LIFT_FAILED = 13 };
00055   enum { RETREAT_FAILED = 14 };
00056 
00057   typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > Ptr;
00058   typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult_<ContainerAllocator>  const> ConstPtr;
00059   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 }; // struct GraspResult
00061 typedef  ::object_manipulation_msgs::GraspResult_<std::allocator<void> > GraspResult;
00062 
00063 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult> GraspResultPtr;
00064 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult const> GraspResultConstPtr;
00065 
00066 
00067 template<typename ContainerAllocator>
00068 std::ostream& operator<<(std::ostream& s, const  ::object_manipulation_msgs::GraspResult_<ContainerAllocator> & v)
00069 {
00070   ros::message_operations::Printer< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> >::stream(s, "", v);
00071   return s;}
00072 
00073 } // namespace object_manipulation_msgs
00074 
00075 namespace ros
00076 {
00077 namespace message_traits
00078 {
00079 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > : public TrueType {};
00080 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspResult_<ContainerAllocator>  const> : public TrueType {};
00081 template<class ContainerAllocator>
00082 struct MD5Sum< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "c8a909da895cdddc0630aafd59848191";
00086   }
00087 
00088   static const char* value(const  ::object_manipulation_msgs::GraspResult_<ContainerAllocator> &) { return value(); } 
00089   static const uint64_t static_value1 = 0xc8a909da895cdddcULL;
00090   static const uint64_t static_value2 = 0x0630aafd59848191ULL;
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct DataType< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "object_manipulation_msgs/GraspResult";
00098   }
00099 
00100   static const char* value(const  ::object_manipulation_msgs::GraspResult_<ContainerAllocator> &) { return value(); } 
00101 };
00102 
00103 template<class ContainerAllocator>
00104 struct Definition< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "int32 SUCCESS = 1\n\
00108 int32 GRASP_OUT_OF_REACH = 2\n\
00109 int32 GRASP_IN_COLLISION = 3\n\
00110 int32 GRASP_UNFEASIBLE = 4\n\
00111 int32 PREGRASP_OUT_OF_REACH = 5\n\
00112 int32 PREGRASP_IN_COLLISION = 6\n\
00113 int32 PREGRASP_UNFEASIBLE = 7\n\
00114 int32 LIFT_OUT_OF_REACH = 8\n\
00115 int32 LIFT_IN_COLLISION = 9\n\
00116 int32 LIFT_UNFEASIBLE = 10\n\
00117 int32 MOVE_ARM_FAILED = 11\n\
00118 int32 GRASP_FAILED = 12\n\
00119 int32 LIFT_FAILED = 13\n\
00120 int32 RETREAT_FAILED = 14\n\
00121 int32 result_code\n\
00122 \n\
00123 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00124 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00125 # before proceeding\n\
00126 bool continuation_possible\n\
00127 \n\
00128 ";
00129   }
00130 
00131   static const char* value(const  ::object_manipulation_msgs::GraspResult_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > : public TrueType {};
00135 } // namespace message_traits
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace serialization
00141 {
00142 
00143 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> >
00144 {
00145   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00146   {
00147     stream.next(m.result_code);
00148     stream.next(m.continuation_possible);
00149   }
00150 
00151   ROS_DECLARE_ALLINONE_SERIALIZER;
00152 }; // struct GraspResult_
00153 } // namespace serialization
00154 } // namespace ros
00155 
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160 
00161 template<class ContainerAllocator>
00162 struct Printer< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> >
00163 {
00164   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::object_manipulation_msgs::GraspResult_<ContainerAllocator> & v) 
00165   {
00166     s << indent << "result_code: ";
00167     Printer<int32_t>::stream(s, indent + "  ", v.result_code);
00168     s << indent << "continuation_possible: ";
00169     Printer<uint8_t>::stream(s, indent + "  ", v.continuation_possible);
00170   }
00171 };
00172 
00173 
00174 } // namespace message_operations
00175 } // namespace ros
00176 
00177 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPRESULT_H
00178 


object_manipulation_msgs
Author(s): Matei Ciocarlie
autogenerated on Thu Jan 2 2014 11:38:12