$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/manipulation/pr2_object_manipulation_msgs/msg/IMGUICommand.msg */ 00002 #ifndef PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMGUICOMMAND_H 00003 #define PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMGUICOMMAND_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_object_manipulation_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct IMGUICommand_ { 00022 typedef IMGUICommand_<ContainerAllocator> Type; 00023 00024 IMGUICommand_() 00025 : command(0) 00026 , script_name() 00027 , script_group_name() 00028 { 00029 } 00030 00031 IMGUICommand_(const ContainerAllocator& _alloc) 00032 : command(0) 00033 , script_name(_alloc) 00034 , script_group_name(_alloc) 00035 { 00036 } 00037 00038 typedef int32_t _command_type; 00039 int32_t command; 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _script_name_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > script_name; 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _script_group_name_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > script_group_name; 00046 00047 enum { PICKUP = 0 }; 00048 enum { PLACE = 1 }; 00049 enum { PLANNED_MOVE = 2 }; 00050 enum { RESET = 3 }; 00051 enum { MOVE_ARM = 4 }; 00052 enum { LOOK_AT_TABLE = 5 }; 00053 enum { MODEL_OBJECT = 6 }; 00054 enum { MOVE_GRIPPER = 7 }; 00055 enum { SCRIPTED_ACTION = 8 }; 00056 enum { STOP_NAV = 9 }; 00057 00058 private: 00059 static const char* __s_getDataType_() { return "pr2_object_manipulation_msgs/IMGUICommand"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "d4a7867f271ce2cd8a5b55564de95925"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "\n\ 00074 int32 PICKUP = 0\n\ 00075 int32 PLACE = 1\n\ 00076 int32 PLANNED_MOVE = 2\n\ 00077 int32 RESET = 3\n\ 00078 int32 MOVE_ARM = 4\n\ 00079 int32 LOOK_AT_TABLE = 5\n\ 00080 int32 MODEL_OBJECT = 6\n\ 00081 int32 MOVE_GRIPPER = 7\n\ 00082 int32 SCRIPTED_ACTION = 8\n\ 00083 int32 STOP_NAV = 9\n\ 00084 \n\ 00085 int32 command\n\ 00086 string script_name\n\ 00087 string script_group_name\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, command); 00099 ros::serialization::serialize(stream, script_name); 00100 ros::serialization::serialize(stream, script_group_name); 00101 return stream.getData(); 00102 } 00103 00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00105 { 00106 ros::serialization::IStream stream(read_ptr, 1000000000); 00107 ros::serialization::deserialize(stream, command); 00108 ros::serialization::deserialize(stream, script_name); 00109 ros::serialization::deserialize(stream, script_group_name); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint32_t serializationLength() const 00114 { 00115 uint32_t size = 0; 00116 size += ros::serialization::serializationLength(command); 00117 size += ros::serialization::serializationLength(script_name); 00118 size += ros::serialization::serializationLength(script_group_name); 00119 return size; 00120 } 00121 00122 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > Ptr; 00123 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> const> ConstPtr; 00124 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00125 }; // struct IMGUICommand 00126 typedef ::pr2_object_manipulation_msgs::IMGUICommand_<std::allocator<void> > IMGUICommand; 00127 00128 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUICommand> IMGUICommandPtr; 00129 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUICommand const> IMGUICommandConstPtr; 00130 00131 00132 template<typename ContainerAllocator> 00133 std::ostream& operator<<(std::ostream& s, const ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> & v) 00134 { 00135 ros::message_operations::Printer< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> >::stream(s, "", v); 00136 return s;} 00137 00138 } // namespace pr2_object_manipulation_msgs 00139 00140 namespace ros 00141 { 00142 namespace message_traits 00143 { 00144 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > : public TrueType {}; 00145 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> const> : public TrueType {}; 00146 template<class ContainerAllocator> 00147 struct MD5Sum< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "d4a7867f271ce2cd8a5b55564de95925"; 00151 } 00152 00153 static const char* value(const ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> &) { return value(); } 00154 static const uint64_t static_value1 = 0xd4a7867f271ce2cdULL; 00155 static const uint64_t static_value2 = 0x8a5b55564de95925ULL; 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct DataType< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "pr2_object_manipulation_msgs/IMGUICommand"; 00163 } 00164 00165 static const char* value(const ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 template<class ContainerAllocator> 00169 struct Definition< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "\n\ 00173 int32 PICKUP = 0\n\ 00174 int32 PLACE = 1\n\ 00175 int32 PLANNED_MOVE = 2\n\ 00176 int32 RESET = 3\n\ 00177 int32 MOVE_ARM = 4\n\ 00178 int32 LOOK_AT_TABLE = 5\n\ 00179 int32 MODEL_OBJECT = 6\n\ 00180 int32 MOVE_GRIPPER = 7\n\ 00181 int32 SCRIPTED_ACTION = 8\n\ 00182 int32 STOP_NAV = 9\n\ 00183 \n\ 00184 int32 command\n\ 00185 string script_name\n\ 00186 string script_group_name\n\ 00187 \n\ 00188 "; 00189 } 00190 00191 static const char* value(const ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> &) { return value(); } 00192 }; 00193 00194 } // namespace message_traits 00195 } // namespace ros 00196 00197 namespace ros 00198 { 00199 namespace serialization 00200 { 00201 00202 template<class ContainerAllocator> struct Serializer< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > 00203 { 00204 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00205 { 00206 stream.next(m.command); 00207 stream.next(m.script_name); 00208 stream.next(m.script_group_name); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct IMGUICommand_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace message_operations 00219 { 00220 00221 template<class ContainerAllocator> 00222 struct Printer< ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> > 00223 { 00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_object_manipulation_msgs::IMGUICommand_<ContainerAllocator> & v) 00225 { 00226 s << indent << "command: "; 00227 Printer<int32_t>::stream(s, indent + " ", v.command); 00228 s << indent << "script_name: "; 00229 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.script_name); 00230 s << indent << "script_group_name: "; 00231 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.script_group_name); 00232 } 00233 }; 00234 00235 00236 } // namespace message_operations 00237 } // namespace ros 00238 00239 #endif // PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMGUICOMMAND_H 00240