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 <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 #include "sr_robot_msgs/joint.h"
00014
00015 namespace sr_robot_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct joints_data_ : public ros::Message
00019 {
00020 typedef joints_data_<ContainerAllocator> Type;
00021
00022 joints_data_()
00023 : joints_list_length(0)
00024 , joints_list()
00025 {
00026 }
00027
00028 joints_data_(const ContainerAllocator& _alloc)
00029 : joints_list_length(0)
00030 , joints_list(_alloc)
00031 {
00032 }
00033
00034 typedef int8_t _joints_list_length_type;
00035 int8_t joints_list_length;
00036
00037 typedef std::vector< ::sr_robot_msgs::joint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::joint_<ContainerAllocator> >::other > _joints_list_type;
00038 std::vector< ::sr_robot_msgs::joint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::joint_<ContainerAllocator> >::other > joints_list;
00039
00040
00041 ROS_DEPRECATED uint32_t get_joints_list_size() const { return (uint32_t)joints_list.size(); }
00042 ROS_DEPRECATED void set_joints_list_size(uint32_t size) { joints_list.resize((size_t)size); }
00043 ROS_DEPRECATED void get_joints_list_vec(std::vector< ::sr_robot_msgs::joint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::joint_<ContainerAllocator> >::other > & vec) const { vec = this->joints_list; }
00044 ROS_DEPRECATED void set_joints_list_vec(const std::vector< ::sr_robot_msgs::joint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::joint_<ContainerAllocator> >::other > & vec) { this->joints_list = vec; }
00045 private:
00046 static const char* __s_getDataType_() { return "sr_robot_msgs/joints_data"; }
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 "a696419a80afab19d9681a582e8368ef"; }
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 "int8 joints_list_length\n\
00061 joint[] joints_list\n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: sr_robot_msgs/joint\n\
00065 string joint_name\n\
00066 float32 joint_position\n\
00067 float32 joint_target\n\
00068 float32 joint_torque\n\
00069 float32 joint_temperature\n\
00070 float32 joint_current \n\
00071 string error_flag\n\
00072 \n\
00073 "; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00076
00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00080 {
00081 ros::serialization::OStream stream(write_ptr, 1000000000);
00082 ros::serialization::serialize(stream, joints_list_length);
00083 ros::serialization::serialize(stream, joints_list);
00084 return stream.getData();
00085 }
00086
00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00088 {
00089 ros::serialization::IStream stream(read_ptr, 1000000000);
00090 ros::serialization::deserialize(stream, joints_list_length);
00091 ros::serialization::deserialize(stream, joints_list);
00092 return stream.getData();
00093 }
00094
00095 ROS_DEPRECATED virtual uint32_t serializationLength() const
00096 {
00097 uint32_t size = 0;
00098 size += ros::serialization::serializationLength(joints_list_length);
00099 size += ros::serialization::serializationLength(joints_list);
00100 return size;
00101 }
00102
00103 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data_<ContainerAllocator> > Ptr;
00104 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data_<ContainerAllocator> const> ConstPtr;
00105 };
00106 typedef ::sr_robot_msgs::joints_data_<std::allocator<void> > joints_data;
00107
00108 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data> joints_dataPtr;
00109 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data const> joints_dataConstPtr;
00110
00111
00112 template<typename ContainerAllocator>
00113 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::joints_data_<ContainerAllocator> & v)
00114 {
00115 ros::message_operations::Printer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >::stream(s, "", v);
00116 return s;}
00117
00118 }
00119
00120 namespace ros
00121 {
00122 namespace message_traits
00123 {
00124 template<class ContainerAllocator>
00125 struct MD5Sum< ::sr_robot_msgs::joints_data_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "a696419a80afab19d9681a582e8368ef";
00129 }
00130
00131 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); }
00132 static const uint64_t static_value1 = 0xa696419a80afab19ULL;
00133 static const uint64_t static_value2 = 0xd9681a582e8368efULL;
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct DataType< ::sr_robot_msgs::joints_data_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "sr_robot_msgs/joints_data";
00141 }
00142
00143 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct Definition< ::sr_robot_msgs::joints_data_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "int8 joints_list_length\n\
00151 joint[] joints_list\n\
00152 \n\
00153 ================================================================================\n\
00154 MSG: sr_robot_msgs/joint\n\
00155 string joint_name\n\
00156 float32 joint_position\n\
00157 float32 joint_target\n\
00158 float32 joint_torque\n\
00159 float32 joint_temperature\n\
00160 float32 joint_current \n\
00161 string error_flag\n\
00162 \n\
00163 ";
00164 }
00165
00166 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.joints_list_length);
00182 stream.next(m.joints_list);
00183 }
00184
00185 ROS_DECLARE_ALLINONE_SERIALIZER;
00186 };
00187 }
00188 }
00189
00190 namespace ros
00191 {
00192 namespace message_operations
00193 {
00194
00195 template<class ContainerAllocator>
00196 struct Printer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >
00197 {
00198 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::joints_data_<ContainerAllocator> & v)
00199 {
00200 s << indent << "joints_list_length: ";
00201 Printer<int8_t>::stream(s, indent + " ", v.joints_list_length);
00202 s << indent << "joints_list[]" << std::endl;
00203 for (size_t i = 0; i < v.joints_list.size(); ++i)
00204 {
00205 s << indent << " joints_list[" << i << "]: ";
00206 s << std::endl;
00207 s << indent;
00208 Printer< ::sr_robot_msgs::joint_<ContainerAllocator> >::stream(s, indent + " ", v.joints_list[i]);
00209 }
00210 }
00211 };
00212
00213
00214 }
00215 }
00216
00217 #endif // SR_ROBOT_MSGS_MESSAGE_JOINTS_DATA_H
00218