$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/TestValue.msg */ 00002 #ifndef PR2_SELF_TEST_MSGS_MESSAGE_TESTVALUE_H 00003 #define PR2_SELF_TEST_MSGS_MESSAGE_TESTVALUE_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 TestValue_ { 00022 typedef TestValue_<ContainerAllocator> Type; 00023 00024 TestValue_() 00025 : key() 00026 , value() 00027 , min() 00028 , max() 00029 { 00030 } 00031 00032 TestValue_(const ContainerAllocator& _alloc) 00033 : key(_alloc) 00034 , value(_alloc) 00035 , min(_alloc) 00036 , max(_alloc) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _key_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > key; 00042 00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _value_type; 00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > value; 00045 00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _min_type; 00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > min; 00048 00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _max_type; 00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > max; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "pr2_self_test_msgs/TestValue"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "8fffe15af3a2ec4c24d3cf323fdfe721"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# TestValue is recorded value during PR2 qualification\n\ 00069 string key\n\ 00070 string value\n\ 00071 string min\n\ 00072 string max\n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, key); 00083 ros::serialization::serialize(stream, value); 00084 ros::serialization::serialize(stream, min); 00085 ros::serialization::serialize(stream, max); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, key); 00093 ros::serialization::deserialize(stream, value); 00094 ros::serialization::deserialize(stream, min); 00095 ros::serialization::deserialize(stream, max); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint32_t serializationLength() const 00100 { 00101 uint32_t size = 0; 00102 size += ros::serialization::serializationLength(key); 00103 size += ros::serialization::serializationLength(value); 00104 size += ros::serialization::serializationLength(min); 00105 size += ros::serialization::serializationLength(max); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct TestValue 00113 typedef ::pr2_self_test_msgs::TestValue_<std::allocator<void> > TestValue; 00114 00115 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestValue> TestValuePtr; 00116 typedef boost::shared_ptr< ::pr2_self_test_msgs::TestValue const> TestValueConstPtr; 00117 00118 00119 template<typename ContainerAllocator> 00120 std::ostream& operator<<(std::ostream& s, const ::pr2_self_test_msgs::TestValue_<ContainerAllocator> & v) 00121 { 00122 ros::message_operations::Printer< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> >::stream(s, "", v); 00123 return s;} 00124 00125 } // namespace pr2_self_test_msgs 00126 00127 namespace ros 00128 { 00129 namespace message_traits 00130 { 00131 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > : public TrueType {}; 00132 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> const> : public TrueType {}; 00133 template<class ContainerAllocator> 00134 struct MD5Sum< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "8fffe15af3a2ec4c24d3cf323fdfe721"; 00138 } 00139 00140 static const char* value(const ::pr2_self_test_msgs::TestValue_<ContainerAllocator> &) { return value(); } 00141 static const uint64_t static_value1 = 0x8fffe15af3a2ec4cULL; 00142 static const uint64_t static_value2 = 0x24d3cf323fdfe721ULL; 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct DataType< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "pr2_self_test_msgs/TestValue"; 00150 } 00151 00152 static const char* value(const ::pr2_self_test_msgs::TestValue_<ContainerAllocator> &) { return value(); } 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct Definition< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "# TestValue is recorded value during PR2 qualification\n\ 00160 string key\n\ 00161 string value\n\ 00162 string min\n\ 00163 string max\n\ 00164 "; 00165 } 00166 00167 static const char* value(const ::pr2_self_test_msgs::TestValue_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 } // namespace message_traits 00171 } // namespace ros 00172 00173 namespace ros 00174 { 00175 namespace serialization 00176 { 00177 00178 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > 00179 { 00180 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00181 { 00182 stream.next(m.key); 00183 stream.next(m.value); 00184 stream.next(m.min); 00185 stream.next(m.max); 00186 } 00187 00188 ROS_DECLARE_ALLINONE_SERIALIZER; 00189 }; // struct TestValue_ 00190 } // namespace serialization 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace message_operations 00196 { 00197 00198 template<class ContainerAllocator> 00199 struct Printer< ::pr2_self_test_msgs::TestValue_<ContainerAllocator> > 00200 { 00201 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_self_test_msgs::TestValue_<ContainerAllocator> & v) 00202 { 00203 s << indent << "key: "; 00204 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.key); 00205 s << indent << "value: "; 00206 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.value); 00207 s << indent << "min: "; 00208 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.min); 00209 s << indent << "max: "; 00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.max); 00211 } 00212 }; 00213 00214 00215 } // namespace message_operations 00216 } // namespace ros 00217 00218 #endif // PR2_SELF_TEST_MSGS_MESSAGE_TESTVALUE_H 00219