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