$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/msg/joint.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_JOINT_H 00003 #define SR_ROBOT_MSGS_MESSAGE_JOINT_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 sr_robot_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct joint_ { 00022 typedef joint_<ContainerAllocator> Type; 00023 00024 joint_() 00025 : joint_name() 00026 , joint_position(0.0) 00027 , joint_target(0.0) 00028 , joint_torque(0.0) 00029 , joint_temperature(0.0) 00030 , joint_current(0.0) 00031 , error_flag() 00032 { 00033 } 00034 00035 joint_(const ContainerAllocator& _alloc) 00036 : joint_name(_alloc) 00037 , joint_position(0.0) 00038 , joint_target(0.0) 00039 , joint_torque(0.0) 00040 , joint_temperature(0.0) 00041 , joint_current(0.0) 00042 , error_flag(_alloc) 00043 { 00044 } 00045 00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _joint_name_type; 00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > joint_name; 00048 00049 typedef double _joint_position_type; 00050 double joint_position; 00051 00052 typedef double _joint_target_type; 00053 double joint_target; 00054 00055 typedef double _joint_torque_type; 00056 double joint_torque; 00057 00058 typedef double _joint_temperature_type; 00059 double joint_temperature; 00060 00061 typedef double _joint_current_type; 00062 double joint_current; 00063 00064 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_flag_type; 00065 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_flag; 00066 00067 00068 private: 00069 static const char* __s_getDataType_() { return "sr_robot_msgs/joint"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "4f0c5e71dfc214020935c3116ed47d6f"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "string joint_name\n\ 00084 float64 joint_position\n\ 00085 float64 joint_target\n\ 00086 float64 joint_torque\n\ 00087 float64 joint_temperature\n\ 00088 float64 joint_current\n\ 00089 string error_flag\n\ 00090 \n\ 00091 "; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00098 { 00099 ros::serialization::OStream stream(write_ptr, 1000000000); 00100 ros::serialization::serialize(stream, joint_name); 00101 ros::serialization::serialize(stream, joint_position); 00102 ros::serialization::serialize(stream, joint_target); 00103 ros::serialization::serialize(stream, joint_torque); 00104 ros::serialization::serialize(stream, joint_temperature); 00105 ros::serialization::serialize(stream, joint_current); 00106 ros::serialization::serialize(stream, error_flag); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00111 { 00112 ros::serialization::IStream stream(read_ptr, 1000000000); 00113 ros::serialization::deserialize(stream, joint_name); 00114 ros::serialization::deserialize(stream, joint_position); 00115 ros::serialization::deserialize(stream, joint_target); 00116 ros::serialization::deserialize(stream, joint_torque); 00117 ros::serialization::deserialize(stream, joint_temperature); 00118 ros::serialization::deserialize(stream, joint_current); 00119 ros::serialization::deserialize(stream, error_flag); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint32_t serializationLength() const 00124 { 00125 uint32_t size = 0; 00126 size += ros::serialization::serializationLength(joint_name); 00127 size += ros::serialization::serializationLength(joint_position); 00128 size += ros::serialization::serializationLength(joint_target); 00129 size += ros::serialization::serializationLength(joint_torque); 00130 size += ros::serialization::serializationLength(joint_temperature); 00131 size += ros::serialization::serializationLength(joint_current); 00132 size += ros::serialization::serializationLength(error_flag); 00133 return size; 00134 } 00135 00136 typedef boost::shared_ptr< ::sr_robot_msgs::joint_<ContainerAllocator> > Ptr; 00137 typedef boost::shared_ptr< ::sr_robot_msgs::joint_<ContainerAllocator> const> ConstPtr; 00138 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00139 }; // struct joint 00140 typedef ::sr_robot_msgs::joint_<std::allocator<void> > joint; 00141 00142 typedef boost::shared_ptr< ::sr_robot_msgs::joint> jointPtr; 00143 typedef boost::shared_ptr< ::sr_robot_msgs::joint const> jointConstPtr; 00144 00145 00146 template<typename ContainerAllocator> 00147 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::joint_<ContainerAllocator> & v) 00148 { 00149 ros::message_operations::Printer< ::sr_robot_msgs::joint_<ContainerAllocator> >::stream(s, "", v); 00150 return s;} 00151 00152 } // namespace sr_robot_msgs 00153 00154 namespace ros 00155 { 00156 namespace message_traits 00157 { 00158 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::joint_<ContainerAllocator> > : public TrueType {}; 00159 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::joint_<ContainerAllocator> const> : public TrueType {}; 00160 template<class ContainerAllocator> 00161 struct MD5Sum< ::sr_robot_msgs::joint_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "4f0c5e71dfc214020935c3116ed47d6f"; 00165 } 00166 00167 static const char* value(const ::sr_robot_msgs::joint_<ContainerAllocator> &) { return value(); } 00168 static const uint64_t static_value1 = 0x4f0c5e71dfc21402ULL; 00169 static const uint64_t static_value2 = 0x0935c3116ed47d6fULL; 00170 }; 00171 00172 template<class ContainerAllocator> 00173 struct DataType< ::sr_robot_msgs::joint_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "sr_robot_msgs/joint"; 00177 } 00178 00179 static const char* value(const ::sr_robot_msgs::joint_<ContainerAllocator> &) { return value(); } 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct Definition< ::sr_robot_msgs::joint_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "string joint_name\n\ 00187 float64 joint_position\n\ 00188 float64 joint_target\n\ 00189 float64 joint_torque\n\ 00190 float64 joint_temperature\n\ 00191 float64 joint_current\n\ 00192 string error_flag\n\ 00193 \n\ 00194 "; 00195 } 00196 00197 static const char* value(const ::sr_robot_msgs::joint_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 } // namespace message_traits 00201 } // namespace ros 00202 00203 namespace ros 00204 { 00205 namespace serialization 00206 { 00207 00208 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::joint_<ContainerAllocator> > 00209 { 00210 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00211 { 00212 stream.next(m.joint_name); 00213 stream.next(m.joint_position); 00214 stream.next(m.joint_target); 00215 stream.next(m.joint_torque); 00216 stream.next(m.joint_temperature); 00217 stream.next(m.joint_current); 00218 stream.next(m.error_flag); 00219 } 00220 00221 ROS_DECLARE_ALLINONE_SERIALIZER; 00222 }; // struct joint_ 00223 } // namespace serialization 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace message_operations 00229 { 00230 00231 template<class ContainerAllocator> 00232 struct Printer< ::sr_robot_msgs::joint_<ContainerAllocator> > 00233 { 00234 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::joint_<ContainerAllocator> & v) 00235 { 00236 s << indent << "joint_name: "; 00237 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_name); 00238 s << indent << "joint_position: "; 00239 Printer<double>::stream(s, indent + " ", v.joint_position); 00240 s << indent << "joint_target: "; 00241 Printer<double>::stream(s, indent + " ", v.joint_target); 00242 s << indent << "joint_torque: "; 00243 Printer<double>::stream(s, indent + " ", v.joint_torque); 00244 s << indent << "joint_temperature: "; 00245 Printer<double>::stream(s, indent + " ", v.joint_temperature); 00246 s << indent << "joint_current: "; 00247 Printer<double>::stream(s, indent + " ", v.joint_current); 00248 s << indent << "error_flag: "; 00249 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.error_flag); 00250 } 00251 }; 00252 00253 00254 } // namespace message_operations 00255 } // namespace ros 00256 00257 #endif // SR_ROBOT_MSGS_MESSAGE_JOINT_H 00258