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