00001
00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_JOINTPOSITIONDATA_H
00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_JOINTPOSITIONDATA_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 JointPositionData_ : public ros::Message
00018 {
00019 typedef JointPositionData_<ContainerAllocator> Type;
00020
00021 JointPositionData_()
00022 : time()
00023 , position()
00024 , velocity()
00025 , effort()
00026 {
00027 }
00028
00029 JointPositionData_(const ContainerAllocator& _alloc)
00030 : time(_alloc)
00031 , position(_alloc)
00032 , velocity(_alloc)
00033 , effort(_alloc)
00034 {
00035 }
00036
00037 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _time_type;
00038 std::vector<float, typename ContainerAllocator::template rebind<float>::other > time;
00039
00040 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _position_type;
00041 std::vector<float, typename ContainerAllocator::template rebind<float>::other > position;
00042
00043 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _velocity_type;
00044 std::vector<float, typename ContainerAllocator::template rebind<float>::other > velocity;
00045
00046 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _effort_type;
00047 std::vector<float, typename ContainerAllocator::template rebind<float>::other > effort;
00048
00049
00050 ROS_DEPRECATED uint32_t get_time_size() const { return (uint32_t)time.size(); }
00051 ROS_DEPRECATED void set_time_size(uint32_t size) { time.resize((size_t)size); }
00052 ROS_DEPRECATED void get_time_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->time; }
00053 ROS_DEPRECATED void set_time_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->time = vec; }
00054 ROS_DEPRECATED uint32_t get_position_size() const { return (uint32_t)position.size(); }
00055 ROS_DEPRECATED void set_position_size(uint32_t size) { position.resize((size_t)size); }
00056 ROS_DEPRECATED void get_position_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->position; }
00057 ROS_DEPRECATED void set_position_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->position = vec; }
00058 ROS_DEPRECATED uint32_t get_velocity_size() const { return (uint32_t)velocity.size(); }
00059 ROS_DEPRECATED void set_velocity_size(uint32_t size) { velocity.resize((size_t)size); }
00060 ROS_DEPRECATED void get_velocity_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->velocity; }
00061 ROS_DEPRECATED void set_velocity_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->velocity = vec; }
00062 ROS_DEPRECATED uint32_t get_effort_size() const { return (uint32_t)effort.size(); }
00063 ROS_DEPRECATED void set_effort_size(uint32_t size) { effort.resize((size_t)size); }
00064 ROS_DEPRECATED void get_effort_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->effort; }
00065 ROS_DEPRECATED void set_effort_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->effort = vec; }
00066 private:
00067 static const char* __s_getDataType_() { return "joint_qualification_controllers/JointPositionData"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00070
00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00072
00073 private:
00074 static const char* __s_getMD5Sum_() { return "20b7d551f5d22afac44b59b748c57bdb"; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00077
00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00079
00080 private:
00081 static const char* __s_getMessageDefinition_() { return "float32[] time\n\
00082 float32[] position\n\
00083 float32[] velocity\n\
00084 float32[] effort\n\
00085 "; }
00086 public:
00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00090
00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00092 {
00093 ros::serialization::OStream stream(write_ptr, 1000000000);
00094 ros::serialization::serialize(stream, time);
00095 ros::serialization::serialize(stream, position);
00096 ros::serialization::serialize(stream, velocity);
00097 ros::serialization::serialize(stream, effort);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00102 {
00103 ros::serialization::IStream stream(read_ptr, 1000000000);
00104 ros::serialization::deserialize(stream, time);
00105 ros::serialization::deserialize(stream, position);
00106 ros::serialization::deserialize(stream, velocity);
00107 ros::serialization::deserialize(stream, effort);
00108 return stream.getData();
00109 }
00110
00111 ROS_DEPRECATED virtual uint32_t serializationLength() const
00112 {
00113 uint32_t size = 0;
00114 size += ros::serialization::serializationLength(time);
00115 size += ros::serialization::serializationLength(position);
00116 size += ros::serialization::serializationLength(velocity);
00117 size += ros::serialization::serializationLength(effort);
00118 return size;
00119 }
00120
00121 typedef boost::shared_ptr< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> > Ptr;
00122 typedef boost::shared_ptr< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> const> ConstPtr;
00123 };
00124 typedef ::joint_qualification_controllers::JointPositionData_<std::allocator<void> > JointPositionData;
00125
00126 typedef boost::shared_ptr< ::joint_qualification_controllers::JointPositionData> JointPositionDataPtr;
00127 typedef boost::shared_ptr< ::joint_qualification_controllers::JointPositionData const> JointPositionDataConstPtr;
00128
00129
00130 template<typename ContainerAllocator>
00131 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> & v)
00132 {
00133 ros::message_operations::Printer< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> >::stream(s, "", v);
00134 return s;}
00135
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator>
00143 struct MD5Sum< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> > {
00144 static const char* value()
00145 {
00146 return "20b7d551f5d22afac44b59b748c57bdb";
00147 }
00148
00149 static const char* value(const ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> &) { return value(); }
00150 static const uint64_t static_value1 = 0x20b7d551f5d22afaULL;
00151 static const uint64_t static_value2 = 0xc44b59b748c57bdbULL;
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct DataType< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "joint_qualification_controllers/JointPositionData";
00159 }
00160
00161 static const char* value(const ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> &) { return value(); }
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct Definition< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "float32[] time\n\
00169 float32[] position\n\
00170 float32[] velocity\n\
00171 float32[] effort\n\
00172 ";
00173 }
00174
00175 static const char* value(const ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> &) { return value(); }
00176 };
00177
00178 }
00179 }
00180
00181 namespace ros
00182 {
00183 namespace serialization
00184 {
00185
00186 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> >
00187 {
00188 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00189 {
00190 stream.next(m.time);
00191 stream.next(m.position);
00192 stream.next(m.velocity);
00193 stream.next(m.effort);
00194 }
00195
00196 ROS_DECLARE_ALLINONE_SERIALIZER;
00197 };
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_operations
00204 {
00205
00206 template<class ContainerAllocator>
00207 struct Printer< ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> >
00208 {
00209 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::JointPositionData_<ContainerAllocator> & v)
00210 {
00211 s << indent << "time[]" << std::endl;
00212 for (size_t i = 0; i < v.time.size(); ++i)
00213 {
00214 s << indent << " time[" << i << "]: ";
00215 Printer<float>::stream(s, indent + " ", v.time[i]);
00216 }
00217 s << indent << "position[]" << std::endl;
00218 for (size_t i = 0; i < v.position.size(); ++i)
00219 {
00220 s << indent << " position[" << i << "]: ";
00221 Printer<float>::stream(s, indent + " ", v.position[i]);
00222 }
00223 s << indent << "velocity[]" << std::endl;
00224 for (size_t i = 0; i < v.velocity.size(); ++i)
00225 {
00226 s << indent << " velocity[" << i << "]: ";
00227 Printer<float>::stream(s, indent + " ", v.velocity[i]);
00228 }
00229 s << indent << "effort[]" << std::endl;
00230 for (size_t i = 0; i < v.effort.size(); ++i)
00231 {
00232 s << indent << " effort[" << i << "]: ";
00233 Printer<float>::stream(s, indent + " ", v.effort[i]);
00234 }
00235 }
00236 };
00237
00238
00239 }
00240 }
00241
00242 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_JOINTPOSITIONDATA_H
00243