00001
00002 #ifndef CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYFEEDBACK_H
00003 #define CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYFEEDBACK_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 "std_msgs/Header.h"
00014 #include "trajectory_msgs/JointTrajectoryPoint.h"
00015 #include "trajectory_msgs/JointTrajectoryPoint.h"
00016 #include "trajectory_msgs/JointTrajectoryPoint.h"
00017
00018 namespace control_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct FollowJointTrajectoryFeedback_ : public ros::Message
00022 {
00023 typedef FollowJointTrajectoryFeedback_<ContainerAllocator> Type;
00024
00025 FollowJointTrajectoryFeedback_()
00026 : header()
00027 , joint_names()
00028 , desired()
00029 , actual()
00030 , error()
00031 {
00032 }
00033
00034 FollowJointTrajectoryFeedback_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , joint_names(_alloc)
00037 , desired(_alloc)
00038 , actual(_alloc)
00039 , error(_alloc)
00040 {
00041 }
00042
00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00044 ::std_msgs::Header_<ContainerAllocator> header;
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 > _joint_names_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 > joint_names;
00048
00049 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _desired_type;
00050 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> desired;
00051
00052 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _actual_type;
00053 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> actual;
00054
00055 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _error_type;
00056 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> error;
00057
00058
00059 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); }
00060 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); }
00061 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; }
00062 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; }
00063 private:
00064 static const char* __s_getDataType_() { return "control_msgs/FollowJointTrajectoryFeedback"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00067
00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00069
00070 private:
00071 static const char* __s_getMD5Sum_() { return "b11d532a92ee589417fdd76559eb1d9e"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00074
00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00076
00077 private:
00078 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00079 Header header\n\
00080 string[] joint_names\n\
00081 trajectory_msgs/JointTrajectoryPoint desired\n\
00082 trajectory_msgs/JointTrajectoryPoint actual\n\
00083 trajectory_msgs/JointTrajectoryPoint error\n\
00084 \n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: std_msgs/Header\n\
00088 # Standard metadata for higher-level stamped data types.\n\
00089 # This is generally used to communicate timestamped data \n\
00090 # in a particular coordinate frame.\n\
00091 # \n\
00092 # sequence ID: consecutively increasing ID \n\
00093 uint32 seq\n\
00094 #Two-integer timestamp that is expressed as:\n\
00095 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00096 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00097 # time-handling sugar is provided by the client library\n\
00098 time stamp\n\
00099 #Frame this data is associated with\n\
00100 # 0: no frame\n\
00101 # 1: global frame\n\
00102 string frame_id\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00106 float64[] positions\n\
00107 float64[] velocities\n\
00108 float64[] accelerations\n\
00109 duration time_from_start\n\
00110 "; }
00111 public:
00112 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00113
00114 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00115
00116 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00117 {
00118 ros::serialization::OStream stream(write_ptr, 1000000000);
00119 ros::serialization::serialize(stream, header);
00120 ros::serialization::serialize(stream, joint_names);
00121 ros::serialization::serialize(stream, desired);
00122 ros::serialization::serialize(stream, actual);
00123 ros::serialization::serialize(stream, error);
00124 return stream.getData();
00125 }
00126
00127 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00128 {
00129 ros::serialization::IStream stream(read_ptr, 1000000000);
00130 ros::serialization::deserialize(stream, header);
00131 ros::serialization::deserialize(stream, joint_names);
00132 ros::serialization::deserialize(stream, desired);
00133 ros::serialization::deserialize(stream, actual);
00134 ros::serialization::deserialize(stream, error);
00135 return stream.getData();
00136 }
00137
00138 ROS_DEPRECATED virtual uint32_t serializationLength() const
00139 {
00140 uint32_t size = 0;
00141 size += ros::serialization::serializationLength(header);
00142 size += ros::serialization::serializationLength(joint_names);
00143 size += ros::serialization::serializationLength(desired);
00144 size += ros::serialization::serializationLength(actual);
00145 size += ros::serialization::serializationLength(error);
00146 return size;
00147 }
00148
00149 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> > Ptr;
00150 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> const> ConstPtr;
00151 };
00152 typedef ::control_msgs::FollowJointTrajectoryFeedback_<std::allocator<void> > FollowJointTrajectoryFeedback;
00153
00154 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryFeedback> FollowJointTrajectoryFeedbackPtr;
00155 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryFeedback const> FollowJointTrajectoryFeedbackConstPtr;
00156
00157
00158 template<typename ContainerAllocator>
00159 std::ostream& operator<<(std::ostream& s, const ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> & v)
00160 {
00161 ros::message_operations::Printer< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> >::stream(s, "", v);
00162 return s;}
00163
00164 }
00165
00166 namespace ros
00167 {
00168 namespace message_traits
00169 {
00170 template<class ContainerAllocator>
00171 struct MD5Sum< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "b11d532a92ee589417fdd76559eb1d9e";
00175 }
00176
00177 static const char* value(const ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> &) { return value(); }
00178 static const uint64_t static_value1 = 0xb11d532a92ee5894ULL;
00179 static const uint64_t static_value2 = 0x17fdd76559eb1d9eULL;
00180 };
00181
00182 template<class ContainerAllocator>
00183 struct DataType< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> > {
00184 static const char* value()
00185 {
00186 return "control_msgs/FollowJointTrajectoryFeedback";
00187 }
00188
00189 static const char* value(const ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> &) { return value(); }
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct Definition< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00197 Header header\n\
00198 string[] joint_names\n\
00199 trajectory_msgs/JointTrajectoryPoint desired\n\
00200 trajectory_msgs/JointTrajectoryPoint actual\n\
00201 trajectory_msgs/JointTrajectoryPoint error\n\
00202 \n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: std_msgs/Header\n\
00206 # Standard metadata for higher-level stamped data types.\n\
00207 # This is generally used to communicate timestamped data \n\
00208 # in a particular coordinate frame.\n\
00209 # \n\
00210 # sequence ID: consecutively increasing ID \n\
00211 uint32 seq\n\
00212 #Two-integer timestamp that is expressed as:\n\
00213 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00214 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00215 # time-handling sugar is provided by the client library\n\
00216 time stamp\n\
00217 #Frame this data is associated with\n\
00218 # 0: no frame\n\
00219 # 1: global frame\n\
00220 string frame_id\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00224 float64[] positions\n\
00225 float64[] velocities\n\
00226 float64[] accelerations\n\
00227 duration time_from_start\n\
00228 ";
00229 }
00230
00231 static const char* value(const ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> &) { return value(); }
00232 };
00233
00234 template<class ContainerAllocator> struct HasHeader< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> > : public TrueType {};
00235 template<class ContainerAllocator> struct HasHeader< const ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> > : public TrueType {};
00236 }
00237 }
00238
00239 namespace ros
00240 {
00241 namespace serialization
00242 {
00243
00244 template<class ContainerAllocator> struct Serializer< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> >
00245 {
00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00247 {
00248 stream.next(m.header);
00249 stream.next(m.joint_names);
00250 stream.next(m.desired);
00251 stream.next(m.actual);
00252 stream.next(m.error);
00253 }
00254
00255 ROS_DECLARE_ALLINONE_SERIALIZER;
00256 };
00257 }
00258 }
00259
00260 namespace ros
00261 {
00262 namespace message_operations
00263 {
00264
00265 template<class ContainerAllocator>
00266 struct Printer< ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> >
00267 {
00268 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::control_msgs::FollowJointTrajectoryFeedback_<ContainerAllocator> & v)
00269 {
00270 s << indent << "header: ";
00271 s << std::endl;
00272 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00273 s << indent << "joint_names[]" << std::endl;
00274 for (size_t i = 0; i < v.joint_names.size(); ++i)
00275 {
00276 s << indent << " joint_names[" << i << "]: ";
00277 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
00278 }
00279 s << indent << "desired: ";
00280 s << std::endl;
00281 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.desired);
00282 s << indent << "actual: ";
00283 s << std::endl;
00284 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.actual);
00285 s << indent << "error: ";
00286 s << std::endl;
00287 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.error);
00288 }
00289 };
00290
00291
00292 }
00293 }
00294
00295 #endif // CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYFEEDBACK_H
00296