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