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