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