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