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