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