$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/PR2GripperForceServoGoal.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOGOAL_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOGOAL_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/PR2GripperForceServoCommand.h" 00018 00019 namespace pr2_gripper_sensor_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct PR2GripperForceServoGoal_ { 00023 typedef PR2GripperForceServoGoal_<ContainerAllocator> Type; 00024 00025 PR2GripperForceServoGoal_() 00026 : command() 00027 { 00028 } 00029 00030 PR2GripperForceServoGoal_(const ContainerAllocator& _alloc) 00031 : command(_alloc) 00032 { 00033 } 00034 00035 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> _command_type; 00036 ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> command; 00037 00038 00039 private: 00040 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperForceServoGoal"; } 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 "72dfec6461d0f26a4433260fc791bc48"; } 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 # Action to launch the gripper into force servoing mode \n\ 00056 \n\ 00057 #goals\n\ 00058 PR2GripperForceServoCommand command\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoCommand\n\ 00062 # the amount of fingertip force (in Newtons) to apply.\n\ 00063 # NOTE: the joint will squeeze until each finger reaches this level\n\ 00064 # values < 0 (opening force) are ignored\n\ 00065 #\n\ 00066 # 10 N can crack an egg or crush a soda can.\n\ 00067 # 15 N can firmly pick up a can of soup.\n\ 00068 # Experiment on your own.\n\ 00069 #\n\ 00070 float64 fingertip_force\n\ 00071 "; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00078 { 00079 ros::serialization::OStream stream(write_ptr, 1000000000); 00080 ros::serialization::serialize(stream, command); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, command); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(command); 00095 return size; 00096 } 00097 00098 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > Ptr; 00099 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> const> ConstPtr; 00100 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00101 }; // struct PR2GripperForceServoGoal 00102 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<std::allocator<void> > PR2GripperForceServoGoal; 00103 00104 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal> PR2GripperForceServoGoalPtr; 00105 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal const> PR2GripperForceServoGoalConstPtr; 00106 00107 00108 template<typename ContainerAllocator> 00109 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> & v) 00110 { 00111 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> >::stream(s, "", v); 00112 return s;} 00113 00114 } // namespace pr2_gripper_sensor_msgs 00115 00116 namespace ros 00117 { 00118 namespace message_traits 00119 { 00120 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > : public TrueType {}; 00121 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> const> : public TrueType {}; 00122 template<class ContainerAllocator> 00123 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "72dfec6461d0f26a4433260fc791bc48"; 00127 } 00128 00129 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> &) { return value(); } 00130 static const uint64_t static_value1 = 0x72dfec6461d0f26aULL; 00131 static const uint64_t static_value2 = 0x4433260fc791bc48ULL; 00132 }; 00133 00134 template<class ContainerAllocator> 00135 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "pr2_gripper_sensor_msgs/PR2GripperForceServoGoal"; 00139 } 00140 00141 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00149 # Action to launch the gripper into force servoing mode \n\ 00150 \n\ 00151 #goals\n\ 00152 PR2GripperForceServoCommand command\n\ 00153 \n\ 00154 ================================================================================\n\ 00155 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoCommand\n\ 00156 # the amount of fingertip force (in Newtons) to apply.\n\ 00157 # NOTE: the joint will squeeze until each finger reaches this level\n\ 00158 # values < 0 (opening force) are ignored\n\ 00159 #\n\ 00160 # 10 N can crack an egg or crush a soda can.\n\ 00161 # 15 N can firmly pick up a can of soup.\n\ 00162 # Experiment on your own.\n\ 00163 #\n\ 00164 float64 fingertip_force\n\ 00165 "; 00166 } 00167 00168 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > : public TrueType {}; 00172 } // namespace message_traits 00173 } // namespace ros 00174 00175 namespace ros 00176 { 00177 namespace serialization 00178 { 00179 00180 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > 00181 { 00182 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00183 { 00184 stream.next(m.command); 00185 } 00186 00187 ROS_DECLARE_ALLINONE_SERIALIZER; 00188 }; // struct PR2GripperForceServoGoal_ 00189 } // namespace serialization 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace message_operations 00195 { 00196 00197 template<class ContainerAllocator> 00198 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > 00199 { 00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> & v) 00201 { 00202 s << indent << "command: "; 00203 s << std::endl; 00204 Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> >::stream(s, indent + " ", v.command); 00205 } 00206 }; 00207 00208 00209 } // namespace message_operations 00210 } // namespace ros 00211 00212 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOGOAL_H 00213