$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/HysteresisData.msg */ 00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISDATA_H 00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISDATA_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 joint_qualification_controllers 00019 { 00020 template <class ContainerAllocator> 00021 struct HysteresisData_ { 00022 typedef HysteresisData_<ContainerAllocator> Type; 00023 00024 HysteresisData_() 00025 : joint_name() 00026 , time_up() 00027 , effort_up() 00028 , position_up() 00029 , velocity_up() 00030 , time_down() 00031 , effort_down() 00032 , position_down() 00033 , velocity_down() 00034 , arg_name() 00035 , arg_value() 00036 { 00037 } 00038 00039 HysteresisData_(const ContainerAllocator& _alloc) 00040 : joint_name(_alloc) 00041 , time_up(_alloc) 00042 , effort_up(_alloc) 00043 , position_up(_alloc) 00044 , velocity_up(_alloc) 00045 , time_down(_alloc) 00046 , effort_down(_alloc) 00047 , position_down(_alloc) 00048 , velocity_down(_alloc) 00049 , arg_name(_alloc) 00050 , arg_value(_alloc) 00051 { 00052 } 00053 00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _joint_name_type; 00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > joint_name; 00056 00057 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _time_up_type; 00058 std::vector<float, typename ContainerAllocator::template rebind<float>::other > time_up; 00059 00060 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _effort_up_type; 00061 std::vector<float, typename ContainerAllocator::template rebind<float>::other > effort_up; 00062 00063 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _position_up_type; 00064 std::vector<float, typename ContainerAllocator::template rebind<float>::other > position_up; 00065 00066 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _velocity_up_type; 00067 std::vector<float, typename ContainerAllocator::template rebind<float>::other > velocity_up; 00068 00069 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _time_down_type; 00070 std::vector<float, typename ContainerAllocator::template rebind<float>::other > time_down; 00071 00072 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _effort_down_type; 00073 std::vector<float, typename ContainerAllocator::template rebind<float>::other > effort_down; 00074 00075 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _position_down_type; 00076 std::vector<float, typename ContainerAllocator::template rebind<float>::other > position_down; 00077 00078 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _velocity_down_type; 00079 std::vector<float, typename ContainerAllocator::template rebind<float>::other > velocity_down; 00080 00081 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; 00082 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; 00083 00084 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _arg_value_type; 00085 std::vector<float, typename ContainerAllocator::template rebind<float>::other > arg_value; 00086 00087 00088 ROS_DEPRECATED uint32_t get_time_up_size() const { return (uint32_t)time_up.size(); } 00089 ROS_DEPRECATED void set_time_up_size(uint32_t size) { time_up.resize((size_t)size); } 00090 ROS_DEPRECATED void get_time_up_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->time_up; } 00091 ROS_DEPRECATED void set_time_up_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->time_up = vec; } 00092 ROS_DEPRECATED uint32_t get_effort_up_size() const { return (uint32_t)effort_up.size(); } 00093 ROS_DEPRECATED void set_effort_up_size(uint32_t size) { effort_up.resize((size_t)size); } 00094 ROS_DEPRECATED void get_effort_up_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->effort_up; } 00095 ROS_DEPRECATED void set_effort_up_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->effort_up = vec; } 00096 ROS_DEPRECATED uint32_t get_position_up_size() const { return (uint32_t)position_up.size(); } 00097 ROS_DEPRECATED void set_position_up_size(uint32_t size) { position_up.resize((size_t)size); } 00098 ROS_DEPRECATED void get_position_up_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->position_up; } 00099 ROS_DEPRECATED void set_position_up_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->position_up = vec; } 00100 ROS_DEPRECATED uint32_t get_velocity_up_size() const { return (uint32_t)velocity_up.size(); } 00101 ROS_DEPRECATED void set_velocity_up_size(uint32_t size) { velocity_up.resize((size_t)size); } 00102 ROS_DEPRECATED void get_velocity_up_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->velocity_up; } 00103 ROS_DEPRECATED void set_velocity_up_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->velocity_up = vec; } 00104 ROS_DEPRECATED uint32_t get_time_down_size() const { return (uint32_t)time_down.size(); } 00105 ROS_DEPRECATED void set_time_down_size(uint32_t size) { time_down.resize((size_t)size); } 00106 ROS_DEPRECATED void get_time_down_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->time_down; } 00107 ROS_DEPRECATED void set_time_down_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->time_down = vec; } 00108 ROS_DEPRECATED uint32_t get_effort_down_size() const { return (uint32_t)effort_down.size(); } 00109 ROS_DEPRECATED void set_effort_down_size(uint32_t size) { effort_down.resize((size_t)size); } 00110 ROS_DEPRECATED void get_effort_down_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->effort_down; } 00111 ROS_DEPRECATED void set_effort_down_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->effort_down = vec; } 00112 ROS_DEPRECATED uint32_t get_position_down_size() const { return (uint32_t)position_down.size(); } 00113 ROS_DEPRECATED void set_position_down_size(uint32_t size) { position_down.resize((size_t)size); } 00114 ROS_DEPRECATED void get_position_down_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->position_down; } 00115 ROS_DEPRECATED void set_position_down_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->position_down = vec; } 00116 ROS_DEPRECATED uint32_t get_velocity_down_size() const { return (uint32_t)velocity_down.size(); } 00117 ROS_DEPRECATED void set_velocity_down_size(uint32_t size) { velocity_down.resize((size_t)size); } 00118 ROS_DEPRECATED void get_velocity_down_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->velocity_down; } 00119 ROS_DEPRECATED void set_velocity_down_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->velocity_down = vec; } 00120 ROS_DEPRECATED uint32_t get_arg_name_size() const { return (uint32_t)arg_name.size(); } 00121 ROS_DEPRECATED void set_arg_name_size(uint32_t size) { arg_name.resize((size_t)size); } 00122 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; } 00123 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; } 00124 ROS_DEPRECATED uint32_t get_arg_value_size() const { return (uint32_t)arg_value.size(); } 00125 ROS_DEPRECATED void set_arg_value_size(uint32_t size) { arg_value.resize((size_t)size); } 00126 ROS_DEPRECATED void get_arg_value_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->arg_value; } 00127 ROS_DEPRECATED void set_arg_value_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->arg_value = vec; } 00128 private: 00129 static const char* __s_getDataType_() { return "joint_qualification_controllers/HysteresisData"; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00132 00133 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00134 00135 private: 00136 static const char* __s_getMD5Sum_() { return "55018edece2f193bc97f016db04a871b"; } 00137 public: 00138 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00139 00140 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00141 00142 private: 00143 static const char* __s_getMessageDefinition_() { return "string joint_name\n\ 00144 \n\ 00145 float32[] time_up\n\ 00146 float32[] effort_up\n\ 00147 float32[] position_up\n\ 00148 float32[] velocity_up\n\ 00149 \n\ 00150 float32[] time_down\n\ 00151 float32[] effort_down\n\ 00152 float32[] position_down\n\ 00153 float32[] velocity_down\n\ 00154 \n\ 00155 string[] arg_name\n\ 00156 float32[] arg_value\n\ 00157 \n\ 00158 "; } 00159 public: 00160 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00161 00162 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00163 00164 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00165 { 00166 ros::serialization::OStream stream(write_ptr, 1000000000); 00167 ros::serialization::serialize(stream, joint_name); 00168 ros::serialization::serialize(stream, time_up); 00169 ros::serialization::serialize(stream, effort_up); 00170 ros::serialization::serialize(stream, position_up); 00171 ros::serialization::serialize(stream, velocity_up); 00172 ros::serialization::serialize(stream, time_down); 00173 ros::serialization::serialize(stream, effort_down); 00174 ros::serialization::serialize(stream, position_down); 00175 ros::serialization::serialize(stream, velocity_down); 00176 ros::serialization::serialize(stream, arg_name); 00177 ros::serialization::serialize(stream, arg_value); 00178 return stream.getData(); 00179 } 00180 00181 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00182 { 00183 ros::serialization::IStream stream(read_ptr, 1000000000); 00184 ros::serialization::deserialize(stream, joint_name); 00185 ros::serialization::deserialize(stream, time_up); 00186 ros::serialization::deserialize(stream, effort_up); 00187 ros::serialization::deserialize(stream, position_up); 00188 ros::serialization::deserialize(stream, velocity_up); 00189 ros::serialization::deserialize(stream, time_down); 00190 ros::serialization::deserialize(stream, effort_down); 00191 ros::serialization::deserialize(stream, position_down); 00192 ros::serialization::deserialize(stream, velocity_down); 00193 ros::serialization::deserialize(stream, arg_name); 00194 ros::serialization::deserialize(stream, arg_value); 00195 return stream.getData(); 00196 } 00197 00198 ROS_DEPRECATED virtual uint32_t serializationLength() const 00199 { 00200 uint32_t size = 0; 00201 size += ros::serialization::serializationLength(joint_name); 00202 size += ros::serialization::serializationLength(time_up); 00203 size += ros::serialization::serializationLength(effort_up); 00204 size += ros::serialization::serializationLength(position_up); 00205 size += ros::serialization::serializationLength(velocity_up); 00206 size += ros::serialization::serializationLength(time_down); 00207 size += ros::serialization::serializationLength(effort_down); 00208 size += ros::serialization::serializationLength(position_down); 00209 size += ros::serialization::serializationLength(velocity_down); 00210 size += ros::serialization::serializationLength(arg_name); 00211 size += ros::serialization::serializationLength(arg_value); 00212 return size; 00213 } 00214 00215 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > Ptr; 00216 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> const> ConstPtr; 00217 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00218 }; // struct HysteresisData 00219 typedef ::joint_qualification_controllers::HysteresisData_<std::allocator<void> > HysteresisData; 00220 00221 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData> HysteresisDataPtr; 00222 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisData const> HysteresisDataConstPtr; 00223 00224 00225 template<typename ContainerAllocator> 00226 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> & v) 00227 { 00228 ros::message_operations::Printer< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> >::stream(s, "", v); 00229 return s;} 00230 00231 } // namespace joint_qualification_controllers 00232 00233 namespace ros 00234 { 00235 namespace message_traits 00236 { 00237 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > : public TrueType {}; 00238 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> const> : public TrueType {}; 00239 template<class ContainerAllocator> 00240 struct MD5Sum< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > { 00241 static const char* value() 00242 { 00243 return "55018edece2f193bc97f016db04a871b"; 00244 } 00245 00246 static const char* value(const ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> &) { return value(); } 00247 static const uint64_t static_value1 = 0x55018edece2f193bULL; 00248 static const uint64_t static_value2 = 0xc97f016db04a871bULL; 00249 }; 00250 00251 template<class ContainerAllocator> 00252 struct DataType< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "joint_qualification_controllers/HysteresisData"; 00256 } 00257 00258 static const char* value(const ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> &) { return value(); } 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct Definition< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "string joint_name\n\ 00266 \n\ 00267 float32[] time_up\n\ 00268 float32[] effort_up\n\ 00269 float32[] position_up\n\ 00270 float32[] velocity_up\n\ 00271 \n\ 00272 float32[] time_down\n\ 00273 float32[] effort_down\n\ 00274 float32[] position_down\n\ 00275 float32[] velocity_down\n\ 00276 \n\ 00277 string[] arg_name\n\ 00278 float32[] arg_value\n\ 00279 \n\ 00280 "; 00281 } 00282 00283 static const char* value(const ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> &) { return value(); } 00284 }; 00285 00286 } // namespace message_traits 00287 } // namespace ros 00288 00289 namespace ros 00290 { 00291 namespace serialization 00292 { 00293 00294 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > 00295 { 00296 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00297 { 00298 stream.next(m.joint_name); 00299 stream.next(m.time_up); 00300 stream.next(m.effort_up); 00301 stream.next(m.position_up); 00302 stream.next(m.velocity_up); 00303 stream.next(m.time_down); 00304 stream.next(m.effort_down); 00305 stream.next(m.position_down); 00306 stream.next(m.velocity_down); 00307 stream.next(m.arg_name); 00308 stream.next(m.arg_value); 00309 } 00310 00311 ROS_DECLARE_ALLINONE_SERIALIZER; 00312 }; // struct HysteresisData_ 00313 } // namespace serialization 00314 } // namespace ros 00315 00316 namespace ros 00317 { 00318 namespace message_operations 00319 { 00320 00321 template<class ContainerAllocator> 00322 struct Printer< ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> > 00323 { 00324 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::HysteresisData_<ContainerAllocator> & v) 00325 { 00326 s << indent << "joint_name: "; 00327 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_name); 00328 s << indent << "time_up[]" << std::endl; 00329 for (size_t i = 0; i < v.time_up.size(); ++i) 00330 { 00331 s << indent << " time_up[" << i << "]: "; 00332 Printer<float>::stream(s, indent + " ", v.time_up[i]); 00333 } 00334 s << indent << "effort_up[]" << std::endl; 00335 for (size_t i = 0; i < v.effort_up.size(); ++i) 00336 { 00337 s << indent << " effort_up[" << i << "]: "; 00338 Printer<float>::stream(s, indent + " ", v.effort_up[i]); 00339 } 00340 s << indent << "position_up[]" << std::endl; 00341 for (size_t i = 0; i < v.position_up.size(); ++i) 00342 { 00343 s << indent << " position_up[" << i << "]: "; 00344 Printer<float>::stream(s, indent + " ", v.position_up[i]); 00345 } 00346 s << indent << "velocity_up[]" << std::endl; 00347 for (size_t i = 0; i < v.velocity_up.size(); ++i) 00348 { 00349 s << indent << " velocity_up[" << i << "]: "; 00350 Printer<float>::stream(s, indent + " ", v.velocity_up[i]); 00351 } 00352 s << indent << "time_down[]" << std::endl; 00353 for (size_t i = 0; i < v.time_down.size(); ++i) 00354 { 00355 s << indent << " time_down[" << i << "]: "; 00356 Printer<float>::stream(s, indent + " ", v.time_down[i]); 00357 } 00358 s << indent << "effort_down[]" << std::endl; 00359 for (size_t i = 0; i < v.effort_down.size(); ++i) 00360 { 00361 s << indent << " effort_down[" << i << "]: "; 00362 Printer<float>::stream(s, indent + " ", v.effort_down[i]); 00363 } 00364 s << indent << "position_down[]" << std::endl; 00365 for (size_t i = 0; i < v.position_down.size(); ++i) 00366 { 00367 s << indent << " position_down[" << i << "]: "; 00368 Printer<float>::stream(s, indent + " ", v.position_down[i]); 00369 } 00370 s << indent << "velocity_down[]" << std::endl; 00371 for (size_t i = 0; i < v.velocity_down.size(); ++i) 00372 { 00373 s << indent << " velocity_down[" << i << "]: "; 00374 Printer<float>::stream(s, indent + " ", v.velocity_down[i]); 00375 } 00376 s << indent << "arg_name[]" << std::endl; 00377 for (size_t i = 0; i < v.arg_name.size(); ++i) 00378 { 00379 s << indent << " arg_name[" << i << "]: "; 00380 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.arg_name[i]); 00381 } 00382 s << indent << "arg_value[]" << std::endl; 00383 for (size_t i = 0; i < v.arg_value.size(); ++i) 00384 { 00385 s << indent << " arg_value[" << i << "]: "; 00386 Printer<float>::stream(s, indent + " ", v.arg_value[i]); 00387 } 00388 } 00389 }; 00390 00391 00392 } // namespace message_operations 00393 } // namespace ros 00394 00395 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISDATA_H 00396