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