$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_gripper_sensor_msgs/msg/PR2GripperGrabFeedback.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABFEEDBACK_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABFEEDBACK_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 #include "pr2_gripper_sensor_msgs/PR2GripperGrabData.h" 00018 00019 namespace pr2_gripper_sensor_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct PR2GripperGrabFeedback_ { 00023 typedef PR2GripperGrabFeedback_<ContainerAllocator> Type; 00024 00025 PR2GripperGrabFeedback_() 00026 : data() 00027 { 00028 } 00029 00030 PR2GripperGrabFeedback_(const ContainerAllocator& _alloc) 00031 : data(_alloc) 00032 { 00033 } 00034 00035 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> _data_type; 00036 ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> data; 00037 00038 00039 private: 00040 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperGrabFeedback"; } 00041 public: 00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00043 00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00045 00046 private: 00047 static const char* __s_getMD5Sum_() { return "b4b68d48ac7d07bdb11b7f3badfa9266"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00050 00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00052 00053 private: 00054 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00055 \n\ 00056 #feedback\n\ 00057 PR2GripperGrabData data\n\ 00058 \n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: pr2_gripper_sensor_msgs/PR2GripperGrabData\n\ 00062 # the control state of our realtime controller\n\ 00063 PR2GripperSensorRTState rtstate\n\ 00064 ================================================================================\n\ 00065 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\ 00066 # the control state of our realtime controller\n\ 00067 int8 realtime_controller_state\n\ 00068 \n\ 00069 # predefined values to indicate our realtime_controller_state\n\ 00070 int8 DISABLED = 0\n\ 00071 int8 POSITION_SERVO = 3\n\ 00072 int8 FORCE_SERVO = 4\n\ 00073 int8 FIND_CONTACT = 5\n\ 00074 int8 SLIP_SERVO = 6\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, data); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00089 { 00090 ros::serialization::IStream stream(read_ptr, 1000000000); 00091 ros::serialization::deserialize(stream, data); 00092 return stream.getData(); 00093 } 00094 00095 ROS_DEPRECATED virtual uint32_t serializationLength() const 00096 { 00097 uint32_t size = 0; 00098 size += ros::serialization::serializationLength(data); 00099 return size; 00100 } 00101 00102 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > Ptr; 00103 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> const> ConstPtr; 00104 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00105 }; // struct PR2GripperGrabFeedback 00106 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<std::allocator<void> > PR2GripperGrabFeedback; 00107 00108 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback> PR2GripperGrabFeedbackPtr; 00109 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback const> PR2GripperGrabFeedbackConstPtr; 00110 00111 00112 template<typename ContainerAllocator> 00113 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> & v) 00114 { 00115 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> >::stream(s, "", v); 00116 return s;} 00117 00118 } // namespace pr2_gripper_sensor_msgs 00119 00120 namespace ros 00121 { 00122 namespace message_traits 00123 { 00124 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > : public TrueType {}; 00125 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> const> : public TrueType {}; 00126 template<class ContainerAllocator> 00127 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "b4b68d48ac7d07bdb11b7f3badfa9266"; 00131 } 00132 00133 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> &) { return value(); } 00134 static const uint64_t static_value1 = 0xb4b68d48ac7d07bdULL; 00135 static const uint64_t static_value2 = 0xb11b7f3badfa9266ULL; 00136 }; 00137 00138 template<class ContainerAllocator> 00139 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "pr2_gripper_sensor_msgs/PR2GripperGrabFeedback"; 00143 } 00144 00145 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> &) { return value(); } 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00153 \n\ 00154 #feedback\n\ 00155 PR2GripperGrabData data\n\ 00156 \n\ 00157 \n\ 00158 ================================================================================\n\ 00159 MSG: pr2_gripper_sensor_msgs/PR2GripperGrabData\n\ 00160 # the control state of our realtime controller\n\ 00161 PR2GripperSensorRTState rtstate\n\ 00162 ================================================================================\n\ 00163 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\ 00164 # the control state of our realtime controller\n\ 00165 int8 realtime_controller_state\n\ 00166 \n\ 00167 # predefined values to indicate our realtime_controller_state\n\ 00168 int8 DISABLED = 0\n\ 00169 int8 POSITION_SERVO = 3\n\ 00170 int8 FORCE_SERVO = 4\n\ 00171 int8 FIND_CONTACT = 5\n\ 00172 int8 SLIP_SERVO = 6\n\ 00173 "; 00174 } 00175 00176 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > : public TrueType {}; 00180 } // namespace message_traits 00181 } // namespace ros 00182 00183 namespace ros 00184 { 00185 namespace serialization 00186 { 00187 00188 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > 00189 { 00190 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00191 { 00192 stream.next(m.data); 00193 } 00194 00195 ROS_DECLARE_ALLINONE_SERIALIZER; 00196 }; // struct PR2GripperGrabFeedback_ 00197 } // namespace serialization 00198 } // namespace ros 00199 00200 namespace ros 00201 { 00202 namespace message_operations 00203 { 00204 00205 template<class ContainerAllocator> 00206 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> > 00207 { 00208 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperGrabFeedback_<ContainerAllocator> & v) 00209 { 00210 s << indent << "data: "; 00211 s << std::endl; 00212 Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> >::stream(s, indent + " ", v.data); 00213 } 00214 }; 00215 00216 00217 } // namespace message_operations 00218 } // namespace ros 00219 00220 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABFEEDBACK_H 00221