Go to the documentation of this file.00001
00002 #ifndef SR_ROBOT_MSGS_MESSAGE_JOINTS_DATA_H
00003 #define SR_ROBOT_MSGS_MESSAGE_JOINTS_DATA_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 #include "sr_robot_msgs/joint.h"
00018
00019 namespace sr_robot_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct joints_data_ {
00023 typedef joints_data_<ContainerAllocator> Type;
00024
00025 joints_data_()
00026 : joints_list_length(0)
00027 , joints_list()
00028 {
00029 }
00030
00031 joints_data_(const ContainerAllocator& _alloc)
00032 : joints_list_length(0)
00033 , joints_list(_alloc)
00034 {
00035 }
00036
00037 typedef int8_t _joints_list_length_type;
00038 int8_t joints_list_length;
00039
00040 typedef std::vector< ::sr_robot_msgs::joint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::joint_<ContainerAllocator> >::other > _joints_list_type;
00041 std::vector< ::sr_robot_msgs::joint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::joint_<ContainerAllocator> >::other > joints_list;
00042
00043
00044 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::sr_robot_msgs::joints_data_<std::allocator<void> > joints_data;
00049
00050 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data> joints_dataPtr;
00051 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data const> joints_dataConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::joints_data_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::joints_data_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::joints_data_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::sr_robot_msgs::joints_data_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "a7bd94657f253c468247048a545e88e5";
00073 }
00074
00075 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0xa7bd94657f253c46ULL;
00077 static const uint64_t static_value2 = 0x8247048a545e88e5ULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::sr_robot_msgs::joints_data_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "sr_robot_msgs/joints_data";
00085 }
00086
00087 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::sr_robot_msgs::joints_data_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "int8 joints_list_length\n\
00095 joint[] joints_list\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: sr_robot_msgs/joint\n\
00099 string joint_name\n\
00100 float64 joint_position\n\
00101 float64 joint_target\n\
00102 float64 joint_torque\n\
00103 float64 joint_temperature\n\
00104 float64 joint_current\n\
00105 string error_flag\n\
00106 \n\
00107 ";
00108 }
00109
00110 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); }
00111 };
00112
00113 }
00114 }
00115
00116 namespace ros
00117 {
00118 namespace serialization
00119 {
00120
00121 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >
00122 {
00123 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00124 {
00125 stream.next(m.joints_list_length);
00126 stream.next(m.joints_list);
00127 }
00128
00129 ROS_DECLARE_ALLINONE_SERIALIZER;
00130 };
00131 }
00132 }
00133
00134 namespace ros
00135 {
00136 namespace message_operations
00137 {
00138
00139 template<class ContainerAllocator>
00140 struct Printer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >
00141 {
00142 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::joints_data_<ContainerAllocator> & v)
00143 {
00144 s << indent << "joints_list_length: ";
00145 Printer<int8_t>::stream(s, indent + " ", v.joints_list_length);
00146 s << indent << "joints_list[]" << std::endl;
00147 for (size_t i = 0; i < v.joints_list.size(); ++i)
00148 {
00149 s << indent << " joints_list[" << i << "]: ";
00150 s << std::endl;
00151 s << indent;
00152 Printer< ::sr_robot_msgs::joint_<ContainerAllocator> >::stream(s, indent + " ", v.joints_list[i]);
00153 }
00154 }
00155 };
00156
00157
00158 }
00159 }
00160
00161 #endif // SR_ROBOT_MSGS_MESSAGE_JOINTS_DATA_H
00162