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