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