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