00001
00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ACTUATORDATA_H
00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ACTUATORDATA_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 ActuatorData_ : public ros::Message
00018 {
00019 typedef ActuatorData_<ContainerAllocator> Type;
00020
00021 ActuatorData_()
00022 : index(0)
00023 , name()
00024 , id(0)
00025 {
00026 }
00027
00028 ActuatorData_(const ContainerAllocator& _alloc)
00029 : index(0)
00030 , name(_alloc)
00031 , id(0)
00032 {
00033 }
00034
00035 typedef int16_t _index_type;
00036 int16_t index;
00037
00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00040
00041 typedef int16_t _id_type;
00042 int16_t id;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "joint_qualification_controllers/ActuatorData"; }
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 "2c56db35f7889a677f83b66883afdaf4"; }
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 "int16 index\n\
00061 string name\n\
00062 int16 id\n\
00063 \n\
00064 \n\
00065 "; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00072 {
00073 ros::serialization::OStream stream(write_ptr, 1000000000);
00074 ros::serialization::serialize(stream, index);
00075 ros::serialization::serialize(stream, name);
00076 ros::serialization::serialize(stream, id);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 ros::serialization::deserialize(stream, index);
00084 ros::serialization::deserialize(stream, name);
00085 ros::serialization::deserialize(stream, id);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint32_t serializationLength() const
00090 {
00091 uint32_t size = 0;
00092 size += ros::serialization::serializationLength(index);
00093 size += ros::serialization::serializationLength(name);
00094 size += ros::serialization::serializationLength(id);
00095 return size;
00096 }
00097
00098 typedef boost::shared_ptr< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> > Ptr;
00099 typedef boost::shared_ptr< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> const> ConstPtr;
00100 };
00101 typedef ::joint_qualification_controllers::ActuatorData_<std::allocator<void> > ActuatorData;
00102
00103 typedef boost::shared_ptr< ::joint_qualification_controllers::ActuatorData> ActuatorDataPtr;
00104 typedef boost::shared_ptr< ::joint_qualification_controllers::ActuatorData const> ActuatorDataConstPtr;
00105
00106
00107 template<typename ContainerAllocator>
00108 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> & v)
00109 {
00110 ros::message_operations::Printer< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::stream(s, "", v);
00111 return s;}
00112
00113 }
00114
00115 namespace ros
00116 {
00117 namespace message_traits
00118 {
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "2c56db35f7889a677f83b66883afdaf4";
00124 }
00125
00126 static const char* value(const ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0x2c56db35f7889a67ULL;
00128 static const uint64_t static_value2 = 0x7f83b66883afdaf4ULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "joint_qualification_controllers/ActuatorData";
00136 }
00137
00138 static const char* value(const ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "int16 index\n\
00146 string name\n\
00147 int16 id\n\
00148 \n\
00149 \n\
00150 ";
00151 }
00152
00153 static const char* value(const ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 }
00157 }
00158
00159 namespace ros
00160 {
00161 namespace serialization
00162 {
00163
00164 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >
00165 {
00166 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00167 {
00168 stream.next(m.index);
00169 stream.next(m.name);
00170 stream.next(m.id);
00171 }
00172
00173 ROS_DECLARE_ALLINONE_SERIALIZER;
00174 };
00175 }
00176 }
00177
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182
00183 template<class ContainerAllocator>
00184 struct Printer< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >
00185 {
00186 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> & v)
00187 {
00188 s << indent << "index: ";
00189 Printer<int16_t>::stream(s, indent + " ", v.index);
00190 s << indent << "name: ";
00191 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00192 s << indent << "id: ";
00193 Printer<int16_t>::stream(s, indent + " ", v.id);
00194 }
00195 };
00196
00197
00198 }
00199 }
00200
00201 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ACTUATORDATA_H
00202