00001
00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_COUNTERBALANCETESTDATA_H
00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_COUNTERBALANCETESTDATA_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 #include "joint_qualification_controllers/CBRunData.h"
00014
00015 namespace joint_qualification_controllers
00016 {
00017 template <class ContainerAllocator>
00018 struct CounterbalanceTestData_ : public ros::Message
00019 {
00020 typedef CounterbalanceTestData_<ContainerAllocator> Type;
00021
00022 CounterbalanceTestData_()
00023 : lift_joint()
00024 , flex_joint()
00025 , lift_amplitude(0.0)
00026 , flex_amplitude(0.0)
00027 , timeout_hit(false)
00028 , flex_test(false)
00029 , arg_name()
00030 , arg_value()
00031 , lift_data()
00032 {
00033 }
00034
00035 CounterbalanceTestData_(const ContainerAllocator& _alloc)
00036 : lift_joint(_alloc)
00037 , flex_joint(_alloc)
00038 , lift_amplitude(0.0)
00039 , flex_amplitude(0.0)
00040 , timeout_hit(false)
00041 , flex_test(false)
00042 , arg_name(_alloc)
00043 , arg_value(_alloc)
00044 , lift_data(_alloc)
00045 {
00046 }
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _lift_joint_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > lift_joint;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _flex_joint_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > flex_joint;
00053
00054 typedef float _lift_amplitude_type;
00055 float lift_amplitude;
00056
00057 typedef float _flex_amplitude_type;
00058 float flex_amplitude;
00059
00060 typedef uint8_t _timeout_hit_type;
00061 uint8_t timeout_hit;
00062
00063 typedef uint8_t _flex_test_type;
00064 uint8_t flex_test;
00065
00066 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;
00067 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;
00068
00069 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _arg_value_type;
00070 std::vector<float, typename ContainerAllocator::template rebind<float>::other > arg_value;
00071
00072 typedef std::vector< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> >::other > _lift_data_type;
00073 std::vector< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> >::other > lift_data;
00074
00075
00076 ROS_DEPRECATED uint32_t get_arg_name_size() const { return (uint32_t)arg_name.size(); }
00077 ROS_DEPRECATED void set_arg_name_size(uint32_t size) { arg_name.resize((size_t)size); }
00078 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; }
00079 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; }
00080 ROS_DEPRECATED uint32_t get_arg_value_size() const { return (uint32_t)arg_value.size(); }
00081 ROS_DEPRECATED void set_arg_value_size(uint32_t size) { arg_value.resize((size_t)size); }
00082 ROS_DEPRECATED void get_arg_value_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->arg_value; }
00083 ROS_DEPRECATED void set_arg_value_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->arg_value = vec; }
00084 ROS_DEPRECATED uint32_t get_lift_data_size() const { return (uint32_t)lift_data.size(); }
00085 ROS_DEPRECATED void set_lift_data_size(uint32_t size) { lift_data.resize((size_t)size); }
00086 ROS_DEPRECATED void get_lift_data_vec(std::vector< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> >::other > & vec) const { vec = this->lift_data; }
00087 ROS_DEPRECATED void set_lift_data_vec(const std::vector< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> >::other > & vec) { this->lift_data = vec; }
00088 private:
00089 static const char* __s_getDataType_() { return "joint_qualification_controllers/CounterbalanceTestData"; }
00090 public:
00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00092
00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00094
00095 private:
00096 static const char* __s_getMD5Sum_() { return "ab80d40971aa9176fd2c9fb75aeb93cf"; }
00097 public:
00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00099
00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00101
00102 private:
00103 static const char* __s_getMessageDefinition_() { return "string lift_joint\n\
00104 string flex_joint\n\
00105 float32 lift_amplitude\n\
00106 float32 flex_amplitude\n\
00107 bool timeout_hit\n\
00108 bool flex_test\n\
00109 string[] arg_name\n\
00110 float32[] arg_value\n\
00111 CBRunData[] lift_data # Data for each hold\n\
00112 ================================================================================\n\
00113 MSG: joint_qualification_controllers/CBRunData\n\
00114 float32 lift_position\n\
00115 CBPositionData[] flex_data # Same lift position, diff flex positions\n\
00116 ================================================================================\n\
00117 MSG: joint_qualification_controllers/CBPositionData\n\
00118 float32 flex_position\n\
00119 JointPositionData lift_hold\n\
00120 JointPositionData flex_hold\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: joint_qualification_controllers/JointPositionData\n\
00124 float32[] time\n\
00125 float32[] position\n\
00126 float32[] velocity\n\
00127 float32[] effort\n\
00128 "; }
00129 public:
00130 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00131
00132 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00133
00134 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00135 {
00136 ros::serialization::OStream stream(write_ptr, 1000000000);
00137 ros::serialization::serialize(stream, lift_joint);
00138 ros::serialization::serialize(stream, flex_joint);
00139 ros::serialization::serialize(stream, lift_amplitude);
00140 ros::serialization::serialize(stream, flex_amplitude);
00141 ros::serialization::serialize(stream, timeout_hit);
00142 ros::serialization::serialize(stream, flex_test);
00143 ros::serialization::serialize(stream, arg_name);
00144 ros::serialization::serialize(stream, arg_value);
00145 ros::serialization::serialize(stream, lift_data);
00146 return stream.getData();
00147 }
00148
00149 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00150 {
00151 ros::serialization::IStream stream(read_ptr, 1000000000);
00152 ros::serialization::deserialize(stream, lift_joint);
00153 ros::serialization::deserialize(stream, flex_joint);
00154 ros::serialization::deserialize(stream, lift_amplitude);
00155 ros::serialization::deserialize(stream, flex_amplitude);
00156 ros::serialization::deserialize(stream, timeout_hit);
00157 ros::serialization::deserialize(stream, flex_test);
00158 ros::serialization::deserialize(stream, arg_name);
00159 ros::serialization::deserialize(stream, arg_value);
00160 ros::serialization::deserialize(stream, lift_data);
00161 return stream.getData();
00162 }
00163
00164 ROS_DEPRECATED virtual uint32_t serializationLength() const
00165 {
00166 uint32_t size = 0;
00167 size += ros::serialization::serializationLength(lift_joint);
00168 size += ros::serialization::serializationLength(flex_joint);
00169 size += ros::serialization::serializationLength(lift_amplitude);
00170 size += ros::serialization::serializationLength(flex_amplitude);
00171 size += ros::serialization::serializationLength(timeout_hit);
00172 size += ros::serialization::serializationLength(flex_test);
00173 size += ros::serialization::serializationLength(arg_name);
00174 size += ros::serialization::serializationLength(arg_value);
00175 size += ros::serialization::serializationLength(lift_data);
00176 return size;
00177 }
00178
00179 typedef boost::shared_ptr< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> > Ptr;
00180 typedef boost::shared_ptr< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> const> ConstPtr;
00181 };
00182 typedef ::joint_qualification_controllers::CounterbalanceTestData_<std::allocator<void> > CounterbalanceTestData;
00183
00184 typedef boost::shared_ptr< ::joint_qualification_controllers::CounterbalanceTestData> CounterbalanceTestDataPtr;
00185 typedef boost::shared_ptr< ::joint_qualification_controllers::CounterbalanceTestData const> CounterbalanceTestDataConstPtr;
00186
00187
00188 template<typename ContainerAllocator>
00189 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> & v)
00190 {
00191 ros::message_operations::Printer< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> >::stream(s, "", v);
00192 return s;}
00193
00194 }
00195
00196 namespace ros
00197 {
00198 namespace message_traits
00199 {
00200 template<class ContainerAllocator>
00201 struct MD5Sum< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> > {
00202 static const char* value()
00203 {
00204 return "ab80d40971aa9176fd2c9fb75aeb93cf";
00205 }
00206
00207 static const char* value(const ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> &) { return value(); }
00208 static const uint64_t static_value1 = 0xab80d40971aa9176ULL;
00209 static const uint64_t static_value2 = 0xfd2c9fb75aeb93cfULL;
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct DataType< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "joint_qualification_controllers/CounterbalanceTestData";
00217 }
00218
00219 static const char* value(const ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> &) { return value(); }
00220 };
00221
00222 template<class ContainerAllocator>
00223 struct Definition< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "string lift_joint\n\
00227 string flex_joint\n\
00228 float32 lift_amplitude\n\
00229 float32 flex_amplitude\n\
00230 bool timeout_hit\n\
00231 bool flex_test\n\
00232 string[] arg_name\n\
00233 float32[] arg_value\n\
00234 CBRunData[] lift_data # Data for each hold\n\
00235 ================================================================================\n\
00236 MSG: joint_qualification_controllers/CBRunData\n\
00237 float32 lift_position\n\
00238 CBPositionData[] flex_data # Same lift position, diff flex positions\n\
00239 ================================================================================\n\
00240 MSG: joint_qualification_controllers/CBPositionData\n\
00241 float32 flex_position\n\
00242 JointPositionData lift_hold\n\
00243 JointPositionData flex_hold\n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: joint_qualification_controllers/JointPositionData\n\
00247 float32[] time\n\
00248 float32[] position\n\
00249 float32[] velocity\n\
00250 float32[] effort\n\
00251 ";
00252 }
00253
00254 static const char* value(const ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> &) { return value(); }
00255 };
00256
00257 }
00258 }
00259
00260 namespace ros
00261 {
00262 namespace serialization
00263 {
00264
00265 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> >
00266 {
00267 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00268 {
00269 stream.next(m.lift_joint);
00270 stream.next(m.flex_joint);
00271 stream.next(m.lift_amplitude);
00272 stream.next(m.flex_amplitude);
00273 stream.next(m.timeout_hit);
00274 stream.next(m.flex_test);
00275 stream.next(m.arg_name);
00276 stream.next(m.arg_value);
00277 stream.next(m.lift_data);
00278 }
00279
00280 ROS_DECLARE_ALLINONE_SERIALIZER;
00281 };
00282 }
00283 }
00284
00285 namespace ros
00286 {
00287 namespace message_operations
00288 {
00289
00290 template<class ContainerAllocator>
00291 struct Printer< ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> >
00292 {
00293 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::CounterbalanceTestData_<ContainerAllocator> & v)
00294 {
00295 s << indent << "lift_joint: ";
00296 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.lift_joint);
00297 s << indent << "flex_joint: ";
00298 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.flex_joint);
00299 s << indent << "lift_amplitude: ";
00300 Printer<float>::stream(s, indent + " ", v.lift_amplitude);
00301 s << indent << "flex_amplitude: ";
00302 Printer<float>::stream(s, indent + " ", v.flex_amplitude);
00303 s << indent << "timeout_hit: ";
00304 Printer<uint8_t>::stream(s, indent + " ", v.timeout_hit);
00305 s << indent << "flex_test: ";
00306 Printer<uint8_t>::stream(s, indent + " ", v.flex_test);
00307 s << indent << "arg_name[]" << std::endl;
00308 for (size_t i = 0; i < v.arg_name.size(); ++i)
00309 {
00310 s << indent << " arg_name[" << i << "]: ";
00311 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.arg_name[i]);
00312 }
00313 s << indent << "arg_value[]" << std::endl;
00314 for (size_t i = 0; i < v.arg_value.size(); ++i)
00315 {
00316 s << indent << " arg_value[" << i << "]: ";
00317 Printer<float>::stream(s, indent + " ", v.arg_value[i]);
00318 }
00319 s << indent << "lift_data[]" << std::endl;
00320 for (size_t i = 0; i < v.lift_data.size(); ++i)
00321 {
00322 s << indent << " lift_data[" << i << "]: ";
00323 s << std::endl;
00324 s << indent;
00325 Printer< ::joint_qualification_controllers::CBRunData_<ContainerAllocator> >::stream(s, indent + " ", v.lift_data[i]);
00326 }
00327 }
00328 };
00329
00330
00331 }
00332 }
00333
00334 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_COUNTERBALANCETESTDATA_H
00335