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