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