ArmHandResult.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-ias_common/doc_stacks/2014-10-06_00-40-46.541507/ias_common/cogman_msgs/msg/ArmHandResult.msg */
00002 #ifndef COGMAN_MSGS_MESSAGE_ARMHANDRESULT_H
00003 #define COGMAN_MSGS_MESSAGE_ARMHANDRESULT_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 "vision_msgs/system_error.h"
00018 
00019 namespace cogman_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ArmHandResult_ {
00023   typedef ArmHandResult_<ContainerAllocator> Type;
00024 
00025   ArmHandResult_()
00026   : distance_to_goal(0.0)
00027   , situation()
00028   , error()
00029   , better_base_ids()
00030   {
00031   }
00032 
00033   ArmHandResult_(const ContainerAllocator& _alloc)
00034   : distance_to_goal(0.0)
00035   , situation(_alloc)
00036   , error(_alloc)
00037   , better_base_ids(_alloc)
00038   {
00039   }
00040 
00041   typedef float _distance_to_goal_type;
00042   float distance_to_goal;
00043 
00044   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _situation_type;
00045   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  situation;
00046 
00047   typedef  ::vision_msgs::system_error_<ContainerAllocator>  _error_type;
00048    ::vision_msgs::system_error_<ContainerAllocator>  error;
00049 
00050   typedef std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other >  _better_base_ids_type;
00051   std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other >  better_base_ids;
00052 
00053 
00054   typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > Ptr;
00055   typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult_<ContainerAllocator>  const> ConstPtr;
00056   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 }; // struct ArmHandResult
00058 typedef  ::cogman_msgs::ArmHandResult_<std::allocator<void> > ArmHandResult;
00059 
00060 typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult> ArmHandResultPtr;
00061 typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult const> ArmHandResultConstPtr;
00062 
00063 
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const  ::cogman_msgs::ArmHandResult_<ContainerAllocator> & v)
00066 {
00067   ros::message_operations::Printer< ::cogman_msgs::ArmHandResult_<ContainerAllocator> >::stream(s, "", v);
00068   return s;}
00069 
00070 } // namespace cogman_msgs
00071 
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::cogman_msgs::ArmHandResult_<ContainerAllocator>  const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > {
00080   static const char* value() 
00081   {
00082     return "96fe826375e10406e4d32548d703c09c";
00083   }
00084 
00085   static const char* value(const  ::cogman_msgs::ArmHandResult_<ContainerAllocator> &) { return value(); } 
00086   static const uint64_t static_value1 = 0x96fe826375e10406ULL;
00087   static const uint64_t static_value2 = 0xe4d32548d703c09cULL;
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct DataType< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "cogman_msgs/ArmHandResult";
00095   }
00096 
00097   static const char* value(const  ::cogman_msgs::ArmHandResult_<ContainerAllocator> &) { return value(); } 
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct Definition< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00105 \n\
00106 #result\n\
00107 float32 distance_to_goal\n\
00108 string situation            #Allowed: grasped slipped released unreachable ik_deadlock need_to_move_base\n\
00109 vision_msgs/system_error error   #Description of error\n\
00110 uint64[] better_base_ids    #List of lo_id's where we could grasp better\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: vision_msgs/system_error\n\
00114 uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\
00115 uint64 GRASP_FAILED = 128  # Grasp into the void\n\
00116 uint64 OBJECT_NOT_FOUND = 256\n\
00117 uint64 VISION_PRIMITIVE_FAILED = 512\n\
00118 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024  # Collide without expecting it\n\
00119 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\
00120 uint64 GRASP_FAILED_AND_CRASHED = 4096  # Throwing something out of the way\n\
00121 uint64 JLO_ERROR = 8192  # Could not get position\n\
00122 uint64 VECTOR_FIELD_CANT_REACH = 16384  # The arm got stuck along the way, did not reach the final grasping pose\n\
00123 \n\
00124 uint64  error_id                # One of the error constants defined above\n\
00125 string  node_name               # The node causing this error\n\
00126 string  error_description       # Further information about the error\n\
00127 \n\
00128 ";
00129   }
00130 
00131   static const char* value(const  ::cogman_msgs::ArmHandResult_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 } // namespace message_traits
00135 } // namespace ros
00136 
00137 namespace ros
00138 {
00139 namespace serialization
00140 {
00141 
00142 template<class ContainerAllocator> struct Serializer< ::cogman_msgs::ArmHandResult_<ContainerAllocator> >
00143 {
00144   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00145   {
00146     stream.next(m.distance_to_goal);
00147     stream.next(m.situation);
00148     stream.next(m.error);
00149     stream.next(m.better_base_ids);
00150   }
00151 
00152   ROS_DECLARE_ALLINONE_SERIALIZER;
00153 }; // struct ArmHandResult_
00154 } // namespace serialization
00155 } // namespace ros
00156 
00157 namespace ros
00158 {
00159 namespace message_operations
00160 {
00161 
00162 template<class ContainerAllocator>
00163 struct Printer< ::cogman_msgs::ArmHandResult_<ContainerAllocator> >
00164 {
00165   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::cogman_msgs::ArmHandResult_<ContainerAllocator> & v) 
00166   {
00167     s << indent << "distance_to_goal: ";
00168     Printer<float>::stream(s, indent + "  ", v.distance_to_goal);
00169     s << indent << "situation: ";
00170     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.situation);
00171     s << indent << "error: ";
00172 s << std::endl;
00173     Printer< ::vision_msgs::system_error_<ContainerAllocator> >::stream(s, indent + "  ", v.error);
00174     s << indent << "better_base_ids[]" << std::endl;
00175     for (size_t i = 0; i < v.better_base_ids.size(); ++i)
00176     {
00177       s << indent << "  better_base_ids[" << i << "]: ";
00178       Printer<uint64_t>::stream(s, indent + "  ", v.better_base_ids[i]);
00179     }
00180   }
00181 };
00182 
00183 
00184 } // namespace message_operations
00185 } // namespace ros
00186 
00187 #endif // COGMAN_MSGS_MESSAGE_ARMHANDRESULT_H
00188 


cogman_msgs
Author(s): Alexis Maldonado
autogenerated on Mon Oct 6 2014 00:48:49