00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_ROBOTTRAJECTORY_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_ROBOTTRAJECTORY_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 "trajectory_msgs/JointTrajectory.h"
00014 #include "motion_planning_msgs/MultiDOFJointTrajectory.h"
00015
00016 namespace motion_planning_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct RobotTrajectory_ : public ros::Message
00020 {
00021 typedef RobotTrajectory_<ContainerAllocator> Type;
00022
00023 RobotTrajectory_()
00024 : joint_trajectory()
00025 , multi_dof_joint_trajectory()
00026 {
00027 }
00028
00029 RobotTrajectory_(const ContainerAllocator& _alloc)
00030 : joint_trajectory(_alloc)
00031 , multi_dof_joint_trajectory(_alloc)
00032 {
00033 }
00034
00035 typedef ::trajectory_msgs::JointTrajectory_<ContainerAllocator> _joint_trajectory_type;
00036 ::trajectory_msgs::JointTrajectory_<ContainerAllocator> joint_trajectory;
00037
00038 typedef ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> _multi_dof_joint_trajectory_type;
00039 ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> multi_dof_joint_trajectory;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "motion_planning_msgs/RobotTrajectory"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "5bc8324620001e5c07a09d0bbfaaf093"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "trajectory_msgs/JointTrajectory joint_trajectory\n\
00058 motion_planning_msgs/MultiDOFJointTrajectory multi_dof_joint_trajectory\n\
00059 ================================================================================\n\
00060 MSG: trajectory_msgs/JointTrajectory\n\
00061 Header header\n\
00062 string[] joint_names\n\
00063 JointTrajectoryPoint[] points\n\
00064 ================================================================================\n\
00065 MSG: std_msgs/Header\n\
00066 # Standard metadata for higher-level stamped data types.\n\
00067 # This is generally used to communicate timestamped data \n\
00068 # in a particular coordinate frame.\n\
00069 # \n\
00070 # sequence ID: consecutively increasing ID \n\
00071 uint32 seq\n\
00072 #Two-integer timestamp that is expressed as:\n\
00073 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00074 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00075 # time-handling sugar is provided by the client library\n\
00076 time stamp\n\
00077 #Frame this data is associated with\n\
00078 # 0: no frame\n\
00079 # 1: global frame\n\
00080 string frame_id\n\
00081 \n\
00082 ================================================================================\n\
00083 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00084 float64[] positions\n\
00085 float64[] velocities\n\
00086 float64[] accelerations\n\
00087 duration time_from_start\n\
00088 ================================================================================\n\
00089 MSG: motion_planning_msgs/MultiDOFJointTrajectory\n\
00090 #A representation of a multi-dof joint trajectory\n\
00091 duration stamp\n\
00092 string[] joint_names\n\
00093 string[] frame_ids\n\
00094 string[] child_frame_ids\n\
00095 MultiDOFJointTrajectoryPoint[] points\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: motion_planning_msgs/MultiDOFJointTrajectoryPoint\n\
00099 geometry_msgs/Pose[] poses\n\
00100 duration time_from_start\n\
00101 ================================================================================\n\
00102 MSG: geometry_msgs/Pose\n\
00103 # A representation of pose in free space, composed of postion and orientation. \n\
00104 Point position\n\
00105 Quaternion orientation\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: geometry_msgs/Point\n\
00109 # This contains the position of a point in free space\n\
00110 float64 x\n\
00111 float64 y\n\
00112 float64 z\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: geometry_msgs/Quaternion\n\
00116 # This represents an orientation in free space in quaternion form.\n\
00117 \n\
00118 float64 x\n\
00119 float64 y\n\
00120 float64 z\n\
00121 float64 w\n\
00122 \n\
00123 "; }
00124 public:
00125 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00126
00127 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00128
00129 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00130 {
00131 ros::serialization::OStream stream(write_ptr, 1000000000);
00132 ros::serialization::serialize(stream, joint_trajectory);
00133 ros::serialization::serialize(stream, multi_dof_joint_trajectory);
00134 return stream.getData();
00135 }
00136
00137 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00138 {
00139 ros::serialization::IStream stream(read_ptr, 1000000000);
00140 ros::serialization::deserialize(stream, joint_trajectory);
00141 ros::serialization::deserialize(stream, multi_dof_joint_trajectory);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(joint_trajectory);
00149 size += ros::serialization::serializationLength(multi_dof_joint_trajectory);
00150 return size;
00151 }
00152
00153 typedef boost::shared_ptr< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> > Ptr;
00154 typedef boost::shared_ptr< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> const> ConstPtr;
00155 };
00156 typedef ::motion_planning_msgs::RobotTrajectory_<std::allocator<void> > RobotTrajectory;
00157
00158 typedef boost::shared_ptr< ::motion_planning_msgs::RobotTrajectory> RobotTrajectoryPtr;
00159 typedef boost::shared_ptr< ::motion_planning_msgs::RobotTrajectory const> RobotTrajectoryConstPtr;
00160
00161
00162 template<typename ContainerAllocator>
00163 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> & v)
00164 {
00165 ros::message_operations::Printer< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> >::stream(s, "", v);
00166 return s;}
00167
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_traits
00173 {
00174 template<class ContainerAllocator>
00175 struct MD5Sum< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "5bc8324620001e5c07a09d0bbfaaf093";
00179 }
00180
00181 static const char* value(const ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> &) { return value(); }
00182 static const uint64_t static_value1 = 0x5bc8324620001e5cULL;
00183 static const uint64_t static_value2 = 0x07a09d0bbfaaf093ULL;
00184 };
00185
00186 template<class ContainerAllocator>
00187 struct DataType< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "motion_planning_msgs/RobotTrajectory";
00191 }
00192
00193 static const char* value(const ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> &) { return value(); }
00194 };
00195
00196 template<class ContainerAllocator>
00197 struct Definition< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "trajectory_msgs/JointTrajectory joint_trajectory\n\
00201 motion_planning_msgs/MultiDOFJointTrajectory multi_dof_joint_trajectory\n\
00202 ================================================================================\n\
00203 MSG: trajectory_msgs/JointTrajectory\n\
00204 Header header\n\
00205 string[] joint_names\n\
00206 JointTrajectoryPoint[] points\n\
00207 ================================================================================\n\
00208 MSG: std_msgs/Header\n\
00209 # Standard metadata for higher-level stamped data types.\n\
00210 # This is generally used to communicate timestamped data \n\
00211 # in a particular coordinate frame.\n\
00212 # \n\
00213 # sequence ID: consecutively increasing ID \n\
00214 uint32 seq\n\
00215 #Two-integer timestamp that is expressed as:\n\
00216 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00217 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00218 # time-handling sugar is provided by the client library\n\
00219 time stamp\n\
00220 #Frame this data is associated with\n\
00221 # 0: no frame\n\
00222 # 1: global frame\n\
00223 string frame_id\n\
00224 \n\
00225 ================================================================================\n\
00226 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00227 float64[] positions\n\
00228 float64[] velocities\n\
00229 float64[] accelerations\n\
00230 duration time_from_start\n\
00231 ================================================================================\n\
00232 MSG: motion_planning_msgs/MultiDOFJointTrajectory\n\
00233 #A representation of a multi-dof joint trajectory\n\
00234 duration stamp\n\
00235 string[] joint_names\n\
00236 string[] frame_ids\n\
00237 string[] child_frame_ids\n\
00238 MultiDOFJointTrajectoryPoint[] points\n\
00239 \n\
00240 ================================================================================\n\
00241 MSG: motion_planning_msgs/MultiDOFJointTrajectoryPoint\n\
00242 geometry_msgs/Pose[] poses\n\
00243 duration time_from_start\n\
00244 ================================================================================\n\
00245 MSG: geometry_msgs/Pose\n\
00246 # A representation of pose in free space, composed of postion and orientation. \n\
00247 Point position\n\
00248 Quaternion orientation\n\
00249 \n\
00250 ================================================================================\n\
00251 MSG: geometry_msgs/Point\n\
00252 # This contains the position of a point in free space\n\
00253 float64 x\n\
00254 float64 y\n\
00255 float64 z\n\
00256 \n\
00257 ================================================================================\n\
00258 MSG: geometry_msgs/Quaternion\n\
00259 # This represents an orientation in free space in quaternion form.\n\
00260 \n\
00261 float64 x\n\
00262 float64 y\n\
00263 float64 z\n\
00264 float64 w\n\
00265 \n\
00266 ";
00267 }
00268
00269 static const char* value(const ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 }
00273 }
00274
00275 namespace ros
00276 {
00277 namespace serialization
00278 {
00279
00280 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> >
00281 {
00282 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00283 {
00284 stream.next(m.joint_trajectory);
00285 stream.next(m.multi_dof_joint_trajectory);
00286 }
00287
00288 ROS_DECLARE_ALLINONE_SERIALIZER;
00289 };
00290 }
00291 }
00292
00293 namespace ros
00294 {
00295 namespace message_operations
00296 {
00297
00298 template<class ContainerAllocator>
00299 struct Printer< ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> >
00300 {
00301 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::RobotTrajectory_<ContainerAllocator> & v)
00302 {
00303 s << indent << "joint_trajectory: ";
00304 s << std::endl;
00305 Printer< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> >::stream(s, indent + " ", v.joint_trajectory);
00306 s << indent << "multi_dof_joint_trajectory: ";
00307 s << std::endl;
00308 Printer< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> >::stream(s, indent + " ", v.multi_dof_joint_trajectory);
00309 }
00310 };
00311
00312
00313 }
00314 }
00315
00316 #endif // MOTION_PLANNING_MSGS_MESSAGE_ROBOTTRAJECTORY_H
00317