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