00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERRELEASEACTIONGOAL_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERRELEASEACTIONGOAL_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 "std_msgs/Header.h"
00014 #include "actionlib_msgs/GoalID.h"
00015 #include "pr2_gripper_sensor_msgs/PR2GripperReleaseGoal.h"
00016
00017 namespace pr2_gripper_sensor_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct PR2GripperReleaseActionGoal_ : public ros::Message
00021 {
00022 typedef PR2GripperReleaseActionGoal_<ContainerAllocator> Type;
00023
00024 PR2GripperReleaseActionGoal_()
00025 : header()
00026 , goal_id()
00027 , goal()
00028 {
00029 }
00030
00031 PR2GripperReleaseActionGoal_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , goal_id(_alloc)
00034 , goal(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00042 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00043
00044 typedef ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> _goal_type;
00045 ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> goal;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperReleaseActionGoal"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "e5f06f3717f8990527330a2e0eaa0c81"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00064 \n\
00065 Header header\n\
00066 actionlib_msgs/GoalID goal_id\n\
00067 PR2GripperReleaseGoal goal\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: std_msgs/Header\n\
00071 # Standard metadata for higher-level stamped data types.\n\
00072 # This is generally used to communicate timestamped data \n\
00073 # in a particular coordinate frame.\n\
00074 # \n\
00075 # sequence ID: consecutively increasing ID \n\
00076 uint32 seq\n\
00077 #Two-integer timestamp that is expressed as:\n\
00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00080 # time-handling sugar is provided by the client library\n\
00081 time stamp\n\
00082 #Frame this data is associated with\n\
00083 # 0: no frame\n\
00084 # 1: global frame\n\
00085 string frame_id\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: actionlib_msgs/GoalID\n\
00089 # The stamp should store the time at which this goal was requested.\n\
00090 # It is used by an action server when it tries to preempt all\n\
00091 # goals that were requested before a certain time\n\
00092 time stamp\n\
00093 \n\
00094 # The id provides a way to associate feedback and\n\
00095 # result message with specific goal requests. The id\n\
00096 # specified must be unique.\n\
00097 string id\n\
00098 \n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: pr2_gripper_sensor_msgs/PR2GripperReleaseGoal\n\
00102 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00103 #goal\n\
00104 PR2GripperReleaseCommand command\n\
00105 \n\
00106 ================================================================================\n\
00107 MSG: pr2_gripper_sensor_msgs/PR2GripperReleaseCommand\n\
00108 # the event conditions we would like to trigger the robot to release on\n\
00109 PR2GripperEventDetectorCommand event\n\
00110 ================================================================================\n\
00111 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorCommand\n\
00112 # state variable that defines what events we would like to trigger on\n\
00113 # Leaving this field blank will result in the robot triggering when \n\
00114 # anything touches the sides of the finger or an impact is detected\n\
00115 # with the hand/arm.\n\
00116 int8 trigger_conditions\n\
00117 # definitions for our various trigger_conditions values\n\
00118 # trigger on either acceleration contact or finger sensor side impact\n\
00119 int8 FINGER_SIDE_IMPACT_OR_ACC = 0\n\
00120 # tigger once both slip and acceleration signals occur\n\
00121 int8 SLIP_AND_ACC = 1 \n\
00122 # trigger on either slip, acceleration, or finger sensor side impact\n\
00123 int8 FINGER_SIDE_IMPACT_OR_SLIP_OR_ACC = 2\n\
00124 # trigger only on slip information\n\
00125 int8 SLIP = 3\n\
00126 # trigger only on acceleration contact information\n\
00127 int8 ACC = 4 \n\
00128 \n\
00129 \n\
00130 # the amount of acceleration to trigger on (acceleration vector magnitude)\n\
00131 # Units = m/s^2\n\
00132 # The user needs to be concerned here about not setting the trigger too\n\
00133 # low so that is set off by the robot's own motions.\n\
00134 #\n\
00135 # For large rapid motions, say by a motion planner, 5 m/s^2 is a good level\n\
00136 # For small delicate controlled motions this can be set MUCH lower (try 2.0)\n\
00137 #\n\
00138 # NOTE: When moving the gripper joint (opening/closing the grippr)\n\
00139 # the high gearing of the PR2 gripper causes large acceleration vibrations\n\
00140 # which will cause triggering to occur. This is a known drawback of the PR2.\n\
00141 #\n\
00142 # NOTE: Leaving this value blank will result in a 0 m/s^2 trigger. If you\n\
00143 # are using a trigger_conditions value that returns on acceleration contact\n\
00144 # events then it will immediately exceed your trigger and return\n\
00145 float64 acceleration_trigger_magnitude\n\
00146 \n\
00147 \n\
00148 # the slip detector gain to trigger on (either finger) : try 0.01\n\
00149 # higher values decrease slip sensitivty (to a point)\n\
00150 # lower values increase sensitivity (to a point)\n\
00151 #\n\
00152 # NOTE: Leaving this value blank will result in the most sensitive slip level.\n\
00153 float64 slip_trigger_magnitude\n\
00154 "; }
00155 public:
00156 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00157
00158 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00159
00160 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00161 {
00162 ros::serialization::OStream stream(write_ptr, 1000000000);
00163 ros::serialization::serialize(stream, header);
00164 ros::serialization::serialize(stream, goal_id);
00165 ros::serialization::serialize(stream, goal);
00166 return stream.getData();
00167 }
00168
00169 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00170 {
00171 ros::serialization::IStream stream(read_ptr, 1000000000);
00172 ros::serialization::deserialize(stream, header);
00173 ros::serialization::deserialize(stream, goal_id);
00174 ros::serialization::deserialize(stream, goal);
00175 return stream.getData();
00176 }
00177
00178 ROS_DEPRECATED virtual uint32_t serializationLength() const
00179 {
00180 uint32_t size = 0;
00181 size += ros::serialization::serializationLength(header);
00182 size += ros::serialization::serializationLength(goal_id);
00183 size += ros::serialization::serializationLength(goal);
00184 return size;
00185 }
00186
00187 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> > Ptr;
00188 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> const> ConstPtr;
00189 };
00190 typedef ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<std::allocator<void> > PR2GripperReleaseActionGoal;
00191
00192 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal> PR2GripperReleaseActionGoalPtr;
00193 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal const> PR2GripperReleaseActionGoalConstPtr;
00194
00195
00196 template<typename ContainerAllocator>
00197 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> & v)
00198 {
00199 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> >::stream(s, "", v);
00200 return s;}
00201
00202 }
00203
00204 namespace ros
00205 {
00206 namespace message_traits
00207 {
00208 template<class ContainerAllocator>
00209 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "e5f06f3717f8990527330a2e0eaa0c81";
00213 }
00214
00215 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> &) { return value(); }
00216 static const uint64_t static_value1 = 0xe5f06f3717f89905ULL;
00217 static const uint64_t static_value2 = 0x27330a2e0eaa0c81ULL;
00218 };
00219
00220 template<class ContainerAllocator>
00221 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> > {
00222 static const char* value()
00223 {
00224 return "pr2_gripper_sensor_msgs/PR2GripperReleaseActionGoal";
00225 }
00226
00227 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> &) { return value(); }
00228 };
00229
00230 template<class ContainerAllocator>
00231 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> > {
00232 static const char* value()
00233 {
00234 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00235 \n\
00236 Header header\n\
00237 actionlib_msgs/GoalID goal_id\n\
00238 PR2GripperReleaseGoal goal\n\
00239 \n\
00240 ================================================================================\n\
00241 MSG: std_msgs/Header\n\
00242 # Standard metadata for higher-level stamped data types.\n\
00243 # This is generally used to communicate timestamped data \n\
00244 # in a particular coordinate frame.\n\
00245 # \n\
00246 # sequence ID: consecutively increasing ID \n\
00247 uint32 seq\n\
00248 #Two-integer timestamp that is expressed as:\n\
00249 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00250 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00251 # time-handling sugar is provided by the client library\n\
00252 time stamp\n\
00253 #Frame this data is associated with\n\
00254 # 0: no frame\n\
00255 # 1: global frame\n\
00256 string frame_id\n\
00257 \n\
00258 ================================================================================\n\
00259 MSG: actionlib_msgs/GoalID\n\
00260 # The stamp should store the time at which this goal was requested.\n\
00261 # It is used by an action server when it tries to preempt all\n\
00262 # goals that were requested before a certain time\n\
00263 time stamp\n\
00264 \n\
00265 # The id provides a way to associate feedback and\n\
00266 # result message with specific goal requests. The id\n\
00267 # specified must be unique.\n\
00268 string id\n\
00269 \n\
00270 \n\
00271 ================================================================================\n\
00272 MSG: pr2_gripper_sensor_msgs/PR2GripperReleaseGoal\n\
00273 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00274 #goal\n\
00275 PR2GripperReleaseCommand command\n\
00276 \n\
00277 ================================================================================\n\
00278 MSG: pr2_gripper_sensor_msgs/PR2GripperReleaseCommand\n\
00279 # the event conditions we would like to trigger the robot to release on\n\
00280 PR2GripperEventDetectorCommand event\n\
00281 ================================================================================\n\
00282 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorCommand\n\
00283 # state variable that defines what events we would like to trigger on\n\
00284 # Leaving this field blank will result in the robot triggering when \n\
00285 # anything touches the sides of the finger or an impact is detected\n\
00286 # with the hand/arm.\n\
00287 int8 trigger_conditions\n\
00288 # definitions for our various trigger_conditions values\n\
00289 # trigger on either acceleration contact or finger sensor side impact\n\
00290 int8 FINGER_SIDE_IMPACT_OR_ACC = 0\n\
00291 # tigger once both slip and acceleration signals occur\n\
00292 int8 SLIP_AND_ACC = 1 \n\
00293 # trigger on either slip, acceleration, or finger sensor side impact\n\
00294 int8 FINGER_SIDE_IMPACT_OR_SLIP_OR_ACC = 2\n\
00295 # trigger only on slip information\n\
00296 int8 SLIP = 3\n\
00297 # trigger only on acceleration contact information\n\
00298 int8 ACC = 4 \n\
00299 \n\
00300 \n\
00301 # the amount of acceleration to trigger on (acceleration vector magnitude)\n\
00302 # Units = m/s^2\n\
00303 # The user needs to be concerned here about not setting the trigger too\n\
00304 # low so that is set off by the robot's own motions.\n\
00305 #\n\
00306 # For large rapid motions, say by a motion planner, 5 m/s^2 is a good level\n\
00307 # For small delicate controlled motions this can be set MUCH lower (try 2.0)\n\
00308 #\n\
00309 # NOTE: When moving the gripper joint (opening/closing the grippr)\n\
00310 # the high gearing of the PR2 gripper causes large acceleration vibrations\n\
00311 # which will cause triggering to occur. This is a known drawback of the PR2.\n\
00312 #\n\
00313 # NOTE: Leaving this value blank will result in a 0 m/s^2 trigger. If you\n\
00314 # are using a trigger_conditions value that returns on acceleration contact\n\
00315 # events then it will immediately exceed your trigger and return\n\
00316 float64 acceleration_trigger_magnitude\n\
00317 \n\
00318 \n\
00319 # the slip detector gain to trigger on (either finger) : try 0.01\n\
00320 # higher values decrease slip sensitivty (to a point)\n\
00321 # lower values increase sensitivity (to a point)\n\
00322 #\n\
00323 # NOTE: Leaving this value blank will result in the most sensitive slip level.\n\
00324 float64 slip_trigger_magnitude\n\
00325 ";
00326 }
00327
00328 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> &) { return value(); }
00329 };
00330
00331 template<class ContainerAllocator> struct HasHeader< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> > : public TrueType {};
00332 template<class ContainerAllocator> struct HasHeader< const ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> > : public TrueType {};
00333 }
00334 }
00335
00336 namespace ros
00337 {
00338 namespace serialization
00339 {
00340
00341 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> >
00342 {
00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00344 {
00345 stream.next(m.header);
00346 stream.next(m.goal_id);
00347 stream.next(m.goal);
00348 }
00349
00350 ROS_DECLARE_ALLINONE_SERIALIZER;
00351 };
00352 }
00353 }
00354
00355 namespace ros
00356 {
00357 namespace message_operations
00358 {
00359
00360 template<class ContainerAllocator>
00361 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> >
00362 {
00363 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperReleaseActionGoal_<ContainerAllocator> & v)
00364 {
00365 s << indent << "header: ";
00366 s << std::endl;
00367 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00368 s << indent << "goal_id: ";
00369 s << std::endl;
00370 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00371 s << indent << "goal: ";
00372 s << std::endl;
00373 Printer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00374 }
00375 };
00376
00377
00378 }
00379 }
00380
00381 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERRELEASEACTIONGOAL_H
00382