$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/PR2GripperSlipServoFeedback.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSLIPSERVOFEEDBACK_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSLIPSERVOFEEDBACK_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/PR2GripperSlipServoData.h" 00018 00019 namespace pr2_gripper_sensor_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct PR2GripperSlipServoFeedback_ { 00023 typedef PR2GripperSlipServoFeedback_<ContainerAllocator> Type; 00024 00025 PR2GripperSlipServoFeedback_() 00026 : data() 00027 { 00028 } 00029 00030 PR2GripperSlipServoFeedback_(const ContainerAllocator& _alloc) 00031 : data(_alloc) 00032 { 00033 } 00034 00035 typedef ::pr2_gripper_sensor_msgs::PR2GripperSlipServoData_<ContainerAllocator> _data_type; 00036 ::pr2_gripper_sensor_msgs::PR2GripperSlipServoData_<ContainerAllocator> data; 00037 00038 00039 private: 00040 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperSlipServoFeedback"; } 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 "1b10af616c7e94f609790b12cde04c6d"; } 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 PR2GripperSlipServoData data\n\ 00058 \n\ 00059 ================================================================================\n\ 00060 MSG: pr2_gripper_sensor_msgs/PR2GripperSlipServoData\n\ 00061 # time the data was recorded at\n\ 00062 time stamp\n\ 00063 \n\ 00064 # the amount of deformation from action start (in meters)\n\ 00065 float64 deformation\n\ 00066 \n\ 00067 # the force experinced by the finger Pads (N)\n\ 00068 # NOTE:this ignores data from the edges of the finger pressure\n\ 00069 float64 left_fingertip_pad_force\n\ 00070 float64 right_fingertip_pad_force\n\ 00071 \n\ 00072 # the current virtual parallel joint effort of the gripper (in N)\n\ 00073 float64 joint_effort\n\ 00074 \n\ 00075 # true if the object recently slipped\n\ 00076 bool slip_detected\n\ 00077 \n\ 00078 # true if we are at or exceeding the deformation limit\n\ 00079 # (see wiki page and param server for more info)\n\ 00080 bool deformation_limit_reached\n\ 00081 \n\ 00082 # true if we are at or exceeding our force \n\ 00083 # (see wiki page and param server for more info)\n\ 00084 bool fingertip_force_limit_reached\n\ 00085 \n\ 00086 # true if the controller thinks the gripper is empty\n\ 00087 # (see wiki page for more info)\n\ 00088 bool gripper_empty\n\ 00089 \n\ 00090 # the control state of our realtime controller\n\ 00091 PR2GripperSensorRTState rtstate\n\ 00092 ================================================================================\n\ 00093 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\ 00094 # the control state of our realtime controller\n\ 00095 int8 realtime_controller_state\n\ 00096 \n\ 00097 # predefined values to indicate our realtime_controller_state\n\ 00098 int8 DISABLED = 0\n\ 00099 int8 POSITION_SERVO = 3\n\ 00100 int8 FORCE_SERVO = 4\n\ 00101 int8 FIND_CONTACT = 5\n\ 00102 int8 SLIP_SERVO = 6\n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, data); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, data); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint32_t serializationLength() const 00124 { 00125 uint32_t size = 0; 00126 size += ros::serialization::serializationLength(data); 00127 return size; 00128 } 00129 00130 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > Ptr; 00131 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> const> ConstPtr; 00132 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00133 }; // struct PR2GripperSlipServoFeedback 00134 typedef ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<std::allocator<void> > PR2GripperSlipServoFeedback; 00135 00136 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback> PR2GripperSlipServoFeedbackPtr; 00137 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback const> PR2GripperSlipServoFeedbackConstPtr; 00138 00139 00140 template<typename ContainerAllocator> 00141 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> & v) 00142 { 00143 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> >::stream(s, "", v); 00144 return s;} 00145 00146 } // namespace pr2_gripper_sensor_msgs 00147 00148 namespace ros 00149 { 00150 namespace message_traits 00151 { 00152 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > : public TrueType {}; 00153 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> const> : public TrueType {}; 00154 template<class ContainerAllocator> 00155 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "1b10af616c7e94f609790b12cde04c6d"; 00159 } 00160 00161 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> &) { return value(); } 00162 static const uint64_t static_value1 = 0x1b10af616c7e94f6ULL; 00163 static const uint64_t static_value2 = 0x09790b12cde04c6dULL; 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "pr2_gripper_sensor_msgs/PR2GripperSlipServoFeedback"; 00171 } 00172 00173 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> &) { return value(); } 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00181 \n\ 00182 #feedback\n\ 00183 PR2GripperSlipServoData data\n\ 00184 \n\ 00185 ================================================================================\n\ 00186 MSG: pr2_gripper_sensor_msgs/PR2GripperSlipServoData\n\ 00187 # time the data was recorded at\n\ 00188 time stamp\n\ 00189 \n\ 00190 # the amount of deformation from action start (in meters)\n\ 00191 float64 deformation\n\ 00192 \n\ 00193 # the force experinced by the finger Pads (N)\n\ 00194 # NOTE:this ignores data from the edges of the finger pressure\n\ 00195 float64 left_fingertip_pad_force\n\ 00196 float64 right_fingertip_pad_force\n\ 00197 \n\ 00198 # the current virtual parallel joint effort of the gripper (in N)\n\ 00199 float64 joint_effort\n\ 00200 \n\ 00201 # true if the object recently slipped\n\ 00202 bool slip_detected\n\ 00203 \n\ 00204 # true if we are at or exceeding the deformation limit\n\ 00205 # (see wiki page and param server for more info)\n\ 00206 bool deformation_limit_reached\n\ 00207 \n\ 00208 # true if we are at or exceeding our force \n\ 00209 # (see wiki page and param server for more info)\n\ 00210 bool fingertip_force_limit_reached\n\ 00211 \n\ 00212 # true if the controller thinks the gripper is empty\n\ 00213 # (see wiki page for more info)\n\ 00214 bool gripper_empty\n\ 00215 \n\ 00216 # the control state of our realtime controller\n\ 00217 PR2GripperSensorRTState rtstate\n\ 00218 ================================================================================\n\ 00219 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\ 00220 # the control state of our realtime controller\n\ 00221 int8 realtime_controller_state\n\ 00222 \n\ 00223 # predefined values to indicate our realtime_controller_state\n\ 00224 int8 DISABLED = 0\n\ 00225 int8 POSITION_SERVO = 3\n\ 00226 int8 FORCE_SERVO = 4\n\ 00227 int8 FIND_CONTACT = 5\n\ 00228 int8 SLIP_SERVO = 6\n\ 00229 "; 00230 } 00231 00232 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> &) { return value(); } 00233 }; 00234 00235 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > : public TrueType {}; 00236 } // namespace message_traits 00237 } // namespace ros 00238 00239 namespace ros 00240 { 00241 namespace serialization 00242 { 00243 00244 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > 00245 { 00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00247 { 00248 stream.next(m.data); 00249 } 00250 00251 ROS_DECLARE_ALLINONE_SERIALIZER; 00252 }; // struct PR2GripperSlipServoFeedback_ 00253 } // namespace serialization 00254 } // namespace ros 00255 00256 namespace ros 00257 { 00258 namespace message_operations 00259 { 00260 00261 template<class ContainerAllocator> 00262 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> > 00263 { 00264 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperSlipServoFeedback_<ContainerAllocator> & v) 00265 { 00266 s << indent << "data: "; 00267 s << std::endl; 00268 Printer< ::pr2_gripper_sensor_msgs::PR2GripperSlipServoData_<ContainerAllocator> >::stream(s, indent + " ", v.data); 00269 } 00270 }; 00271 00272 00273 } // namespace message_operations 00274 } // namespace ros 00275 00276 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSLIPSERVOFEEDBACK_H 00277