00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_PICKUPFEEDBACK_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_PICKUPFEEDBACK_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 object_manipulation_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct PickupFeedback_ : public ros::Message
00018 {
00019 typedef PickupFeedback_<ContainerAllocator> Type;
00020
00021 PickupFeedback_()
00022 : current_grasp(0)
00023 , total_grasps(0)
00024 {
00025 }
00026
00027 PickupFeedback_(const ContainerAllocator& _alloc)
00028 : current_grasp(0)
00029 , total_grasps(0)
00030 {
00031 }
00032
00033 typedef int32_t _current_grasp_type;
00034 int32_t current_grasp;
00035
00036 typedef int32_t _total_grasps_type;
00037 int32_t total_grasps;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "object_manipulation_msgs/PickupFeedback"; }
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 "864c83eb233aaa8fcbe0d88caed02501"; }
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 number of the grasp currently being attempted\n\
00056 int32 current_grasp\n\
00057 \n\
00058 # The total number of grasps that will be attempted\n\
00059 int32 total_grasps\n\
00060 \n\
00061 \n\
00062 \n\
00063 "; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00070 {
00071 ros::serialization::OStream stream(write_ptr, 1000000000);
00072 ros::serialization::serialize(stream, current_grasp);
00073 ros::serialization::serialize(stream, total_grasps);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00078 {
00079 ros::serialization::IStream stream(read_ptr, 1000000000);
00080 ros::serialization::deserialize(stream, current_grasp);
00081 ros::serialization::deserialize(stream, total_grasps);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint32_t serializationLength() const
00086 {
00087 uint32_t size = 0;
00088 size += ros::serialization::serializationLength(current_grasp);
00089 size += ros::serialization::serializationLength(total_grasps);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::object_manipulation_msgs::PickupFeedback_<std::allocator<void> > PickupFeedback;
00097
00098 typedef boost::shared_ptr< ::object_manipulation_msgs::PickupFeedback> PickupFeedbackPtr;
00099 typedef boost::shared_ptr< ::object_manipulation_msgs::PickupFeedback const> PickupFeedbackConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::object_manipulation_msgs::PickupFeedback_<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< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "864c83eb233aaa8fcbe0d88caed02501";
00119 }
00120
00121 static const char* value(const ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x864c83eb233aaa8fULL;
00123 static const uint64_t static_value2 = 0xcbe0d88caed02501ULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "object_manipulation_msgs/PickupFeedback";
00131 }
00132
00133 static const char* value(const ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# The number of the grasp currently being attempted\n\
00141 int32 current_grasp\n\
00142 \n\
00143 # The total number of grasps that will be attempted\n\
00144 int32 total_grasps\n\
00145 \n\
00146 \n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> > : public TrueType {};
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162
00163 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> >
00164 {
00165 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166 {
00167 stream.next(m.current_grasp);
00168 stream.next(m.total_grasps);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::PickupFeedback_<ContainerAllocator> & v)
00185 {
00186 s << indent << "current_grasp: ";
00187 Printer<int32_t>::stream(s, indent + " ", v.current_grasp);
00188 s << indent << "total_grasps: ";
00189 Printer<int32_t>::stream(s, indent + " ", v.total_grasps);
00190 }
00191 };
00192
00193
00194 }
00195 }
00196
00197 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_PICKUPFEEDBACK_H
00198