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