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