00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_MULTIDOFJOINTTRAJECTORYPOINT_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_MULTIDOFJOINTTRAJECTORYPOINT_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 "geometry_msgs/Pose.h"
00014
00015 namespace motion_planning_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct MultiDOFJointTrajectoryPoint_ : public ros::Message
00019 {
00020 typedef MultiDOFJointTrajectoryPoint_<ContainerAllocator> Type;
00021
00022 MultiDOFJointTrajectoryPoint_()
00023 : poses()
00024 , time_from_start()
00025 {
00026 }
00027
00028 MultiDOFJointTrajectoryPoint_(const ContainerAllocator& _alloc)
00029 : poses(_alloc)
00030 , time_from_start()
00031 {
00032 }
00033
00034 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _poses_type;
00035 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > poses;
00036
00037 typedef ros::Duration _time_from_start_type;
00038 ros::Duration time_from_start;
00039
00040
00041 ROS_DEPRECATED uint32_t get_poses_size() const { return (uint32_t)poses.size(); }
00042 ROS_DEPRECATED void set_poses_size(uint32_t size) { poses.resize((size_t)size); }
00043 ROS_DEPRECATED void get_poses_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->poses; }
00044 ROS_DEPRECATED void set_poses_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->poses = vec; }
00045 private:
00046 static const char* __s_getDataType_() { return "motion_planning_msgs/MultiDOFJointTrajectoryPoint"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "9be3ee3b5fa289b5394ab4ca9e54fa4e"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Pose[] poses\n\
00061 duration time_from_start\n\
00062 ================================================================================\n\
00063 MSG: geometry_msgs/Pose\n\
00064 # A representation of pose in free space, composed of postion and orientation. \n\
00065 Point position\n\
00066 Quaternion orientation\n\
00067 \n\
00068 ================================================================================\n\
00069 MSG: geometry_msgs/Point\n\
00070 # This contains the position of a point in free space\n\
00071 float64 x\n\
00072 float64 y\n\
00073 float64 z\n\
00074 \n\
00075 ================================================================================\n\
00076 MSG: geometry_msgs/Quaternion\n\
00077 # This represents an orientation in free space in quaternion form.\n\
00078 \n\
00079 float64 x\n\
00080 float64 y\n\
00081 float64 z\n\
00082 float64 w\n\
00083 \n\
00084 "; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00091 {
00092 ros::serialization::OStream stream(write_ptr, 1000000000);
00093 ros::serialization::serialize(stream, poses);
00094 ros::serialization::serialize(stream, time_from_start);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00099 {
00100 ros::serialization::IStream stream(read_ptr, 1000000000);
00101 ros::serialization::deserialize(stream, poses);
00102 ros::serialization::deserialize(stream, time_from_start);
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(poses);
00110 size += ros::serialization::serializationLength(time_from_start);
00111 return size;
00112 }
00113
00114 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> > Ptr;
00115 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> const> ConstPtr;
00116 };
00117 typedef ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<std::allocator<void> > MultiDOFJointTrajectoryPoint;
00118
00119 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint> MultiDOFJointTrajectoryPointPtr;
00120 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint const> MultiDOFJointTrajectoryPointConstPtr;
00121
00122
00123 template<typename ContainerAllocator>
00124 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> & v)
00125 {
00126 ros::message_operations::Printer< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::stream(s, "", v);
00127 return s;}
00128
00129 }
00130
00131 namespace ros
00132 {
00133 namespace message_traits
00134 {
00135 template<class ContainerAllocator>
00136 struct MD5Sum< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "9be3ee3b5fa289b5394ab4ca9e54fa4e";
00140 }
00141
00142 static const char* value(const ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> &) { return value(); }
00143 static const uint64_t static_value1 = 0x9be3ee3b5fa289b5ULL;
00144 static const uint64_t static_value2 = 0x394ab4ca9e54fa4eULL;
00145 };
00146
00147 template<class ContainerAllocator>
00148 struct DataType< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "motion_planning_msgs/MultiDOFJointTrajectoryPoint";
00152 }
00153
00154 static const char* value(const ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 template<class ContainerAllocator>
00158 struct Definition< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> > {
00159 static const char* value()
00160 {
00161 return "geometry_msgs/Pose[] poses\n\
00162 duration time_from_start\n\
00163 ================================================================================\n\
00164 MSG: geometry_msgs/Pose\n\
00165 # A representation of pose in free space, composed of postion and orientation. \n\
00166 Point position\n\
00167 Quaternion orientation\n\
00168 \n\
00169 ================================================================================\n\
00170 MSG: geometry_msgs/Point\n\
00171 # This contains the position of a point in free space\n\
00172 float64 x\n\
00173 float64 y\n\
00174 float64 z\n\
00175 \n\
00176 ================================================================================\n\
00177 MSG: geometry_msgs/Quaternion\n\
00178 # This represents an orientation in free space in quaternion form.\n\
00179 \n\
00180 float64 x\n\
00181 float64 y\n\
00182 float64 z\n\
00183 float64 w\n\
00184 \n\
00185 ";
00186 }
00187
00188 static const char* value(const ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> &) { return value(); }
00189 };
00190
00191 }
00192 }
00193
00194 namespace ros
00195 {
00196 namespace serialization
00197 {
00198
00199 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >
00200 {
00201 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00202 {
00203 stream.next(m.poses);
00204 stream.next(m.time_from_start);
00205 }
00206
00207 ROS_DECLARE_ALLINONE_SERIALIZER;
00208 };
00209 }
00210 }
00211
00212 namespace ros
00213 {
00214 namespace message_operations
00215 {
00216
00217 template<class ContainerAllocator>
00218 struct Printer< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >
00219 {
00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> & v)
00221 {
00222 s << indent << "poses[]" << std::endl;
00223 for (size_t i = 0; i < v.poses.size(); ++i)
00224 {
00225 s << indent << " poses[" << i << "]: ";
00226 s << std::endl;
00227 s << indent;
00228 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.poses[i]);
00229 }
00230 s << indent << "time_from_start: ";
00231 Printer<ros::Duration>::stream(s, indent + " ", v.time_from_start);
00232 }
00233 };
00234
00235
00236 }
00237 }
00238
00239 #endif // MOTION_PLANNING_MSGS_MESSAGE_MULTIDOFJOINTTRAJECTORYPOINT_H
00240