$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-object_manipulation/doc_stacks/2013-03-01_16-13-18.345538/object_manipulation/object_manipulation_msgs/msg/CartesianGains.msg */ 00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_CARTESIANGAINS_H 00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_CARTESIANGAINS_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 "std_msgs/Header.h" 00018 00019 namespace object_manipulation_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct CartesianGains_ { 00023 typedef CartesianGains_<ContainerAllocator> Type; 00024 00025 CartesianGains_() 00026 : header() 00027 , gains() 00028 , fixed_frame() 00029 { 00030 } 00031 00032 CartesianGains_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , gains(_alloc) 00035 , fixed_frame(_alloc) 00036 { 00037 } 00038 00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00040 ::std_msgs::Header_<ContainerAllocator> header; 00041 00042 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _gains_type; 00043 std::vector<double, typename ContainerAllocator::template rebind<double>::other > gains; 00044 00045 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _fixed_frame_type; 00046 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fixed_frame; 00047 00048 00049 ROS_DEPRECATED uint32_t get_gains_size() const { return (uint32_t)gains.size(); } 00050 ROS_DEPRECATED void set_gains_size(uint32_t size) { gains.resize((size_t)size); } 00051 ROS_DEPRECATED void get_gains_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->gains; } 00052 ROS_DEPRECATED void set_gains_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->gains = vec; } 00053 ROS_DEPRECATED uint32_t get_fixed_frame_size() const { return (uint32_t)fixed_frame.size(); } 00054 ROS_DEPRECATED void set_fixed_frame_size(uint32_t size) { fixed_frame.resize((size_t)size); } 00055 ROS_DEPRECATED void get_fixed_frame_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fixed_frame; } 00056 ROS_DEPRECATED void set_fixed_frame_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fixed_frame = vec; } 00057 private: 00058 static const char* __s_getDataType_() { return "object_manipulation_msgs/CartesianGains"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "ab347f046ca5736a156ec424cbb63635"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00073 \n\ 00074 float64[] gains\n\ 00075 float64[] fixed_frame\n\ 00076 \n\ 00077 ================================================================================\n\ 00078 MSG: std_msgs/Header\n\ 00079 # Standard metadata for higher-level stamped data types.\n\ 00080 # This is generally used to communicate timestamped data \n\ 00081 # in a particular coordinate frame.\n\ 00082 # \n\ 00083 # sequence ID: consecutively increasing ID \n\ 00084 uint32 seq\n\ 00085 #Two-integer timestamp that is expressed as:\n\ 00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00088 # time-handling sugar is provided by the client library\n\ 00089 time stamp\n\ 00090 #Frame this data is associated with\n\ 00091 # 0: no frame\n\ 00092 # 1: global frame\n\ 00093 string frame_id\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, header); 00105 ros::serialization::serialize(stream, gains); 00106 ros::serialization::serialize(stream, fixed_frame); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00111 { 00112 ros::serialization::IStream stream(read_ptr, 1000000000); 00113 ros::serialization::deserialize(stream, header); 00114 ros::serialization::deserialize(stream, gains); 00115 ros::serialization::deserialize(stream, fixed_frame); 00116 return stream.getData(); 00117 } 00118 00119 ROS_DEPRECATED virtual uint32_t serializationLength() const 00120 { 00121 uint32_t size = 0; 00122 size += ros::serialization::serializationLength(header); 00123 size += ros::serialization::serializationLength(gains); 00124 size += ros::serialization::serializationLength(fixed_frame); 00125 return size; 00126 } 00127 00128 typedef boost::shared_ptr< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > Ptr; 00129 typedef boost::shared_ptr< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> const> ConstPtr; 00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00131 }; // struct CartesianGains 00132 typedef ::object_manipulation_msgs::CartesianGains_<std::allocator<void> > CartesianGains; 00133 00134 typedef boost::shared_ptr< ::object_manipulation_msgs::CartesianGains> CartesianGainsPtr; 00135 typedef boost::shared_ptr< ::object_manipulation_msgs::CartesianGains const> CartesianGainsConstPtr; 00136 00137 00138 template<typename ContainerAllocator> 00139 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> & v) 00140 { 00141 ros::message_operations::Printer< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> >::stream(s, "", v); 00142 return s;} 00143 00144 } // namespace object_manipulation_msgs 00145 00146 namespace ros 00147 { 00148 namespace message_traits 00149 { 00150 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > : public TrueType {}; 00151 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> const> : public TrueType {}; 00152 template<class ContainerAllocator> 00153 struct MD5Sum< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "ab347f046ca5736a156ec424cbb63635"; 00157 } 00158 00159 static const char* value(const ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> &) { return value(); } 00160 static const uint64_t static_value1 = 0xab347f046ca5736aULL; 00161 static const uint64_t static_value2 = 0x156ec424cbb63635ULL; 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct DataType< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "object_manipulation_msgs/CartesianGains"; 00169 } 00170 00171 static const char* value(const ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct Definition< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "Header header\n\ 00179 \n\ 00180 float64[] gains\n\ 00181 float64[] fixed_frame\n\ 00182 \n\ 00183 ================================================================================\n\ 00184 MSG: std_msgs/Header\n\ 00185 # Standard metadata for higher-level stamped data types.\n\ 00186 # This is generally used to communicate timestamped data \n\ 00187 # in a particular coordinate frame.\n\ 00188 # \n\ 00189 # sequence ID: consecutively increasing ID \n\ 00190 uint32 seq\n\ 00191 #Two-integer timestamp that is expressed as:\n\ 00192 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00193 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00194 # time-handling sugar is provided by the client library\n\ 00195 time stamp\n\ 00196 #Frame this data is associated with\n\ 00197 # 0: no frame\n\ 00198 # 1: global frame\n\ 00199 string frame_id\n\ 00200 \n\ 00201 "; 00202 } 00203 00204 static const char* value(const ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> &) { return value(); } 00205 }; 00206 00207 template<class ContainerAllocator> struct HasHeader< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > : public TrueType {}; 00208 template<class ContainerAllocator> struct HasHeader< const ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > : public TrueType {}; 00209 } // namespace message_traits 00210 } // namespace ros 00211 00212 namespace ros 00213 { 00214 namespace serialization 00215 { 00216 00217 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > 00218 { 00219 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00220 { 00221 stream.next(m.header); 00222 stream.next(m.gains); 00223 stream.next(m.fixed_frame); 00224 } 00225 00226 ROS_DECLARE_ALLINONE_SERIALIZER; 00227 }; // struct CartesianGains_ 00228 } // namespace serialization 00229 } // namespace ros 00230 00231 namespace ros 00232 { 00233 namespace message_operations 00234 { 00235 00236 template<class ContainerAllocator> 00237 struct Printer< ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> > 00238 { 00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::CartesianGains_<ContainerAllocator> & v) 00240 { 00241 s << indent << "header: "; 00242 s << std::endl; 00243 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00244 s << indent << "gains[]" << std::endl; 00245 for (size_t i = 0; i < v.gains.size(); ++i) 00246 { 00247 s << indent << " gains[" << i << "]: "; 00248 Printer<double>::stream(s, indent + " ", v.gains[i]); 00249 } 00250 s << indent << "fixed_frame[]" << std::endl; 00251 for (size_t i = 0; i < v.fixed_frame.size(); ++i) 00252 { 00253 s << indent << " fixed_frame[" << i << "]: "; 00254 Printer<double>::stream(s, indent + " ", v.fixed_frame[i]); 00255 } 00256 } 00257 }; 00258 00259 00260 } // namespace message_operations 00261 } // namespace ros 00262 00263 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_CARTESIANGAINS_H 00264