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