$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_self_test/doc_stacks/2013-03-02_13-02-42.165655/pr2_self_test/pr2_self_test_msgs/msg/Plot.msg */ 00002 #ifndef PR2_SELF_TEST_MSGS_MESSAGE_PLOT_H 00003 #define PR2_SELF_TEST_MSGS_MESSAGE_PLOT_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 pr2_self_test_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct Plot_ { 00022 typedef Plot_<ContainerAllocator> Type; 00023 00024 Plot_() 00025 : title() 00026 , image() 00027 , image_format() 00028 { 00029 } 00030 00031 Plot_(const ContainerAllocator& _alloc) 00032 : title(_alloc) 00033 , image(_alloc) 00034 , image_format(_alloc) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _title_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > title; 00040 00041 typedef std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > _image_type; 00042 std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > image; 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _image_format_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > image_format; 00046 00047 00048 ROS_DEPRECATED uint32_t get_image_size() const { return (uint32_t)image.size(); } 00049 ROS_DEPRECATED void set_image_size(uint32_t size) { image.resize((size_t)size); } 00050 ROS_DEPRECATED void get_image_vec(std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) const { vec = this->image; } 00051 ROS_DEPRECATED void set_image_vec(const std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) { this->image = vec; } 00052 private: 00053 static const char* __s_getDataType_() { return "pr2_self_test_msgs/Plot"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "7b2b3d1ff7d1699544a2479e9175f3fb"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "# Plot data, used for PR2 self tests\n\ 00068 string title\n\ 00069 byte[] image\n\ 00070 string image_format\n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, title); 00082 ros::serialization::serialize(stream, image); 00083 ros::serialization::serialize(stream, image_format); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00088 { 00089 ros::serialization::IStream stream(read_ptr, 1000000000); 00090 ros::serialization::deserialize(stream, title); 00091 ros::serialization::deserialize(stream, image); 00092 ros::serialization::deserialize(stream, image_format); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint32_t serializationLength() const 00097 { 00098 uint32_t size = 0; 00099 size += ros::serialization::serializationLength(title); 00100 size += ros::serialization::serializationLength(image); 00101 size += ros::serialization::serializationLength(image_format); 00102 return size; 00103 } 00104 00105 typedef boost::shared_ptr< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > Ptr; 00106 typedef boost::shared_ptr< ::pr2_self_test_msgs::Plot_<ContainerAllocator> const> ConstPtr; 00107 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00108 }; // struct Plot 00109 typedef ::pr2_self_test_msgs::Plot_<std::allocator<void> > Plot; 00110 00111 typedef boost::shared_ptr< ::pr2_self_test_msgs::Plot> PlotPtr; 00112 typedef boost::shared_ptr< ::pr2_self_test_msgs::Plot const> PlotConstPtr; 00113 00114 00115 template<typename ContainerAllocator> 00116 std::ostream& operator<<(std::ostream& s, const ::pr2_self_test_msgs::Plot_<ContainerAllocator> & v) 00117 { 00118 ros::message_operations::Printer< ::pr2_self_test_msgs::Plot_<ContainerAllocator> >::stream(s, "", v); 00119 return s;} 00120 00121 } // namespace pr2_self_test_msgs 00122 00123 namespace ros 00124 { 00125 namespace message_traits 00126 { 00127 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > : public TrueType {}; 00128 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::Plot_<ContainerAllocator> const> : public TrueType {}; 00129 template<class ContainerAllocator> 00130 struct MD5Sum< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > { 00131 static const char* value() 00132 { 00133 return "7b2b3d1ff7d1699544a2479e9175f3fb"; 00134 } 00135 00136 static const char* value(const ::pr2_self_test_msgs::Plot_<ContainerAllocator> &) { return value(); } 00137 static const uint64_t static_value1 = 0x7b2b3d1ff7d16995ULL; 00138 static const uint64_t static_value2 = 0x44a2479e9175f3fbULL; 00139 }; 00140 00141 template<class ContainerAllocator> 00142 struct DataType< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > { 00143 static const char* value() 00144 { 00145 return "pr2_self_test_msgs/Plot"; 00146 } 00147 00148 static const char* value(const ::pr2_self_test_msgs::Plot_<ContainerAllocator> &) { return value(); } 00149 }; 00150 00151 template<class ContainerAllocator> 00152 struct Definition< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "# Plot data, used for PR2 self tests\n\ 00156 string title\n\ 00157 byte[] image\n\ 00158 string image_format\n\ 00159 \n\ 00160 "; 00161 } 00162 00163 static const char* value(const ::pr2_self_test_msgs::Plot_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 } // namespace message_traits 00167 } // namespace ros 00168 00169 namespace ros 00170 { 00171 namespace serialization 00172 { 00173 00174 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > 00175 { 00176 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00177 { 00178 stream.next(m.title); 00179 stream.next(m.image); 00180 stream.next(m.image_format); 00181 } 00182 00183 ROS_DECLARE_ALLINONE_SERIALIZER; 00184 }; // struct Plot_ 00185 } // namespace serialization 00186 } // namespace ros 00187 00188 namespace ros 00189 { 00190 namespace message_operations 00191 { 00192 00193 template<class ContainerAllocator> 00194 struct Printer< ::pr2_self_test_msgs::Plot_<ContainerAllocator> > 00195 { 00196 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_self_test_msgs::Plot_<ContainerAllocator> & v) 00197 { 00198 s << indent << "title: "; 00199 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.title); 00200 s << indent << "image[]" << std::endl; 00201 for (size_t i = 0; i < v.image.size(); ++i) 00202 { 00203 s << indent << " image[" << i << "]: "; 00204 Printer<int8_t>::stream(s, indent + " ", v.image[i]); 00205 } 00206 s << indent << "image_format: "; 00207 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.image_format); 00208 } 00209 }; 00210 00211 00212 } // namespace message_operations 00213 } // namespace ros 00214 00215 #endif // PR2_SELF_TEST_MSGS_MESSAGE_PLOT_H 00216