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