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