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