00001
00002 #ifndef TELEKYB_MSGS_MESSAGE_TKTRAJECTORY_H
00003 #define TELEKYB_MSGS_MESSAGE_TKTRAJECTORY_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 #include "geometry_msgs/Vector3.h"
00019 #include "geometry_msgs/Vector3.h"
00020 #include "geometry_msgs/Vector3.h"
00021 #include "geometry_msgs/Vector3.h"
00022 #include "geometry_msgs/Vector3.h"
00023
00024 namespace telekyb_msgs
00025 {
00026 template <class ContainerAllocator>
00027 struct TKTrajectory_ {
00028 typedef TKTrajectory_<ContainerAllocator> Type;
00029
00030 TKTrajectory_()
00031 : header()
00032 , position()
00033 , velocity()
00034 , acceleration()
00035 , jerk()
00036 , snap()
00037 , xAxisCtrlType(0)
00038 , yAxisCtrlType(0)
00039 , zAxisCtrlType(0)
00040 , yawAngle(0.0)
00041 , yawRate(0.0)
00042 , yawAcceleration(0.0)
00043 , yawCtrlType(0)
00044 {
00045 }
00046
00047 TKTrajectory_(const ContainerAllocator& _alloc)
00048 : header(_alloc)
00049 , position(_alloc)
00050 , velocity(_alloc)
00051 , acceleration(_alloc)
00052 , jerk(_alloc)
00053 , snap(_alloc)
00054 , xAxisCtrlType(0)
00055 , yAxisCtrlType(0)
00056 , zAxisCtrlType(0)
00057 , yawAngle(0.0)
00058 , yawRate(0.0)
00059 , yawAcceleration(0.0)
00060 , yawCtrlType(0)
00061 {
00062 }
00063
00064 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00065 ::std_msgs::Header_<ContainerAllocator> header;
00066
00067 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _position_type;
00068 ::geometry_msgs::Vector3_<ContainerAllocator> position;
00069
00070 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _velocity_type;
00071 ::geometry_msgs::Vector3_<ContainerAllocator> velocity;
00072
00073 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _acceleration_type;
00074 ::geometry_msgs::Vector3_<ContainerAllocator> acceleration;
00075
00076 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _jerk_type;
00077 ::geometry_msgs::Vector3_<ContainerAllocator> jerk;
00078
00079 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _snap_type;
00080 ::geometry_msgs::Vector3_<ContainerAllocator> snap;
00081
00082 typedef uint8_t _xAxisCtrlType_type;
00083 uint8_t xAxisCtrlType;
00084
00085 typedef uint8_t _yAxisCtrlType_type;
00086 uint8_t yAxisCtrlType;
00087
00088 typedef uint8_t _zAxisCtrlType_type;
00089 uint8_t zAxisCtrlType;
00090
00091 typedef double _yawAngle_type;
00092 double yawAngle;
00093
00094 typedef double _yawRate_type;
00095 double yawRate;
00096
00097 typedef double _yawAcceleration_type;
00098 double yawAcceleration;
00099
00100 typedef uint8_t _yawCtrlType_type;
00101 uint8_t yawCtrlType;
00102
00103 enum { POS_MODE = 0 };
00104 enum { VEL_MODE = 1 };
00105 enum { ACC_MODE = 2 };
00106 enum { YAWANGLE_MODE = 0 };
00107 enum { YAWRATE_MODE = 1 };
00108 enum { YAWACC_MODE = 2 };
00109
00110 typedef boost::shared_ptr< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> const> ConstPtr;
00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00113 };
00114 typedef ::telekyb_msgs::TKTrajectory_<std::allocator<void> > TKTrajectory;
00115
00116 typedef boost::shared_ptr< ::telekyb_msgs::TKTrajectory> TKTrajectoryPtr;
00117 typedef boost::shared_ptr< ::telekyb_msgs::TKTrajectory const> TKTrajectoryConstPtr;
00118
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::telekyb_msgs::TKTrajectory_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> >::stream(s, "", v);
00124 return s;}
00125
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > : public TrueType {};
00133 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> const> : public TrueType {};
00134 template<class ContainerAllocator>
00135 struct MD5Sum< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "a280cd51c8c8e68c09773125129803bb";
00139 }
00140
00141 static const char* value(const ::telekyb_msgs::TKTrajectory_<ContainerAllocator> &) { return value(); }
00142 static const uint64_t static_value1 = 0xa280cd51c8c8e68cULL;
00143 static const uint64_t static_value2 = 0x09773125129803bbULL;
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct DataType< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "telekyb_msgs/TKTrajectory";
00151 }
00152
00153 static const char* value(const ::telekyb_msgs::TKTrajectory_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct Definition< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "#\n\
00161 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00162 #\n\
00163 # This file is part of TeleKyb.\n\
00164 #\n\
00165 # TeleKyb is free software: you can redistribute it and/or modify\n\
00166 # it under the terms of the GNU General Public License as published by\n\
00167 # the Free Software Foundation, either version 3 of the License, or\n\
00168 # (at your option) any later version.\n\
00169 #\n\
00170 # TeleKyb is distributed in the hope that it will be useful,\n\
00171 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00173 # GNU General Public License for more details.\n\
00174 #\n\
00175 # You should have received a copy of the GNU General Public License\n\
00176 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00177 \n\
00178 Header header\n\
00179 \n\
00180 # Input Pos\n\
00181 geometry_msgs/Vector3 position\n\
00182 geometry_msgs/Vector3 velocity\n\
00183 geometry_msgs/Vector3 acceleration\n\
00184 geometry_msgs/Vector3 jerk\n\
00185 geometry_msgs/Vector3 snap\n\
00186 \n\
00187 #TELEKYB_ENUM_VALUES(PosControlType, const char*,\n\
00188 # (Position)(\"Position Control Mode\")\n\
00189 # (Velocity)(\"Velocity Control Mode\")\n\
00190 # (Acceleration)(\"Acceleration Control Mode\")\n\
00191 #)\n\
00192 \n\
00193 uint8 POS_MODE=0\n\
00194 uint8 VEL_MODE=1\n\
00195 uint8 ACC_MODE=2\n\
00196 \n\
00197 uint8 xAxisCtrlType\n\
00198 uint8 yAxisCtrlType\n\
00199 uint8 zAxisCtrlType\n\
00200 \n\
00201 float64 yawAngle\n\
00202 float64 yawRate\n\
00203 float64 yawAcceleration\n\
00204 \n\
00205 #TELEKYB_ENUM_VALUES(YawControlType, const char*,\n\
00206 # (AngleMode)(\"Angle Mode\")\n\
00207 # (RateMode)(\"Rate Mode\")\n\
00208 # (AccelerationMode)(\"Acceleration Mode\")\n\
00209 #)\n\
00210 \n\
00211 uint8 YAWANGLE_MODE=0\n\
00212 uint8 YAWRATE_MODE=1\n\
00213 uint8 YAWACC_MODE=2\n\
00214 \n\
00215 uint8 yawCtrlType\n\
00216 \n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: std_msgs/Header\n\
00220 # Standard metadata for higher-level stamped data types.\n\
00221 # This is generally used to communicate timestamped data \n\
00222 # in a particular coordinate frame.\n\
00223 # \n\
00224 # sequence ID: consecutively increasing ID \n\
00225 uint32 seq\n\
00226 #Two-integer timestamp that is expressed as:\n\
00227 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00228 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00229 # time-handling sugar is provided by the client library\n\
00230 time stamp\n\
00231 #Frame this data is associated with\n\
00232 # 0: no frame\n\
00233 # 1: global frame\n\
00234 string frame_id\n\
00235 \n\
00236 ================================================================================\n\
00237 MSG: geometry_msgs/Vector3\n\
00238 # This represents a vector in free space. \n\
00239 \n\
00240 float64 x\n\
00241 float64 y\n\
00242 float64 z\n\
00243 ";
00244 }
00245
00246 static const char* value(const ::telekyb_msgs::TKTrajectory_<ContainerAllocator> &) { return value(); }
00247 };
00248
00249 template<class ContainerAllocator> struct HasHeader< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > : public TrueType {};
00250 template<class ContainerAllocator> struct HasHeader< const ::telekyb_msgs::TKTrajectory_<ContainerAllocator> > : public TrueType {};
00251 }
00252 }
00253
00254 namespace ros
00255 {
00256 namespace serialization
00257 {
00258
00259 template<class ContainerAllocator> struct Serializer< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> >
00260 {
00261 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00262 {
00263 stream.next(m.header);
00264 stream.next(m.position);
00265 stream.next(m.velocity);
00266 stream.next(m.acceleration);
00267 stream.next(m.jerk);
00268 stream.next(m.snap);
00269 stream.next(m.xAxisCtrlType);
00270 stream.next(m.yAxisCtrlType);
00271 stream.next(m.zAxisCtrlType);
00272 stream.next(m.yawAngle);
00273 stream.next(m.yawRate);
00274 stream.next(m.yawAcceleration);
00275 stream.next(m.yawCtrlType);
00276 }
00277
00278 ROS_DECLARE_ALLINONE_SERIALIZER;
00279 };
00280 }
00281 }
00282
00283 namespace ros
00284 {
00285 namespace message_operations
00286 {
00287
00288 template<class ContainerAllocator>
00289 struct Printer< ::telekyb_msgs::TKTrajectory_<ContainerAllocator> >
00290 {
00291 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::telekyb_msgs::TKTrajectory_<ContainerAllocator> & v)
00292 {
00293 s << indent << "header: ";
00294 s << std::endl;
00295 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00296 s << indent << "position: ";
00297 s << std::endl;
00298 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00299 s << indent << "velocity: ";
00300 s << std::endl;
00301 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.velocity);
00302 s << indent << "acceleration: ";
00303 s << std::endl;
00304 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.acceleration);
00305 s << indent << "jerk: ";
00306 s << std::endl;
00307 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.jerk);
00308 s << indent << "snap: ";
00309 s << std::endl;
00310 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.snap);
00311 s << indent << "xAxisCtrlType: ";
00312 Printer<uint8_t>::stream(s, indent + " ", v.xAxisCtrlType);
00313 s << indent << "yAxisCtrlType: ";
00314 Printer<uint8_t>::stream(s, indent + " ", v.yAxisCtrlType);
00315 s << indent << "zAxisCtrlType: ";
00316 Printer<uint8_t>::stream(s, indent + " ", v.zAxisCtrlType);
00317 s << indent << "yawAngle: ";
00318 Printer<double>::stream(s, indent + " ", v.yawAngle);
00319 s << indent << "yawRate: ";
00320 Printer<double>::stream(s, indent + " ", v.yawRate);
00321 s << indent << "yawAcceleration: ";
00322 Printer<double>::stream(s, indent + " ", v.yawAcceleration);
00323 s << indent << "yawCtrlType: ";
00324 Printer<uint8_t>::stream(s, indent + " ", v.yawCtrlType);
00325 }
00326 };
00327
00328
00329 }
00330 }
00331
00332 #endif // TELEKYB_MSGS_MESSAGE_TKTRAJECTORY_H
00333