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