00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTFEEDBACK_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTFEEDBACK_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/PR2GripperFindContactData.h"
00018
00019 namespace pr2_gripper_sensor_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PR2GripperFindContactFeedback_ {
00023 typedef PR2GripperFindContactFeedback_<ContainerAllocator> Type;
00024
00025 PR2GripperFindContactFeedback_()
00026 : data()
00027 {
00028 }
00029
00030 PR2GripperFindContactFeedback_(const ContainerAllocator& _alloc)
00031 : data(_alloc)
00032 {
00033 }
00034
00035 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> _data_type;
00036 ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> data;
00037
00038
00039 private:
00040 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperFindContactFeedback"; }
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 "a1cc8c2fc9268b550e6167f268f97574"; }
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 # feedback\n\
00056 PR2GripperFindContactData data\n\
00057 \n\
00058 \n\
00059 \n\
00060 ================================================================================\n\
00061 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactData\n\
00062 # Time the data was recorded at\n\
00063 time stamp\n\
00064 \n\
00065 # true when our contact conditions have been met\n\
00066 # (see PR2GripperFindContact command)\n\
00067 bool contact_conditions_met\n\
00068 \n\
00069 # the finger contact conditions \n\
00070 # true if the finger experienced a contact event\n\
00071 #\n\
00072 # contact events are defined as contact with the fingerpads\n\
00073 # as either steady-state or high-freq force events\n\
00074 bool left_fingertip_pad_contact\n\
00075 bool right_fingertip_pad_contact\n\
00076 \n\
00077 # the force experinced by the finger Pads (N)\n\
00078 # NOTE:this ignores data from the edges of the finger pressure\n\
00079 float64 left_fingertip_pad_force\n\
00080 float64 right_fingertip_pad_force\n\
00081 \n\
00082 # the current joint position (m)\n\
00083 float64 joint_position\n\
00084 \n\
00085 # the virtual (parallel) joint effort (N)\n\
00086 float64 joint_effort\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::PR2GripperFindContactFeedback_<ContainerAllocator> > Ptr;
00129 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> const> ConstPtr;
00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00131 };
00132 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<std::allocator<void> > PR2GripperFindContactFeedback;
00133
00134 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback> PR2GripperFindContactFeedbackPtr;
00135 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback const> PR2GripperFindContactFeedbackConstPtr;
00136
00137
00138 template<typename ContainerAllocator>
00139 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> & v)
00140 {
00141 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> >::stream(s, "", v);
00142 return s;}
00143
00144 }
00145
00146 namespace ros
00147 {
00148 namespace message_traits
00149 {
00150 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> > : public TrueType {};
00151 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> const> : public TrueType {};
00152 template<class ContainerAllocator>
00153 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "a1cc8c2fc9268b550e6167f268f97574";
00157 }
00158
00159 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> &) { return value(); }
00160 static const uint64_t static_value1 = 0xa1cc8c2fc9268b55ULL;
00161 static const uint64_t static_value2 = 0x0e6167f268f97574ULL;
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "pr2_gripper_sensor_msgs/PR2GripperFindContactFeedback";
00169 }
00170
00171 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00179 # feedback\n\
00180 PR2GripperFindContactData data\n\
00181 \n\
00182 \n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactData\n\
00186 # Time the data was recorded at\n\
00187 time stamp\n\
00188 \n\
00189 # true when our contact conditions have been met\n\
00190 # (see PR2GripperFindContact command)\n\
00191 bool contact_conditions_met\n\
00192 \n\
00193 # the finger contact conditions \n\
00194 # true if the finger experienced a contact event\n\
00195 #\n\
00196 # contact events are defined as contact with the fingerpads\n\
00197 # as either steady-state or high-freq force events\n\
00198 bool left_fingertip_pad_contact\n\
00199 bool right_fingertip_pad_contact\n\
00200 \n\
00201 # the force experinced by the finger Pads (N)\n\
00202 # NOTE:this ignores data from the edges of the finger pressure\n\
00203 float64 left_fingertip_pad_force\n\
00204 float64 right_fingertip_pad_force\n\
00205 \n\
00206 # the current joint position (m)\n\
00207 float64 joint_position\n\
00208 \n\
00209 # the virtual (parallel) joint effort (N)\n\
00210 float64 joint_effort\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::PR2GripperFindContactFeedback_<ContainerAllocator> &) { return value(); }
00229 };
00230
00231 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<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::PR2GripperFindContactFeedback_<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::PR2GripperFindContactFeedback_<ContainerAllocator> >
00259 {
00260 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactFeedback_<ContainerAllocator> & v)
00261 {
00262 s << indent << "data: ";
00263 s << std::endl;
00264 Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00265 }
00266 };
00267
00268
00269 }
00270 }
00271
00272 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTFEEDBACK_H
00273