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