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