00001
00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_JOINTDATA_H
00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_JOINTDATA_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 JointData_ : public ros::Message
00018 {
00019 typedef JointData_<ContainerAllocator> Type;
00020
00021 JointData_()
00022 : index(0)
00023 , name()
00024 , is_cal(0)
00025 , has_safety(0)
00026 , type()
00027 {
00028 }
00029
00030 JointData_(const ContainerAllocator& _alloc)
00031 : index(0)
00032 , name(_alloc)
00033 , is_cal(0)
00034 , has_safety(0)
00035 , type(_alloc)
00036 {
00037 }
00038
00039 typedef int16_t _index_type;
00040 int16_t index;
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00044
00045 typedef int8_t _is_cal_type;
00046 int8_t is_cal;
00047
00048 typedef int8_t _has_safety_type;
00049 int8_t has_safety;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00053
00054
00055 private:
00056 static const char* __s_getDataType_() { return "joint_qualification_controllers/JointData"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00059
00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00061
00062 private:
00063 static const char* __s_getMD5Sum_() { return "191610564bf935172c9424c803ed6939"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "int16 index\n\
00071 string name\n\
00072 byte is_cal\n\
00073 byte has_safety\n\
00074 string type\n\
00075 \n\
00076 \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, index);
00087 ros::serialization::serialize(stream, name);
00088 ros::serialization::serialize(stream, is_cal);
00089 ros::serialization::serialize(stream, has_safety);
00090 ros::serialization::serialize(stream, type);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00095 {
00096 ros::serialization::IStream stream(read_ptr, 1000000000);
00097 ros::serialization::deserialize(stream, index);
00098 ros::serialization::deserialize(stream, name);
00099 ros::serialization::deserialize(stream, is_cal);
00100 ros::serialization::deserialize(stream, has_safety);
00101 ros::serialization::deserialize(stream, type);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint32_t serializationLength() const
00106 {
00107 uint32_t size = 0;
00108 size += ros::serialization::serializationLength(index);
00109 size += ros::serialization::serializationLength(name);
00110 size += ros::serialization::serializationLength(is_cal);
00111 size += ros::serialization::serializationLength(has_safety);
00112 size += ros::serialization::serializationLength(type);
00113 return size;
00114 }
00115
00116 typedef boost::shared_ptr< ::joint_qualification_controllers::JointData_<ContainerAllocator> > Ptr;
00117 typedef boost::shared_ptr< ::joint_qualification_controllers::JointData_<ContainerAllocator> const> ConstPtr;
00118 };
00119 typedef ::joint_qualification_controllers::JointData_<std::allocator<void> > JointData;
00120
00121 typedef boost::shared_ptr< ::joint_qualification_controllers::JointData> JointDataPtr;
00122 typedef boost::shared_ptr< ::joint_qualification_controllers::JointData const> JointDataConstPtr;
00123
00124
00125 template<typename ContainerAllocator>
00126 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::JointData_<ContainerAllocator> & v)
00127 {
00128 ros::message_operations::Printer< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::stream(s, "", v);
00129 return s;}
00130
00131 }
00132
00133 namespace ros
00134 {
00135 namespace message_traits
00136 {
00137 template<class ContainerAllocator>
00138 struct MD5Sum< ::joint_qualification_controllers::JointData_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "191610564bf935172c9424c803ed6939";
00142 }
00143
00144 static const char* value(const ::joint_qualification_controllers::JointData_<ContainerAllocator> &) { return value(); }
00145 static const uint64_t static_value1 = 0x191610564bf93517ULL;
00146 static const uint64_t static_value2 = 0x2c9424c803ed6939ULL;
00147 };
00148
00149 template<class ContainerAllocator>
00150 struct DataType< ::joint_qualification_controllers::JointData_<ContainerAllocator> > {
00151 static const char* value()
00152 {
00153 return "joint_qualification_controllers/JointData";
00154 }
00155
00156 static const char* value(const ::joint_qualification_controllers::JointData_<ContainerAllocator> &) { return value(); }
00157 };
00158
00159 template<class ContainerAllocator>
00160 struct Definition< ::joint_qualification_controllers::JointData_<ContainerAllocator> > {
00161 static const char* value()
00162 {
00163 return "int16 index\n\
00164 string name\n\
00165 byte is_cal\n\
00166 byte has_safety\n\
00167 string type\n\
00168 \n\
00169 \n\
00170 ";
00171 }
00172
00173 static const char* value(const ::joint_qualification_controllers::JointData_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace serialization
00182 {
00183
00184 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::JointData_<ContainerAllocator> >
00185 {
00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00187 {
00188 stream.next(m.index);
00189 stream.next(m.name);
00190 stream.next(m.is_cal);
00191 stream.next(m.has_safety);
00192 stream.next(m.type);
00193 }
00194
00195 ROS_DECLARE_ALLINONE_SERIALIZER;
00196 };
00197 }
00198 }
00199
00200 namespace ros
00201 {
00202 namespace message_operations
00203 {
00204
00205 template<class ContainerAllocator>
00206 struct Printer< ::joint_qualification_controllers::JointData_<ContainerAllocator> >
00207 {
00208 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::JointData_<ContainerAllocator> & v)
00209 {
00210 s << indent << "index: ";
00211 Printer<int16_t>::stream(s, indent + " ", v.index);
00212 s << indent << "name: ";
00213 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00214 s << indent << "is_cal: ";
00215 Printer<int8_t>::stream(s, indent + " ", v.is_cal);
00216 s << indent << "has_safety: ";
00217 Printer<int8_t>::stream(s, indent + " ", v.has_safety);
00218 s << indent << "type: ";
00219 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type);
00220 }
00221 };
00222
00223
00224 }
00225 }
00226
00227 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_JOINTDATA_H
00228