$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/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 ROS_DEPRECATED uint32_t get_better_base_ids_size() const { return (uint32_t)better_base_ids.size(); } 00055 ROS_DEPRECATED void set_better_base_ids_size(uint32_t size) { better_base_ids.resize((size_t)size); } 00056 ROS_DEPRECATED void get_better_base_ids_vec(std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > & vec) const { vec = this->better_base_ids; } 00057 ROS_DEPRECATED void set_better_base_ids_vec(const std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > & vec) { this->better_base_ids = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "cogman_msgs/ArmHandResult"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "96fe826375e10406e4d32548d703c09c"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00074 \n\ 00075 #result\n\ 00076 float32 distance_to_goal\n\ 00077 string situation #Allowed: grasped slipped released unreachable ik_deadlock need_to_move_base\n\ 00078 vision_msgs/system_error error #Description of error\n\ 00079 uint64[] better_base_ids #List of lo_id's where we could grasp better\n\ 00080 \n\ 00081 ================================================================================\n\ 00082 MSG: vision_msgs/system_error\n\ 00083 uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\ 00084 uint64 GRASP_FAILED = 128 # Grasp into the void\n\ 00085 uint64 OBJECT_NOT_FOUND = 256\n\ 00086 uint64 VISION_PRIMITIVE_FAILED = 512\n\ 00087 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n\ 00088 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\ 00089 uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n\ 00090 uint64 JLO_ERROR = 8192 # Could not get position\n\ 00091 uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n\ 00092 \n\ 00093 uint64 error_id # One of the error constants defined above\n\ 00094 string node_name # The node causing this error\n\ 00095 string error_description # Further information about the error\n\ 00096 \n\ 00097 "; } 00098 public: 00099 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00104 { 00105 ros::serialization::OStream stream(write_ptr, 1000000000); 00106 ros::serialization::serialize(stream, distance_to_goal); 00107 ros::serialization::serialize(stream, situation); 00108 ros::serialization::serialize(stream, error); 00109 ros::serialization::serialize(stream, better_base_ids); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00114 { 00115 ros::serialization::IStream stream(read_ptr, 1000000000); 00116 ros::serialization::deserialize(stream, distance_to_goal); 00117 ros::serialization::deserialize(stream, situation); 00118 ros::serialization::deserialize(stream, error); 00119 ros::serialization::deserialize(stream, better_base_ids); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint32_t serializationLength() const 00124 { 00125 uint32_t size = 0; 00126 size += ros::serialization::serializationLength(distance_to_goal); 00127 size += ros::serialization::serializationLength(situation); 00128 size += ros::serialization::serializationLength(error); 00129 size += ros::serialization::serializationLength(better_base_ids); 00130 return size; 00131 } 00132 00133 typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > Ptr; 00134 typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult_<ContainerAllocator> const> ConstPtr; 00135 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00136 }; // struct ArmHandResult 00137 typedef ::cogman_msgs::ArmHandResult_<std::allocator<void> > ArmHandResult; 00138 00139 typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult> ArmHandResultPtr; 00140 typedef boost::shared_ptr< ::cogman_msgs::ArmHandResult const> ArmHandResultConstPtr; 00141 00142 00143 template<typename ContainerAllocator> 00144 std::ostream& operator<<(std::ostream& s, const ::cogman_msgs::ArmHandResult_<ContainerAllocator> & v) 00145 { 00146 ros::message_operations::Printer< ::cogman_msgs::ArmHandResult_<ContainerAllocator> >::stream(s, "", v); 00147 return s;} 00148 00149 } // namespace cogman_msgs 00150 00151 namespace ros 00152 { 00153 namespace message_traits 00154 { 00155 template<class ContainerAllocator> struct IsMessage< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > : public TrueType {}; 00156 template<class ContainerAllocator> struct IsMessage< ::cogman_msgs::ArmHandResult_<ContainerAllocator> const> : public TrueType {}; 00157 template<class ContainerAllocator> 00158 struct MD5Sum< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "96fe826375e10406e4d32548d703c09c"; 00162 } 00163 00164 static const char* value(const ::cogman_msgs::ArmHandResult_<ContainerAllocator> &) { return value(); } 00165 static const uint64_t static_value1 = 0x96fe826375e10406ULL; 00166 static const uint64_t static_value2 = 0xe4d32548d703c09cULL; 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct DataType< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "cogman_msgs/ArmHandResult"; 00174 } 00175 00176 static const char* value(const ::cogman_msgs::ArmHandResult_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 template<class ContainerAllocator> 00180 struct Definition< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00184 \n\ 00185 #result\n\ 00186 float32 distance_to_goal\n\ 00187 string situation #Allowed: grasped slipped released unreachable ik_deadlock need_to_move_base\n\ 00188 vision_msgs/system_error error #Description of error\n\ 00189 uint64[] better_base_ids #List of lo_id's where we could grasp better\n\ 00190 \n\ 00191 ================================================================================\n\ 00192 MSG: vision_msgs/system_error\n\ 00193 uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\ 00194 uint64 GRASP_FAILED = 128 # Grasp into the void\n\ 00195 uint64 OBJECT_NOT_FOUND = 256\n\ 00196 uint64 VISION_PRIMITIVE_FAILED = 512\n\ 00197 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n\ 00198 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\ 00199 uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n\ 00200 uint64 JLO_ERROR = 8192 # Could not get position\n\ 00201 uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n\ 00202 \n\ 00203 uint64 error_id # One of the error constants defined above\n\ 00204 string node_name # The node causing this error\n\ 00205 string error_description # Further information about the error\n\ 00206 \n\ 00207 "; 00208 } 00209 00210 static const char* value(const ::cogman_msgs::ArmHandResult_<ContainerAllocator> &) { return value(); } 00211 }; 00212 00213 } // namespace message_traits 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace serialization 00219 { 00220 00221 template<class ContainerAllocator> struct Serializer< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > 00222 { 00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00224 { 00225 stream.next(m.distance_to_goal); 00226 stream.next(m.situation); 00227 stream.next(m.error); 00228 stream.next(m.better_base_ids); 00229 } 00230 00231 ROS_DECLARE_ALLINONE_SERIALIZER; 00232 }; // struct ArmHandResult_ 00233 } // namespace serialization 00234 } // namespace ros 00235 00236 namespace ros 00237 { 00238 namespace message_operations 00239 { 00240 00241 template<class ContainerAllocator> 00242 struct Printer< ::cogman_msgs::ArmHandResult_<ContainerAllocator> > 00243 { 00244 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cogman_msgs::ArmHandResult_<ContainerAllocator> & v) 00245 { 00246 s << indent << "distance_to_goal: "; 00247 Printer<float>::stream(s, indent + " ", v.distance_to_goal); 00248 s << indent << "situation: "; 00249 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.situation); 00250 s << indent << "error: "; 00251 s << std::endl; 00252 Printer< ::vision_msgs::system_error_<ContainerAllocator> >::stream(s, indent + " ", v.error); 00253 s << indent << "better_base_ids[]" << std::endl; 00254 for (size_t i = 0; i < v.better_base_ids.size(); ++i) 00255 { 00256 s << indent << " better_base_ids[" << i << "]: "; 00257 Printer<uint64_t>::stream(s, indent + " ", v.better_base_ids[i]); 00258 } 00259 } 00260 }; 00261 00262 00263 } // namespace message_operations 00264 } // namespace ros 00265 00266 #endif // COGMAN_MSGS_MESSAGE_ARMHANDRESULT_H 00267