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