Go to the documentation of this file.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 <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 PR2GripperFindContactResult_ {
00023 typedef PR2GripperFindContactResult_<ContainerAllocator> Type;
00024
00025 PR2GripperFindContactResult_()
00026 : data()
00027 {
00028 }
00029
00030 PR2GripperFindContactResult_(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 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<std::allocator<void> > PR2GripperFindContactResult;
00044
00045 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult> PR2GripperFindContactResultPtr;
00046 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult const> PR2GripperFindContactResultConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "a1cc8c2fc9268b550e6167f268f97574";
00068 }
00069
00070 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0xa1cc8c2fc9268b55ULL;
00072 static const uint64_t static_value2 = 0x0e6167f268f97574ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "pr2_gripper_sensor_msgs/PR2GripperFindContactResult";
00080 }
00081
00082 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00090 #results\n\
00091 PR2GripperFindContactData data\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactData\n\
00095 # Time the data was recorded at\n\
00096 time stamp\n\
00097 \n\
00098 # true when our contact conditions have been met\n\
00099 # (see PR2GripperFindContact command)\n\
00100 bool contact_conditions_met\n\
00101 \n\
00102 # the finger contact conditions \n\
00103 # true if the finger experienced a contact event\n\
00104 #\n\
00105 # contact events are defined as contact with the fingerpads\n\
00106 # as either steady-state or high-freq force events\n\
00107 bool left_fingertip_pad_contact\n\
00108 bool right_fingertip_pad_contact\n\
00109 \n\
00110 # the force experinced by the finger Pads (N)\n\
00111 # NOTE:this ignores data from the edges of the finger pressure\n\
00112 float64 left_fingertip_pad_force\n\
00113 float64 right_fingertip_pad_force\n\
00114 \n\
00115 # the current joint position (m)\n\
00116 float64 joint_position\n\
00117 \n\
00118 # the virtual (parallel) joint effort (N)\n\
00119 float64 joint_effort\n\
00120 \n\
00121 # the control state of our realtime controller\n\
00122 PR2GripperSensorRTState rtstate\n\
00123 ================================================================================\n\
00124 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00125 # the control state of our realtime controller\n\
00126 int8 realtime_controller_state\n\
00127 \n\
00128 # predefined values to indicate our realtime_controller_state\n\
00129 int8 DISABLED = 0\n\
00130 int8 POSITION_SERVO = 3\n\
00131 int8 FORCE_SERVO = 4\n\
00132 int8 FIND_CONTACT = 5\n\
00133 int8 SLIP_SERVO = 6\n\
00134 ";
00135 }
00136
00137 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> > : public TrueType {};
00141 }
00142 }
00143
00144 namespace ros
00145 {
00146 namespace serialization
00147 {
00148
00149 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> >
00150 {
00151 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00152 {
00153 stream.next(m.data);
00154 }
00155
00156 ROS_DECLARE_ALLINONE_SERIALIZER;
00157 };
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace message_operations
00164 {
00165
00166 template<class ContainerAllocator>
00167 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> >
00168 {
00169 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactResult_<ContainerAllocator> & v)
00170 {
00171 s << indent << "data: ";
00172 s << std::endl;
00173 Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00174 }
00175 };
00176
00177
00178 }
00179 }
00180
00181 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTRESULT_H
00182