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