00001
00002 #ifndef MOVE_ARM_MSGS_MESSAGE_MOVEARMFEEDBACK_H
00003 #define MOVE_ARM_MSGS_MESSAGE_MOVEARMFEEDBACK_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 move_arm_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct MoveArmFeedback_ : public ros::Message
00018 {
00019 typedef MoveArmFeedback_<ContainerAllocator> Type;
00020
00021 MoveArmFeedback_()
00022 : state()
00023 , time_to_completion()
00024 {
00025 }
00026
00027 MoveArmFeedback_(const ContainerAllocator& _alloc)
00028 : state(_alloc)
00029 , time_to_completion()
00030 {
00031 }
00032
00033 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _state_type;
00034 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > state;
00035
00036 typedef ros::Duration _time_to_completion_type;
00037 ros::Duration time_to_completion;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "move_arm_msgs/MoveArmFeedback"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "321f3feadd0d5c1b7d7135738e673560"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# The internal state that the move arm action currently is in\n\
00056 string state\n\
00057 \n\
00058 # Time to completion - this is a combination of requested planning time and trajectory completion time\n\
00059 duration time_to_completion\n\
00060 \n\
00061 "; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00068 {
00069 ros::serialization::OStream stream(write_ptr, 1000000000);
00070 ros::serialization::serialize(stream, state);
00071 ros::serialization::serialize(stream, time_to_completion);
00072 return stream.getData();
00073 }
00074
00075 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00076 {
00077 ros::serialization::IStream stream(read_ptr, 1000000000);
00078 ros::serialization::deserialize(stream, state);
00079 ros::serialization::deserialize(stream, time_to_completion);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint32_t serializationLength() const
00084 {
00085 uint32_t size = 0;
00086 size += ros::serialization::serializationLength(state);
00087 size += ros::serialization::serializationLength(time_to_completion);
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::move_arm_msgs::MoveArmFeedback_<std::allocator<void> > MoveArmFeedback;
00095
00096 typedef boost::shared_ptr< ::move_arm_msgs::MoveArmFeedback> MoveArmFeedbackPtr;
00097 typedef boost::shared_ptr< ::move_arm_msgs::MoveArmFeedback const> MoveArmFeedbackConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "321f3feadd0d5c1b7d7135738e673560";
00117 }
00118
00119 static const char* value(const ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0x321f3feadd0d5c1bULL;
00121 static const uint64_t static_value2 = 0x7d7135738e673560ULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "move_arm_msgs/MoveArmFeedback";
00129 }
00130
00131 static const char* value(const ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "# The internal state that the move arm action currently is in\n\
00139 string state\n\
00140 \n\
00141 # Time to completion - this is a combination of requested planning time and trajectory completion time\n\
00142 duration time_to_completion\n\
00143 \n\
00144 ";
00145 }
00146
00147 static const char* value(const ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157
00158 template<class ContainerAllocator> struct Serializer< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> >
00159 {
00160 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161 {
00162 stream.next(m.state);
00163 stream.next(m.time_to_completion);
00164 }
00165
00166 ROS_DECLARE_ALLINONE_SERIALIZER;
00167 };
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace message_operations
00174 {
00175
00176 template<class ContainerAllocator>
00177 struct Printer< ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> >
00178 {
00179 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::move_arm_msgs::MoveArmFeedback_<ContainerAllocator> & v)
00180 {
00181 s << indent << "state: ";
00182 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.state);
00183 s << indent << "time_to_completion: ";
00184 Printer<ros::Duration>::stream(s, indent + " ", v.time_to_completion);
00185 }
00186 };
00187
00188
00189 }
00190 }
00191
00192 #endif // MOVE_ARM_MSGS_MESSAGE_MOVEARMFEEDBACK_H
00193