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