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