00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTRESULT_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTRESULT_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/PR2GripperFindContactData.h"
00014
00015 namespace pr2_gripper_sensor_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PR2GripperFindContactResult_ : public ros::Message
00019 {
00020 typedef PR2GripperFindContactResult_<ContainerAllocator> Type;
00021
00022 PR2GripperFindContactResult_()
00023 : data()
00024 {
00025 }
00026
00027 PR2GripperFindContactResult_(const ContainerAllocator& _alloc)
00028 : data(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> _data_type;
00033 ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> data;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperFindContactResult"; }
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 "a1cc8c2fc9268b550e6167f268f97574"; }
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 #results\n\
00053 PR2GripperFindContactData data\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactData\n\
00057 # Time the data was recorded at\n\
00058 time stamp\n\
00059 \n\
00060 # true when our contact conditions have been met\n\
00061 # (see PR2GripperFindContact command)\n\
00062 bool contact_conditions_met\n\
00063 \n\
00064 # the finger contact conditions \n\
00065 # true if the finger experienced a contact event\n\
00066 #\n\
00067 # contact events are defined as contact with the fingerpads\n\
00068 # as either steady-state or high-freq force events\n\
00069 bool left_fingertip_pad_contact\n\
00070 bool right_fingertip_pad_contact\n\
00071 \n\
00072 # the force experinced by the finger Pads (N)\n\
00073 # NOTE:this ignores data from the edges of the finger pressure\n\
00074 float64 left_fingertip_pad_force\n\
00075 float64 right_fingertip_pad_force\n\
00076 \n\
00077 # the current joint position (m)\n\
00078 float64 joint_position\n\
00079 \n\
00080 # the virtual (parallel) joint effort (N)\n\
00081 float64 joint_effort\n\
00082 \n\
00083 # the control state of our realtime controller\n\
00084 PR2GripperSensorRTState rtstate\n\
00085 ================================================================================\n\
00086 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00087 # the control state of our realtime controller\n\
00088 int8 realtime_controller_state\n\
00089 \n\
00090 # predefined values to indicate our realtime_controller_state\n\
00091 int8 DISABLED = 0\n\
00092 int8 POSITION_SERVO = 3\n\
00093 int8 FORCE_SERVO = 4\n\
00094 int8 FIND_CONTACT = 5\n\
00095 int8 SLIP_SERVO = 6\n\
00096 "; }
00097 public:
00098 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00099
00100 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00101
00102 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00103 {
00104 ros::serialization::OStream stream(write_ptr, 1000000000);
00105 ros::serialization::serialize(stream, data);
00106 return stream.getData();
00107 }
00108
00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00110 {
00111 ros::serialization::IStream stream(read_ptr, 1000000000);
00112 ros::serialization::deserialize(stream, data);
00113 return stream.getData();
00114 }
00115
00116 ROS_DEPRECATED virtual uint32_t serializationLength() const
00117 {
00118 uint32_t size = 0;
00119 size += ros::serialization::serializationLength(data);
00120 return size;
00121 }
00122
00123 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > Ptr;
00124 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> const> ConstPtr;
00125 };
00126 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<std::allocator<void> > PR2GripperFindContactResult;
00127
00128 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult> PR2GripperFindContactResultPtr;
00129 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult const> PR2GripperFindContactResultConstPtr;
00130
00131
00132 template<typename ContainerAllocator>
00133 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> & v)
00134 {
00135 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> >::stream(s, "", v);
00136 return s;}
00137
00138 }
00139
00140 namespace ros
00141 {
00142 namespace message_traits
00143 {
00144 template<class ContainerAllocator>
00145 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "a1cc8c2fc9268b550e6167f268f97574";
00149 }
00150
00151 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> &) { return value(); }
00152 static const uint64_t static_value1 = 0xa1cc8c2fc9268b55ULL;
00153 static const uint64_t static_value2 = 0x0e6167f268f97574ULL;
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "pr2_gripper_sensor_msgs/PR2GripperFindContactResult";
00161 }
00162
00163 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00171 #results\n\
00172 PR2GripperFindContactData data\n\
00173 \n\
00174 ================================================================================\n\
00175 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactData\n\
00176 # Time the data was recorded at\n\
00177 time stamp\n\
00178 \n\
00179 # true when our contact conditions have been met\n\
00180 # (see PR2GripperFindContact command)\n\
00181 bool contact_conditions_met\n\
00182 \n\
00183 # the finger contact conditions \n\
00184 # true if the finger experienced a contact event\n\
00185 #\n\
00186 # contact events are defined as contact with the fingerpads\n\
00187 # as either steady-state or high-freq force events\n\
00188 bool left_fingertip_pad_contact\n\
00189 bool right_fingertip_pad_contact\n\
00190 \n\
00191 # the force experinced by the finger Pads (N)\n\
00192 # NOTE:this ignores data from the edges of the finger pressure\n\
00193 float64 left_fingertip_pad_force\n\
00194 float64 right_fingertip_pad_force\n\
00195 \n\
00196 # the current joint position (m)\n\
00197 float64 joint_position\n\
00198 \n\
00199 # the virtual (parallel) joint effort (N)\n\
00200 float64 joint_effort\n\
00201 \n\
00202 # the control state of our realtime controller\n\
00203 PR2GripperSensorRTState rtstate\n\
00204 ================================================================================\n\
00205 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00206 # the control state of our realtime controller\n\
00207 int8 realtime_controller_state\n\
00208 \n\
00209 # predefined values to indicate our realtime_controller_state\n\
00210 int8 DISABLED = 0\n\
00211 int8 POSITION_SERVO = 3\n\
00212 int8 FORCE_SERVO = 4\n\
00213 int8 FIND_CONTACT = 5\n\
00214 int8 SLIP_SERVO = 6\n\
00215 ";
00216 }
00217
00218 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> &) { return value(); }
00219 };
00220
00221 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > : public TrueType {};
00222 }
00223 }
00224
00225 namespace ros
00226 {
00227 namespace serialization
00228 {
00229
00230 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> >
00231 {
00232 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00233 {
00234 stream.next(m.data);
00235 }
00236
00237 ROS_DECLARE_ALLINONE_SERIALIZER;
00238 };
00239 }
00240 }
00241
00242 namespace ros
00243 {
00244 namespace message_operations
00245 {
00246
00247 template<class ContainerAllocator>
00248 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> >
00249 {
00250 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> & v)
00251 {
00252 s << indent << "data: ";
00253 s << std::endl;
00254 Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00255 }
00256 };
00257
00258
00259 }
00260 }
00261
00262 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTRESULT_H
00263