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