$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/perception/object_recognition_gui/msg/ObjectRecognitionGuiResult.msg */ 00002 #ifndef OBJECT_RECOGNITION_GUI_MESSAGE_OBJECTRECOGNITIONGUIRESULT_H 00003 #define OBJECT_RECOGNITION_GUI_MESSAGE_OBJECTRECOGNITIONGUIRESULT_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_recognition_gui 00019 { 00020 template <class ContainerAllocator> 00021 struct ObjectRecognitionGuiResult_ { 00022 typedef ObjectRecognitionGuiResult_<ContainerAllocator> Type; 00023 00024 ObjectRecognitionGuiResult_() 00025 : selected_hypothesis_indices() 00026 { 00027 } 00028 00029 ObjectRecognitionGuiResult_(const ContainerAllocator& _alloc) 00030 : selected_hypothesis_indices(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _selected_hypothesis_indices_type; 00035 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > selected_hypothesis_indices; 00036 00037 00038 ROS_DEPRECATED uint32_t get_selected_hypothesis_indices_size() const { return (uint32_t)selected_hypothesis_indices.size(); } 00039 ROS_DEPRECATED void set_selected_hypothesis_indices_size(uint32_t size) { selected_hypothesis_indices.resize((size_t)size); } 00040 ROS_DEPRECATED void get_selected_hypothesis_indices_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->selected_hypothesis_indices; } 00041 ROS_DEPRECATED void set_selected_hypothesis_indices_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->selected_hypothesis_indices = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "object_recognition_gui/ObjectRecognitionGuiResult"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "1df476ea7f04bb3d25dd52feebbc33c0"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00058 \n\ 00059 #the index of the model hypothesis that the user has selected for each cluster\n\ 00060 #values below 0 mean 'reject all hypotheses'\n\ 00061 int32[] selected_hypothesis_indices\n\ 00062 \n\ 00063 "; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00066 00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00068 00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00070 { 00071 ros::serialization::OStream stream(write_ptr, 1000000000); 00072 ros::serialization::serialize(stream, selected_hypothesis_indices); 00073 return stream.getData(); 00074 } 00075 00076 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00077 { 00078 ros::serialization::IStream stream(read_ptr, 1000000000); 00079 ros::serialization::deserialize(stream, selected_hypothesis_indices); 00080 return stream.getData(); 00081 } 00082 00083 ROS_DEPRECATED virtual uint32_t serializationLength() const 00084 { 00085 uint32_t size = 0; 00086 size += ros::serialization::serializationLength(selected_hypothesis_indices); 00087 return size; 00088 } 00089 00090 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > Ptr; 00091 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> const> ConstPtr; 00092 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00093 }; // struct ObjectRecognitionGuiResult 00094 typedef ::object_recognition_gui::ObjectRecognitionGuiResult_<std::allocator<void> > ObjectRecognitionGuiResult; 00095 00096 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiResult> ObjectRecognitionGuiResultPtr; 00097 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiResult const> ObjectRecognitionGuiResultConstPtr; 00098 00099 00100 template<typename ContainerAllocator> 00101 std::ostream& operator<<(std::ostream& s, const ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> & v) 00102 { 00103 ros::message_operations::Printer< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> >::stream(s, "", v); 00104 return s;} 00105 00106 } // namespace object_recognition_gui 00107 00108 namespace ros 00109 { 00110 namespace message_traits 00111 { 00112 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > : public TrueType {}; 00113 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> const> : public TrueType {}; 00114 template<class ContainerAllocator> 00115 struct MD5Sum< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > { 00116 static const char* value() 00117 { 00118 return "1df476ea7f04bb3d25dd52feebbc33c0"; 00119 } 00120 00121 static const char* value(const ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> &) { return value(); } 00122 static const uint64_t static_value1 = 0x1df476ea7f04bb3dULL; 00123 static const uint64_t static_value2 = 0x25dd52feebbc33c0ULL; 00124 }; 00125 00126 template<class ContainerAllocator> 00127 struct DataType< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "object_recognition_gui/ObjectRecognitionGuiResult"; 00131 } 00132 00133 static const char* value(const ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> &) { return value(); } 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct Definition< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00141 \n\ 00142 #the index of the model hypothesis that the user has selected for each cluster\n\ 00143 #values below 0 mean 'reject all hypotheses'\n\ 00144 int32[] selected_hypothesis_indices\n\ 00145 \n\ 00146 "; 00147 } 00148 00149 static const char* value(const ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> &) { return value(); } 00150 }; 00151 00152 } // namespace message_traits 00153 } // namespace ros 00154 00155 namespace ros 00156 { 00157 namespace serialization 00158 { 00159 00160 template<class ContainerAllocator> struct Serializer< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > 00161 { 00162 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00163 { 00164 stream.next(m.selected_hypothesis_indices); 00165 } 00166 00167 ROS_DECLARE_ALLINONE_SERIALIZER; 00168 }; // struct ObjectRecognitionGuiResult_ 00169 } // namespace serialization 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace message_operations 00175 { 00176 00177 template<class ContainerAllocator> 00178 struct Printer< ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> > 00179 { 00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_recognition_gui::ObjectRecognitionGuiResult_<ContainerAllocator> & v) 00181 { 00182 s << indent << "selected_hypothesis_indices[]" << std::endl; 00183 for (size_t i = 0; i < v.selected_hypothesis_indices.size(); ++i) 00184 { 00185 s << indent << " selected_hypothesis_indices[" << i << "]: "; 00186 Printer<int32_t>::stream(s, indent + " ", v.selected_hypothesis_indices[i]); 00187 } 00188 } 00189 }; 00190 00191 00192 } // namespace message_operations 00193 } // namespace ros 00194 00195 #endif // OBJECT_RECOGNITION_GUI_MESSAGE_OBJECTRECOGNITIONGUIRESULT_H 00196