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