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