$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/joints_data.msg */ 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 ROS_DEPRECATED uint32_t get_joints_list_size() const { return (uint32_t)joints_list.size(); } 00045 ROS_DEPRECATED void set_joints_list_size(uint32_t size) { joints_list.resize((size_t)size); } 00046 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; } 00047 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; } 00048 private: 00049 static const char* __s_getDataType_() { return "sr_robot_msgs/joints_data"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "a7bd94657f253c468247048a545e88e5"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "int8 joints_list_length\n\ 00064 joint[] joints_list\n\ 00065 \n\ 00066 ================================================================================\n\ 00067 MSG: sr_robot_msgs/joint\n\ 00068 string joint_name\n\ 00069 float64 joint_position\n\ 00070 float64 joint_target\n\ 00071 float64 joint_torque\n\ 00072 float64 joint_temperature\n\ 00073 float64 joint_current\n\ 00074 string error_flag\n\ 00075 \n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, joints_list_length); 00086 ros::serialization::serialize(stream, joints_list); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, joints_list_length); 00094 ros::serialization::deserialize(stream, joints_list); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(joints_list_length); 00102 size += ros::serialization::serializationLength(joints_list); 00103 return size; 00104 } 00105 00106 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data_<ContainerAllocator> > Ptr; 00107 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data_<ContainerAllocator> const> ConstPtr; 00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00109 }; // struct joints_data 00110 typedef ::sr_robot_msgs::joints_data_<std::allocator<void> > joints_data; 00111 00112 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data> joints_dataPtr; 00113 typedef boost::shared_ptr< ::sr_robot_msgs::joints_data const> joints_dataConstPtr; 00114 00115 00116 template<typename ContainerAllocator> 00117 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::joints_data_<ContainerAllocator> & v) 00118 { 00119 ros::message_operations::Printer< ::sr_robot_msgs::joints_data_<ContainerAllocator> >::stream(s, "", v); 00120 return s;} 00121 00122 } // namespace sr_robot_msgs 00123 00124 namespace ros 00125 { 00126 namespace message_traits 00127 { 00128 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::joints_data_<ContainerAllocator> > : public TrueType {}; 00129 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::joints_data_<ContainerAllocator> const> : public TrueType {}; 00130 template<class ContainerAllocator> 00131 struct MD5Sum< ::sr_robot_msgs::joints_data_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "a7bd94657f253c468247048a545e88e5"; 00135 } 00136 00137 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); } 00138 static const uint64_t static_value1 = 0xa7bd94657f253c46ULL; 00139 static const uint64_t static_value2 = 0x8247048a545e88e5ULL; 00140 }; 00141 00142 template<class ContainerAllocator> 00143 struct DataType< ::sr_robot_msgs::joints_data_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "sr_robot_msgs/joints_data"; 00147 } 00148 00149 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); } 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct Definition< ::sr_robot_msgs::joints_data_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "int8 joints_list_length\n\ 00157 joint[] joints_list\n\ 00158 \n\ 00159 ================================================================================\n\ 00160 MSG: sr_robot_msgs/joint\n\ 00161 string joint_name\n\ 00162 float64 joint_position\n\ 00163 float64 joint_target\n\ 00164 float64 joint_torque\n\ 00165 float64 joint_temperature\n\ 00166 float64 joint_current\n\ 00167 string error_flag\n\ 00168 \n\ 00169 "; 00170 } 00171 00172 static const char* value(const ::sr_robot_msgs::joints_data_<ContainerAllocator> &) { return value(); } 00173 }; 00174 00175 } // namespace message_traits 00176 } // namespace ros 00177 00178 namespace ros 00179 { 00180 namespace serialization 00181 { 00182 00183 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::joints_data_<ContainerAllocator> > 00184 { 00185 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00186 { 00187 stream.next(m.joints_list_length); 00188 stream.next(m.joints_list); 00189 } 00190 00191 ROS_DECLARE_ALLINONE_SERIALIZER; 00192 }; // struct joints_data_ 00193 } // namespace serialization 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace message_operations 00199 { 00200 00201 template<class ContainerAllocator> 00202 struct Printer< ::sr_robot_msgs::joints_data_<ContainerAllocator> > 00203 { 00204 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::joints_data_<ContainerAllocator> & v) 00205 { 00206 s << indent << "joints_list_length: "; 00207 Printer<int8_t>::stream(s, indent + " ", v.joints_list_length); 00208 s << indent << "joints_list[]" << std::endl; 00209 for (size_t i = 0; i < v.joints_list.size(); ++i) 00210 { 00211 s << indent << " joints_list[" << i << "]: "; 00212 s << std::endl; 00213 s << indent; 00214 Printer< ::sr_robot_msgs::joint_<ContainerAllocator> >::stream(s, indent + " ", v.joints_list[i]); 00215 } 00216 } 00217 }; 00218 00219 00220 } // namespace message_operations 00221 } // namespace ros 00222 00223 #endif // SR_ROBOT_MSGS_MESSAGE_JOINTS_DATA_H 00224