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