$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/PR2GripperForceServoActionGoal.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOACTIONGOAL_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOACTIONGOAL_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 "std_msgs/Header.h" 00018 #include "actionlib_msgs/GoalID.h" 00019 #include "pr2_gripper_sensor_msgs/PR2GripperForceServoGoal.h" 00020 00021 namespace pr2_gripper_sensor_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct PR2GripperForceServoActionGoal_ { 00025 typedef PR2GripperForceServoActionGoal_<ContainerAllocator> Type; 00026 00027 PR2GripperForceServoActionGoal_() 00028 : header() 00029 , goal_id() 00030 , goal() 00031 { 00032 } 00033 00034 PR2GripperForceServoActionGoal_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , goal_id(_alloc) 00037 , goal(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00042 ::std_msgs::Header_<ContainerAllocator> header; 00043 00044 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type; 00045 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id; 00046 00047 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> _goal_type; 00048 ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> goal; 00049 00050 00051 private: 00052 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperForceServoActionGoal"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00055 00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00057 00058 private: 00059 static const char* __s_getMD5Sum_() { return "6fef46f6d468335bf123ba62175e1dc9"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00067 \n\ 00068 Header header\n\ 00069 actionlib_msgs/GoalID goal_id\n\ 00070 PR2GripperForceServoGoal goal\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: std_msgs/Header\n\ 00074 # Standard metadata for higher-level stamped data types.\n\ 00075 # This is generally used to communicate timestamped data \n\ 00076 # in a particular coordinate frame.\n\ 00077 # \n\ 00078 # sequence ID: consecutively increasing ID \n\ 00079 uint32 seq\n\ 00080 #Two-integer timestamp that is expressed as:\n\ 00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00083 # time-handling sugar is provided by the client library\n\ 00084 time stamp\n\ 00085 #Frame this data is associated with\n\ 00086 # 0: no frame\n\ 00087 # 1: global frame\n\ 00088 string frame_id\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: actionlib_msgs/GoalID\n\ 00092 # The stamp should store the time at which this goal was requested.\n\ 00093 # It is used by an action server when it tries to preempt all\n\ 00094 # goals that were requested before a certain time\n\ 00095 time stamp\n\ 00096 \n\ 00097 # The id provides a way to associate feedback and\n\ 00098 # result message with specific goal requests. The id\n\ 00099 # specified must be unique.\n\ 00100 string id\n\ 00101 \n\ 00102 \n\ 00103 ================================================================================\n\ 00104 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoGoal\n\ 00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00106 # Action to launch the gripper into force servoing mode \n\ 00107 \n\ 00108 #goals\n\ 00109 PR2GripperForceServoCommand command\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoCommand\n\ 00113 # the amount of fingertip force (in Newtons) to apply.\n\ 00114 # NOTE: the joint will squeeze until each finger reaches this level\n\ 00115 # values < 0 (opening force) are ignored\n\ 00116 #\n\ 00117 # 10 N can crack an egg or crush a soda can.\n\ 00118 # 15 N can firmly pick up a can of soup.\n\ 00119 # Experiment on your own.\n\ 00120 #\n\ 00121 float64 fingertip_force\n\ 00122 "; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00129 { 00130 ros::serialization::OStream stream(write_ptr, 1000000000); 00131 ros::serialization::serialize(stream, header); 00132 ros::serialization::serialize(stream, goal_id); 00133 ros::serialization::serialize(stream, goal); 00134 return stream.getData(); 00135 } 00136 00137 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00138 { 00139 ros::serialization::IStream stream(read_ptr, 1000000000); 00140 ros::serialization::deserialize(stream, header); 00141 ros::serialization::deserialize(stream, goal_id); 00142 ros::serialization::deserialize(stream, goal); 00143 return stream.getData(); 00144 } 00145 00146 ROS_DEPRECATED virtual uint32_t serializationLength() const 00147 { 00148 uint32_t size = 0; 00149 size += ros::serialization::serializationLength(header); 00150 size += ros::serialization::serializationLength(goal_id); 00151 size += ros::serialization::serializationLength(goal); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct PR2GripperForceServoActionGoal 00159 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<std::allocator<void> > PR2GripperForceServoActionGoal; 00160 00161 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal> PR2GripperForceServoActionGoalPtr; 00162 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal const> PR2GripperForceServoActionGoalConstPtr; 00163 00164 00165 template<typename ContainerAllocator> 00166 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> & v) 00167 { 00168 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> >::stream(s, "", v); 00169 return s;} 00170 00171 } // namespace pr2_gripper_sensor_msgs 00172 00173 namespace ros 00174 { 00175 namespace message_traits 00176 { 00177 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > : public TrueType {}; 00178 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> const> : public TrueType {}; 00179 template<class ContainerAllocator> 00180 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "6fef46f6d468335bf123ba62175e1dc9"; 00184 } 00185 00186 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> &) { return value(); } 00187 static const uint64_t static_value1 = 0x6fef46f6d468335bULL; 00188 static const uint64_t static_value2 = 0xf123ba62175e1dc9ULL; 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "pr2_gripper_sensor_msgs/PR2GripperForceServoActionGoal"; 00196 } 00197 00198 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00206 \n\ 00207 Header header\n\ 00208 actionlib_msgs/GoalID goal_id\n\ 00209 PR2GripperForceServoGoal goal\n\ 00210 \n\ 00211 ================================================================================\n\ 00212 MSG: std_msgs/Header\n\ 00213 # Standard metadata for higher-level stamped data types.\n\ 00214 # This is generally used to communicate timestamped data \n\ 00215 # in a particular coordinate frame.\n\ 00216 # \n\ 00217 # sequence ID: consecutively increasing ID \n\ 00218 uint32 seq\n\ 00219 #Two-integer timestamp that is expressed as:\n\ 00220 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00221 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00222 # time-handling sugar is provided by the client library\n\ 00223 time stamp\n\ 00224 #Frame this data is associated with\n\ 00225 # 0: no frame\n\ 00226 # 1: global frame\n\ 00227 string frame_id\n\ 00228 \n\ 00229 ================================================================================\n\ 00230 MSG: actionlib_msgs/GoalID\n\ 00231 # The stamp should store the time at which this goal was requested.\n\ 00232 # It is used by an action server when it tries to preempt all\n\ 00233 # goals that were requested before a certain time\n\ 00234 time stamp\n\ 00235 \n\ 00236 # The id provides a way to associate feedback and\n\ 00237 # result message with specific goal requests. The id\n\ 00238 # specified must be unique.\n\ 00239 string id\n\ 00240 \n\ 00241 \n\ 00242 ================================================================================\n\ 00243 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoGoal\n\ 00244 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00245 # Action to launch the gripper into force servoing mode \n\ 00246 \n\ 00247 #goals\n\ 00248 PR2GripperForceServoCommand command\n\ 00249 \n\ 00250 ================================================================================\n\ 00251 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoCommand\n\ 00252 # the amount of fingertip force (in Newtons) to apply.\n\ 00253 # NOTE: the joint will squeeze until each finger reaches this level\n\ 00254 # values < 0 (opening force) are ignored\n\ 00255 #\n\ 00256 # 10 N can crack an egg or crush a soda can.\n\ 00257 # 15 N can firmly pick up a can of soup.\n\ 00258 # Experiment on your own.\n\ 00259 #\n\ 00260 float64 fingertip_force\n\ 00261 "; 00262 } 00263 00264 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> &) { return value(); } 00265 }; 00266 00267 template<class ContainerAllocator> struct HasHeader< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > : public TrueType {}; 00268 template<class ContainerAllocator> struct HasHeader< const ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > : public TrueType {}; 00269 } // namespace message_traits 00270 } // namespace ros 00271 00272 namespace ros 00273 { 00274 namespace serialization 00275 { 00276 00277 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > 00278 { 00279 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00280 { 00281 stream.next(m.header); 00282 stream.next(m.goal_id); 00283 stream.next(m.goal); 00284 } 00285 00286 ROS_DECLARE_ALLINONE_SERIALIZER; 00287 }; // struct PR2GripperForceServoActionGoal_ 00288 } // namespace serialization 00289 } // namespace ros 00290 00291 namespace ros 00292 { 00293 namespace message_operations 00294 { 00295 00296 template<class ContainerAllocator> 00297 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> > 00298 { 00299 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoActionGoal_<ContainerAllocator> & v) 00300 { 00301 s << indent << "header: "; 00302 s << std::endl; 00303 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00304 s << indent << "goal_id: "; 00305 s << std::endl; 00306 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id); 00307 s << indent << "goal: "; 00308 s << std::endl; 00309 Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal); 00310 } 00311 }; 00312 00313 00314 } // namespace message_operations 00315 } // namespace ros 00316 00317 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOACTIONGOAL_H 00318