00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERRELEASEGOAL_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERRELEASEGOAL_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 "pr2_gripper_sensor_msgs/PR2GripperReleaseCommand.h"
00014
00015 namespace pr2_gripper_sensor_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PR2GripperReleaseGoal_ : public ros::Message
00019 {
00020 typedef PR2GripperReleaseGoal_<ContainerAllocator> Type;
00021
00022 PR2GripperReleaseGoal_()
00023 : command()
00024 {
00025 }
00026
00027 PR2GripperReleaseGoal_(const ContainerAllocator& _alloc)
00028 : command(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_gripper_sensor_msgs::PR2GripperReleaseCommand_<ContainerAllocator> _command_type;
00033 ::pr2_gripper_sensor_msgs::PR2GripperReleaseCommand_<ContainerAllocator> command;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperReleaseGoal"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "f92a4c7c03d33b62ef7f6041bec6a43d"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00052 #goal\n\
00053 PR2GripperReleaseCommand command\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: pr2_gripper_sensor_msgs/PR2GripperReleaseCommand\n\
00057 # the event conditions we would like to trigger the robot to release on\n\
00058 PR2GripperEventDetectorCommand event\n\
00059 ================================================================================\n\
00060 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorCommand\n\
00061 # state variable that defines what events we would like to trigger on\n\
00062 # Leaving this field blank will result in the robot triggering when \n\
00063 # anything touches the sides of the finger or an impact is detected\n\
00064 # with the hand/arm.\n\
00065 int8 trigger_conditions\n\
00066 # definitions for our various trigger_conditions values\n\
00067 # trigger on either acceleration contact or finger sensor side impact\n\
00068 int8 FINGER_SIDE_IMPACT_OR_ACC = 0\n\
00069 # tigger once both slip and acceleration signals occur\n\
00070 int8 SLIP_AND_ACC = 1 \n\
00071 # trigger on either slip, acceleration, or finger sensor side impact\n\
00072 int8 FINGER_SIDE_IMPACT_OR_SLIP_OR_ACC = 2\n\
00073 # trigger only on slip information\n\
00074 int8 SLIP = 3\n\
00075 # trigger only on acceleration contact information\n\
00076 int8 ACC = 4 \n\
00077 \n\
00078 \n\
00079 # the amount of acceleration to trigger on (acceleration vector magnitude)\n\
00080 # Units = m/s^2\n\
00081 # The user needs to be concerned here about not setting the trigger too\n\
00082 # low so that is set off by the robot's own motions.\n\
00083 #\n\
00084 # For large rapid motions, say by a motion planner, 5 m/s^2 is a good level\n\
00085 # For small delicate controlled motions this can be set MUCH lower (try 2.0)\n\
00086 #\n\
00087 # NOTE: When moving the gripper joint (opening/closing the grippr)\n\
00088 # the high gearing of the PR2 gripper causes large acceleration vibrations\n\
00089 # which will cause triggering to occur. This is a known drawback of the PR2.\n\
00090 #\n\
00091 # NOTE: Leaving this value blank will result in a 0 m/s^2 trigger. If you\n\
00092 # are using a trigger_conditions value that returns on acceleration contact\n\
00093 # events then it will immediately exceed your trigger and return\n\
00094 float64 acceleration_trigger_magnitude\n\
00095 \n\
00096 \n\
00097 # the slip detector gain to trigger on (either finger) : try 0.01\n\
00098 # higher values decrease slip sensitivty (to a point)\n\
00099 # lower values increase sensitivity (to a point)\n\
00100 #\n\
00101 # NOTE: Leaving this value blank will result in the most sensitive slip level.\n\
00102 float64 slip_trigger_magnitude\n\
00103 "; }
00104 public:
00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00106
00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00108
00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00110 {
00111 ros::serialization::OStream stream(write_ptr, 1000000000);
00112 ros::serialization::serialize(stream, command);
00113 return stream.getData();
00114 }
00115
00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00117 {
00118 ros::serialization::IStream stream(read_ptr, 1000000000);
00119 ros::serialization::deserialize(stream, command);
00120 return stream.getData();
00121 }
00122
00123 ROS_DEPRECATED virtual uint32_t serializationLength() const
00124 {
00125 uint32_t size = 0;
00126 size += ros::serialization::serializationLength(command);
00127 return size;
00128 }
00129
00130 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> > Ptr;
00131 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> const> ConstPtr;
00132 };
00133 typedef ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<std::allocator<void> > PR2GripperReleaseGoal;
00134
00135 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal> PR2GripperReleaseGoalPtr;
00136 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal const> PR2GripperReleaseGoalConstPtr;
00137
00138
00139 template<typename ContainerAllocator>
00140 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> & v)
00141 {
00142 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> >::stream(s, "", v);
00143 return s;}
00144
00145 }
00146
00147 namespace ros
00148 {
00149 namespace message_traits
00150 {
00151 template<class ContainerAllocator>
00152 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "f92a4c7c03d33b62ef7f6041bec6a43d";
00156 }
00157
00158 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> &) { return value(); }
00159 static const uint64_t static_value1 = 0xf92a4c7c03d33b62ULL;
00160 static const uint64_t static_value2 = 0xef7f6041bec6a43dULL;
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "pr2_gripper_sensor_msgs/PR2GripperReleaseGoal";
00168 }
00169
00170 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> &) { return value(); }
00171 };
00172
00173 template<class ContainerAllocator>
00174 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00178 #goal\n\
00179 PR2GripperReleaseCommand command\n\
00180 \n\
00181 ================================================================================\n\
00182 MSG: pr2_gripper_sensor_msgs/PR2GripperReleaseCommand\n\
00183 # the event conditions we would like to trigger the robot to release on\n\
00184 PR2GripperEventDetectorCommand event\n\
00185 ================================================================================\n\
00186 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorCommand\n\
00187 # state variable that defines what events we would like to trigger on\n\
00188 # Leaving this field blank will result in the robot triggering when \n\
00189 # anything touches the sides of the finger or an impact is detected\n\
00190 # with the hand/arm.\n\
00191 int8 trigger_conditions\n\
00192 # definitions for our various trigger_conditions values\n\
00193 # trigger on either acceleration contact or finger sensor side impact\n\
00194 int8 FINGER_SIDE_IMPACT_OR_ACC = 0\n\
00195 # tigger once both slip and acceleration signals occur\n\
00196 int8 SLIP_AND_ACC = 1 \n\
00197 # trigger on either slip, acceleration, or finger sensor side impact\n\
00198 int8 FINGER_SIDE_IMPACT_OR_SLIP_OR_ACC = 2\n\
00199 # trigger only on slip information\n\
00200 int8 SLIP = 3\n\
00201 # trigger only on acceleration contact information\n\
00202 int8 ACC = 4 \n\
00203 \n\
00204 \n\
00205 # the amount of acceleration to trigger on (acceleration vector magnitude)\n\
00206 # Units = m/s^2\n\
00207 # The user needs to be concerned here about not setting the trigger too\n\
00208 # low so that is set off by the robot's own motions.\n\
00209 #\n\
00210 # For large rapid motions, say by a motion planner, 5 m/s^2 is a good level\n\
00211 # For small delicate controlled motions this can be set MUCH lower (try 2.0)\n\
00212 #\n\
00213 # NOTE: When moving the gripper joint (opening/closing the grippr)\n\
00214 # the high gearing of the PR2 gripper causes large acceleration vibrations\n\
00215 # which will cause triggering to occur. This is a known drawback of the PR2.\n\
00216 #\n\
00217 # NOTE: Leaving this value blank will result in a 0 m/s^2 trigger. If you\n\
00218 # are using a trigger_conditions value that returns on acceleration contact\n\
00219 # events then it will immediately exceed your trigger and return\n\
00220 float64 acceleration_trigger_magnitude\n\
00221 \n\
00222 \n\
00223 # the slip detector gain to trigger on (either finger) : try 0.01\n\
00224 # higher values decrease slip sensitivty (to a point)\n\
00225 # lower values increase sensitivity (to a point)\n\
00226 #\n\
00227 # NOTE: Leaving this value blank will result in the most sensitive slip level.\n\
00228 float64 slip_trigger_magnitude\n\
00229 ";
00230 }
00231
00232 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> &) { return value(); }
00233 };
00234
00235 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> > : public TrueType {};
00236 }
00237 }
00238
00239 namespace ros
00240 {
00241 namespace serialization
00242 {
00243
00244 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> >
00245 {
00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00247 {
00248 stream.next(m.command);
00249 }
00250
00251 ROS_DECLARE_ALLINONE_SERIALIZER;
00252 };
00253 }
00254 }
00255
00256 namespace ros
00257 {
00258 namespace message_operations
00259 {
00260
00261 template<class ContainerAllocator>
00262 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> >
00263 {
00264 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperReleaseGoal_<ContainerAllocator> & v)
00265 {
00266 s << indent << "command: ";
00267 s << std::endl;
00268 Printer< ::pr2_gripper_sensor_msgs::PR2GripperReleaseCommand_<ContainerAllocator> >::stream(s, indent + " ", v.command);
00269 }
00270 };
00271
00272
00273 }
00274 }
00275
00276 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERRELEASEGOAL_H
00277