$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/joint_qualification_controllers/msg/HysteresisData2.msg */ 00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISDATA2_H 00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISDATA2_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 #include "joint_qualification_controllers/HysteresisRun.h" 00018 00019 namespace joint_qualification_controllers 00020 { 00021 template <class ContainerAllocator> 00022 struct HysteresisData2_ { 00023 typedef HysteresisData2_<ContainerAllocator> Type; 00024 00025 HysteresisData2_() 00026 : joint_name() 00027 , runs() 00028 , arg_name() 00029 , arg_value() 00030 { 00031 } 00032 00033 HysteresisData2_(const ContainerAllocator& _alloc) 00034 : joint_name(_alloc) 00035 , runs(_alloc) 00036 , arg_name(_alloc) 00037 , arg_value(_alloc) 00038 { 00039 } 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _joint_name_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > joint_name; 00043 00044 typedef std::vector< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> >::other > _runs_type; 00045 std::vector< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> >::other > runs; 00046 00047 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _arg_name_type; 00048 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > arg_name; 00049 00050 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _arg_value_type; 00051 std::vector<float, typename ContainerAllocator::template rebind<float>::other > arg_value; 00052 00053 00054 ROS_DEPRECATED uint32_t get_runs_size() const { return (uint32_t)runs.size(); } 00055 ROS_DEPRECATED void set_runs_size(uint32_t size) { runs.resize((size_t)size); } 00056 ROS_DEPRECATED void get_runs_vec(std::vector< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> >::other > & vec) const { vec = this->runs; } 00057 ROS_DEPRECATED void set_runs_vec(const std::vector< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> >::other > & vec) { this->runs = vec; } 00058 ROS_DEPRECATED uint32_t get_arg_name_size() const { return (uint32_t)arg_name.size(); } 00059 ROS_DEPRECATED void set_arg_name_size(uint32_t size) { arg_name.resize((size_t)size); } 00060 ROS_DEPRECATED void get_arg_name_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->arg_name; } 00061 ROS_DEPRECATED void set_arg_name_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->arg_name = vec; } 00062 ROS_DEPRECATED uint32_t get_arg_value_size() const { return (uint32_t)arg_value.size(); } 00063 ROS_DEPRECATED void set_arg_value_size(uint32_t size) { arg_value.resize((size_t)size); } 00064 ROS_DEPRECATED void get_arg_value_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->arg_value; } 00065 ROS_DEPRECATED void set_arg_value_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->arg_value = vec; } 00066 private: 00067 static const char* __s_getDataType_() { return "joint_qualification_controllers/HysteresisData2"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "e58eacdd7f3ac3c02f9d494da1e59355"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "string joint_name\n\ 00082 \n\ 00083 HysteresisRun[] runs\n\ 00084 \n\ 00085 string[] arg_name\n\ 00086 float32[] arg_value\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: joint_qualification_controllers/HysteresisRun\n\ 00090 float32[] time\n\ 00091 float32[] effort\n\ 00092 float32[] position\n\ 00093 float32[] velocity\n\ 00094 uint8 dir\n\ 00095 uint8 UP=0\n\ 00096 uint8 DOWN=1\n\ 00097 \n\ 00098 "; } 00099 public: 00100 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00101 00102 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00103 00104 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00105 { 00106 ros::serialization::OStream stream(write_ptr, 1000000000); 00107 ros::serialization::serialize(stream, joint_name); 00108 ros::serialization::serialize(stream, runs); 00109 ros::serialization::serialize(stream, arg_name); 00110 ros::serialization::serialize(stream, arg_value); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00115 { 00116 ros::serialization::IStream stream(read_ptr, 1000000000); 00117 ros::serialization::deserialize(stream, joint_name); 00118 ros::serialization::deserialize(stream, runs); 00119 ros::serialization::deserialize(stream, arg_name); 00120 ros::serialization::deserialize(stream, arg_value); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint32_t serializationLength() const 00125 { 00126 uint32_t size = 0; 00127 size += ros::serialization::serializationLength(joint_name); 00128 size += ros::serialization::serializationLength(runs); 00129 size += ros::serialization::serializationLength(arg_name); 00130 size += ros::serialization::serializationLength(arg_value); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct HysteresisData2 00138 typedef ::joint_qualification_controllers::HysteresisData2_<std::allocator<void> > HysteresisData2; 00139 00140 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData2> HysteresisData2Ptr; 00141 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData2 const> HysteresisData2ConstPtr; 00142 00143 00144 template<typename ContainerAllocator> 00145 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> & v) 00146 { 00147 ros::message_operations::Printer< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> >::stream(s, "", v); 00148 return s;} 00149 00150 } // namespace joint_qualification_controllers 00151 00152 namespace ros 00153 { 00154 namespace message_traits 00155 { 00156 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > : public TrueType {}; 00157 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> const> : public TrueType {}; 00158 template<class ContainerAllocator> 00159 struct MD5Sum< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "e58eacdd7f3ac3c02f9d494da1e59355"; 00163 } 00164 00165 static const char* value(const ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> &) { return value(); } 00166 static const uint64_t static_value1 = 0xe58eacdd7f3ac3c0ULL; 00167 static const uint64_t static_value2 = 0x2f9d494da1e59355ULL; 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct DataType< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "joint_qualification_controllers/HysteresisData2"; 00175 } 00176 00177 static const char* value(const ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct Definition< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "string joint_name\n\ 00185 \n\ 00186 HysteresisRun[] runs\n\ 00187 \n\ 00188 string[] arg_name\n\ 00189 float32[] arg_value\n\ 00190 \n\ 00191 ================================================================================\n\ 00192 MSG: joint_qualification_controllers/HysteresisRun\n\ 00193 float32[] time\n\ 00194 float32[] effort\n\ 00195 float32[] position\n\ 00196 float32[] velocity\n\ 00197 uint8 dir\n\ 00198 uint8 UP=0\n\ 00199 uint8 DOWN=1\n\ 00200 \n\ 00201 "; 00202 } 00203 00204 static const char* value(const ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> &) { return value(); } 00205 }; 00206 00207 } // namespace message_traits 00208 } // namespace ros 00209 00210 namespace ros 00211 { 00212 namespace serialization 00213 { 00214 00215 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > 00216 { 00217 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00218 { 00219 stream.next(m.joint_name); 00220 stream.next(m.runs); 00221 stream.next(m.arg_name); 00222 stream.next(m.arg_value); 00223 } 00224 00225 ROS_DECLARE_ALLINONE_SERIALIZER; 00226 }; // struct HysteresisData2_ 00227 } // namespace serialization 00228 } // namespace ros 00229 00230 namespace ros 00231 { 00232 namespace message_operations 00233 { 00234 00235 template<class ContainerAllocator> 00236 struct Printer< ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> > 00237 { 00238 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::HysteresisData2_<ContainerAllocator> & v) 00239 { 00240 s << indent << "joint_name: "; 00241 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_name); 00242 s << indent << "runs[]" << std::endl; 00243 for (size_t i = 0; i < v.runs.size(); ++i) 00244 { 00245 s << indent << " runs[" << i << "]: "; 00246 s << std::endl; 00247 s << indent; 00248 Printer< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> >::stream(s, indent + " ", v.runs[i]); 00249 } 00250 s << indent << "arg_name[]" << std::endl; 00251 for (size_t i = 0; i < v.arg_name.size(); ++i) 00252 { 00253 s << indent << " arg_name[" << i << "]: "; 00254 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.arg_name[i]); 00255 } 00256 s << indent << "arg_value[]" << std::endl; 00257 for (size_t i = 0; i < v.arg_value.size(); ++i) 00258 { 00259 s << indent << " arg_value[" << i << "]: "; 00260 Printer<float>::stream(s, indent + " ", v.arg_value[i]); 00261 } 00262 } 00263 }; 00264 00265 00266 } // namespace message_operations 00267 } // namespace ros 00268 00269 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISDATA2_H 00270