00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_MULTIDOFJOINTTRAJECTORY_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_MULTIDOFJOINTTRAJECTORY_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 "motion_planning_msgs/MultiDOFJointTrajectoryPoint.h"
00014
00015 namespace motion_planning_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct MultiDOFJointTrajectory_ : public ros::Message
00019 {
00020 typedef MultiDOFJointTrajectory_<ContainerAllocator> Type;
00021
00022 MultiDOFJointTrajectory_()
00023 : stamp()
00024 , joint_names()
00025 , frame_ids()
00026 , child_frame_ids()
00027 , points()
00028 {
00029 }
00030
00031 MultiDOFJointTrajectory_(const ContainerAllocator& _alloc)
00032 : stamp()
00033 , joint_names(_alloc)
00034 , frame_ids(_alloc)
00035 , child_frame_ids(_alloc)
00036 , points(_alloc)
00037 {
00038 }
00039
00040 typedef ros::Duration _stamp_type;
00041 ros::Duration stamp;
00042
00043 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type;
00044 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names;
00045
00046 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _frame_ids_type;
00047 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > frame_ids;
00048
00049 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _child_frame_ids_type;
00050 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > child_frame_ids;
00051
00052 typedef std::vector< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::other > _points_type;
00053 std::vector< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::other > points;
00054
00055
00056 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); }
00057 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); }
00058 ROS_DEPRECATED void get_joint_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->joint_names; }
00059 ROS_DEPRECATED void set_joint_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->joint_names = vec; }
00060 ROS_DEPRECATED uint32_t get_frame_ids_size() const { return (uint32_t)frame_ids.size(); }
00061 ROS_DEPRECATED void set_frame_ids_size(uint32_t size) { frame_ids.resize((size_t)size); }
00062 ROS_DEPRECATED void get_frame_ids_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->frame_ids; }
00063 ROS_DEPRECATED void set_frame_ids_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->frame_ids = vec; }
00064 ROS_DEPRECATED uint32_t get_child_frame_ids_size() const { return (uint32_t)child_frame_ids.size(); }
00065 ROS_DEPRECATED void set_child_frame_ids_size(uint32_t size) { child_frame_ids.resize((size_t)size); }
00066 ROS_DEPRECATED void get_child_frame_ids_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->child_frame_ids; }
00067 ROS_DEPRECATED void set_child_frame_ids_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->child_frame_ids = vec; }
00068 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); }
00069 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); }
00070 ROS_DEPRECATED void get_points_vec(std::vector< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::other > & vec) const { vec = this->points; }
00071 ROS_DEPRECATED void set_points_vec(const std::vector< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::other > & vec) { this->points = vec; }
00072 private:
00073 static const char* __s_getDataType_() { return "motion_planning_msgs/MultiDOFJointTrajectory"; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00076
00077 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00078
00079 private:
00080 static const char* __s_getMD5Sum_() { return "524f128fb0a65e2838b0e3e3f75207d0"; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00083
00084 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00085
00086 private:
00087 static const char* __s_getMessageDefinition_() { return "#A representation of a multi-dof joint trajectory\n\
00088 duration stamp\n\
00089 string[] joint_names\n\
00090 string[] frame_ids\n\
00091 string[] child_frame_ids\n\
00092 MultiDOFJointTrajectoryPoint[] points\n\
00093 \n\
00094 ================================================================================\n\
00095 MSG: motion_planning_msgs/MultiDOFJointTrajectoryPoint\n\
00096 geometry_msgs/Pose[] poses\n\
00097 duration time_from_start\n\
00098 ================================================================================\n\
00099 MSG: geometry_msgs/Pose\n\
00100 # A representation of pose in free space, composed of postion and orientation. \n\
00101 Point position\n\
00102 Quaternion orientation\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: geometry_msgs/Point\n\
00106 # This contains the position of a point in free space\n\
00107 float64 x\n\
00108 float64 y\n\
00109 float64 z\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: geometry_msgs/Quaternion\n\
00113 # This represents an orientation in free space in quaternion form.\n\
00114 \n\
00115 float64 x\n\
00116 float64 y\n\
00117 float64 z\n\
00118 float64 w\n\
00119 \n\
00120 "; }
00121 public:
00122 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00123
00124 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00125
00126 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00127 {
00128 ros::serialization::OStream stream(write_ptr, 1000000000);
00129 ros::serialization::serialize(stream, stamp);
00130 ros::serialization::serialize(stream, joint_names);
00131 ros::serialization::serialize(stream, frame_ids);
00132 ros::serialization::serialize(stream, child_frame_ids);
00133 ros::serialization::serialize(stream, points);
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, stamp);
00141 ros::serialization::deserialize(stream, joint_names);
00142 ros::serialization::deserialize(stream, frame_ids);
00143 ros::serialization::deserialize(stream, child_frame_ids);
00144 ros::serialization::deserialize(stream, points);
00145 return stream.getData();
00146 }
00147
00148 ROS_DEPRECATED virtual uint32_t serializationLength() const
00149 {
00150 uint32_t size = 0;
00151 size += ros::serialization::serializationLength(stamp);
00152 size += ros::serialization::serializationLength(joint_names);
00153 size += ros::serialization::serializationLength(frame_ids);
00154 size += ros::serialization::serializationLength(child_frame_ids);
00155 size += ros::serialization::serializationLength(points);
00156 return size;
00157 }
00158
00159 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> > Ptr;
00160 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> const> ConstPtr;
00161 };
00162 typedef ::motion_planning_msgs::MultiDOFJointTrajectory_<std::allocator<void> > MultiDOFJointTrajectory;
00163
00164 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectory> MultiDOFJointTrajectoryPtr;
00165 typedef boost::shared_ptr< ::motion_planning_msgs::MultiDOFJointTrajectory const> MultiDOFJointTrajectoryConstPtr;
00166
00167
00168 template<typename ContainerAllocator>
00169 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> & v)
00170 {
00171 ros::message_operations::Printer< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> >::stream(s, "", v);
00172 return s;}
00173
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_traits
00179 {
00180 template<class ContainerAllocator>
00181 struct MD5Sum< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> > {
00182 static const char* value()
00183 {
00184 return "524f128fb0a65e2838b0e3e3f75207d0";
00185 }
00186
00187 static const char* value(const ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> &) { return value(); }
00188 static const uint64_t static_value1 = 0x524f128fb0a65e28ULL;
00189 static const uint64_t static_value2 = 0x38b0e3e3f75207d0ULL;
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct DataType< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "motion_planning_msgs/MultiDOFJointTrajectory";
00197 }
00198
00199 static const char* value(const ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> &) { return value(); }
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct Definition< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "#A representation of a multi-dof joint trajectory\n\
00207 duration stamp\n\
00208 string[] joint_names\n\
00209 string[] frame_ids\n\
00210 string[] child_frame_ids\n\
00211 MultiDOFJointTrajectoryPoint[] points\n\
00212 \n\
00213 ================================================================================\n\
00214 MSG: motion_planning_msgs/MultiDOFJointTrajectoryPoint\n\
00215 geometry_msgs/Pose[] poses\n\
00216 duration time_from_start\n\
00217 ================================================================================\n\
00218 MSG: geometry_msgs/Pose\n\
00219 # A representation of pose in free space, composed of postion and orientation. \n\
00220 Point position\n\
00221 Quaternion orientation\n\
00222 \n\
00223 ================================================================================\n\
00224 MSG: geometry_msgs/Point\n\
00225 # This contains the position of a point in free space\n\
00226 float64 x\n\
00227 float64 y\n\
00228 float64 z\n\
00229 \n\
00230 ================================================================================\n\
00231 MSG: geometry_msgs/Quaternion\n\
00232 # This represents an orientation in free space in quaternion form.\n\
00233 \n\
00234 float64 x\n\
00235 float64 y\n\
00236 float64 z\n\
00237 float64 w\n\
00238 \n\
00239 ";
00240 }
00241
00242 static const char* value(const ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> &) { return value(); }
00243 };
00244
00245 }
00246 }
00247
00248 namespace ros
00249 {
00250 namespace serialization
00251 {
00252
00253 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> >
00254 {
00255 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00256 {
00257 stream.next(m.stamp);
00258 stream.next(m.joint_names);
00259 stream.next(m.frame_ids);
00260 stream.next(m.child_frame_ids);
00261 stream.next(m.points);
00262 }
00263
00264 ROS_DECLARE_ALLINONE_SERIALIZER;
00265 };
00266 }
00267 }
00268
00269 namespace ros
00270 {
00271 namespace message_operations
00272 {
00273
00274 template<class ContainerAllocator>
00275 struct Printer< ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> >
00276 {
00277 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::MultiDOFJointTrajectory_<ContainerAllocator> & v)
00278 {
00279 s << indent << "stamp: ";
00280 Printer<ros::Duration>::stream(s, indent + " ", v.stamp);
00281 s << indent << "joint_names[]" << std::endl;
00282 for (size_t i = 0; i < v.joint_names.size(); ++i)
00283 {
00284 s << indent << " joint_names[" << i << "]: ";
00285 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
00286 }
00287 s << indent << "frame_ids[]" << std::endl;
00288 for (size_t i = 0; i < v.frame_ids.size(); ++i)
00289 {
00290 s << indent << " frame_ids[" << i << "]: ";
00291 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_ids[i]);
00292 }
00293 s << indent << "child_frame_ids[]" << std::endl;
00294 for (size_t i = 0; i < v.child_frame_ids.size(); ++i)
00295 {
00296 s << indent << " child_frame_ids[" << i << "]: ";
00297 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.child_frame_ids[i]);
00298 }
00299 s << indent << "points[]" << std::endl;
00300 for (size_t i = 0; i < v.points.size(); ++i)
00301 {
00302 s << indent << " points[" << i << "]: ";
00303 s << std::endl;
00304 s << indent;
00305 Printer< ::motion_planning_msgs::MultiDOFJointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]);
00306 }
00307 }
00308 };
00309
00310
00311 }
00312 }
00313
00314 #endif // MOTION_PLANNING_MSGS_MESSAGE_MULTIDOFJOINTTRAJECTORY_H
00315