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