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