00001
00002 #ifndef CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYRESULT_H
00003 #define CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYRESULT_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
00014 namespace control_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct FollowJointTrajectoryResult_ : public ros::Message
00018 {
00019 typedef FollowJointTrajectoryResult_<ContainerAllocator> Type;
00020
00021 FollowJointTrajectoryResult_()
00022 : error_code(0)
00023 {
00024 }
00025
00026 FollowJointTrajectoryResult_(const ContainerAllocator& _alloc)
00027 : error_code(0)
00028 {
00029 }
00030
00031 typedef int32_t _error_code_type;
00032 int32_t error_code;
00033
00034 enum { SUCCESSFUL = 0 };
00035 enum { INVALID_GOAL = -1 };
00036 enum { INVALID_JOINTS = -2 };
00037 enum { OLD_HEADER_TIMESTAMP = -3 };
00038 enum { PATH_TOLERANCE_VIOLATED = -4 };
00039 enum { GOAL_TOLERANCE_VIOLATED = -5 };
00040
00041 private:
00042 static const char* __s_getDataType_() { return "control_msgs/FollowJointTrajectoryResult"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "6243274b5d629dc838814109754410d5"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00057 int32 error_code\n\
00058 int32 SUCCESSFUL = 0\n\
00059 int32 INVALID_GOAL = -1\n\
00060 int32 INVALID_JOINTS = -2\n\
00061 int32 OLD_HEADER_TIMESTAMP = -3\n\
00062 int32 PATH_TOLERANCE_VIOLATED = -4\n\
00063 int32 GOAL_TOLERANCE_VIOLATED = -5\n\
00064 \n\
00065 \n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, error_code);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 ros::serialization::deserialize(stream, error_code);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(error_code);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::control_msgs::FollowJointTrajectoryResult_<std::allocator<void> > FollowJointTrajectoryResult;
00097
00098 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryResult> FollowJointTrajectoryResultPtr;
00099 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryResult const> FollowJointTrajectoryResultConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "6243274b5d629dc838814109754410d5";
00119 }
00120
00121 static const char* value(const ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x6243274b5d629dc8ULL;
00123 static const uint64_t static_value2 = 0x38814109754410d5ULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "control_msgs/FollowJointTrajectoryResult";
00131 }
00132
00133 static const char* value(const ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00141 int32 error_code\n\
00142 int32 SUCCESSFUL = 0\n\
00143 int32 INVALID_GOAL = -1\n\
00144 int32 INVALID_JOINTS = -2\n\
00145 int32 OLD_HEADER_TIMESTAMP = -3\n\
00146 int32 PATH_TOLERANCE_VIOLATED = -4\n\
00147 int32 GOAL_TOLERANCE_VIOLATED = -5\n\
00148 \n\
00149 \n\
00150 ";
00151 }
00152
00153 static const char* value(const ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator> struct IsFixedSize< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> > : public TrueType {};
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164
00165 template<class ContainerAllocator> struct Serializer< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> >
00166 {
00167 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168 {
00169 stream.next(m.error_code);
00170 }
00171
00172 ROS_DECLARE_ALLINONE_SERIALIZER;
00173 };
00174 }
00175 }
00176
00177 namespace ros
00178 {
00179 namespace message_operations
00180 {
00181
00182 template<class ContainerAllocator>
00183 struct Printer< ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> >
00184 {
00185 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::control_msgs::FollowJointTrajectoryResult_<ContainerAllocator> & v)
00186 {
00187 s << indent << "error_code: ";
00188 Printer<int32_t>::stream(s, indent + " ", v.error_code);
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYRESULT_H
00197