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