00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORACTIONGOAL_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORACTIONGOAL_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 "std_msgs/Header.h"
00014 #include "actionlib_msgs/GoalID.h"
00015 #include "pr2_gripper_sensor_msgs/PR2GripperEventDetectorGoal.h"
00016
00017 namespace pr2_gripper_sensor_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct PR2GripperEventDetectorActionGoal_ : public ros::Message
00021 {
00022 typedef PR2GripperEventDetectorActionGoal_<ContainerAllocator> Type;
00023
00024 PR2GripperEventDetectorActionGoal_()
00025 : header()
00026 , goal_id()
00027 , goal()
00028 {
00029 }
00030
00031 PR2GripperEventDetectorActionGoal_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , goal_id(_alloc)
00034 , goal(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00042 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00043
00044 typedef ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorGoal_<ContainerAllocator> _goal_type;
00045 ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorGoal_<ContainerAllocator> goal;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperEventDetectorActionGoal"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "b1b345667b018e9030cc7b6aad5c1455"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00064 \n\
00065 Header header\n\
00066 actionlib_msgs/GoalID goal_id\n\
00067 PR2GripperEventDetectorGoal goal\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: std_msgs/Header\n\
00071 # Standard metadata for higher-level stamped data types.\n\
00072 # This is generally used to communicate timestamped data \n\
00073 # in a particular coordinate frame.\n\
00074 # \n\
00075 # sequence ID: consecutively increasing ID \n\
00076 uint32 seq\n\
00077 #Two-integer timestamp that is expressed as:\n\
00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00080 # time-handling sugar is provided by the client library\n\
00081 time stamp\n\
00082 #Frame this data is associated with\n\
00083 # 0: no frame\n\
00084 # 1: global frame\n\
00085 string frame_id\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: actionlib_msgs/GoalID\n\
00089 # The stamp should store the time at which this goal was requested.\n\
00090 # It is used by an action server when it tries to preempt all\n\
00091 # goals that were requested before a certain time\n\
00092 time stamp\n\
00093 \n\
00094 # The id provides a way to associate feedback and\n\
00095 # result message with specific goal requests. The id\n\
00096 # specified must be unique.\n\
00097 string id\n\
00098 \n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorGoal\n\
00102 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00103 # Event Detector action used to tell detect events happening on the \n\
00104 # palm mounted accelerometer and finger pressure sensors\n\
00105 \n\
00106 #goal\n\
00107 PR2GripperEventDetectorCommand command\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorCommand\n\
00111 # state variable that defines what events we would like to trigger on\n\
00112 # Leaving this field blank will result in the robot triggering when \n\
00113 # anything touches the sides of the finger or an impact is detected\n\
00114 # with the hand/arm.\n\
00115 int8 trigger_conditions\n\
00116 # definitions for our various trigger_conditions values\n\
00117 # trigger on either acceleration contact or finger sensor side impact\n\
00118 int8 FINGER_SIDE_IMPACT_OR_ACC = 0\n\
00119 # tigger once both slip and acceleration signals occur\n\
00120 int8 SLIP_AND_ACC = 1 \n\
00121 # trigger on either slip, acceleration, or finger sensor side impact\n\
00122 int8 FINGER_SIDE_IMPACT_OR_SLIP_OR_ACC = 2\n\
00123 # trigger only on slip information\n\
00124 int8 SLIP = 3\n\
00125 # trigger only on acceleration contact information\n\
00126 int8 ACC = 4 \n\
00127 \n\
00128 \n\
00129 # the amount of acceleration to trigger on (acceleration vector magnitude)\n\
00130 # Units = m/s^2\n\
00131 # The user needs to be concerned here about not setting the trigger too\n\
00132 # low so that is set off by the robot's own motions.\n\
00133 #\n\
00134 # For large rapid motions, say by a motion planner, 5 m/s^2 is a good level\n\
00135 # For small delicate controlled motions this can be set MUCH lower (try 2.0)\n\
00136 #\n\
00137 # NOTE: When moving the gripper joint (opening/closing the grippr)\n\
00138 # the high gearing of the PR2 gripper causes large acceleration vibrations\n\
00139 # which will cause triggering to occur. This is a known drawback of the PR2.\n\
00140 #\n\
00141 # NOTE: Leaving this value blank will result in a 0 m/s^2 trigger. If you\n\
00142 # are using a trigger_conditions value that returns on acceleration contact\n\
00143 # events then it will immediately exceed your trigger and return\n\
00144 float64 acceleration_trigger_magnitude\n\
00145 \n\
00146 \n\
00147 # the slip detector gain to trigger on (either finger) : try 0.01\n\
00148 # higher values decrease slip sensitivty (to a point)\n\
00149 # lower values increase sensitivity (to a point)\n\
00150 #\n\
00151 # NOTE: Leaving this value blank will result in the most sensitive slip level.\n\
00152 float64 slip_trigger_magnitude\n\
00153 "; }
00154 public:
00155 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00156
00157 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00158
00159 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00160 {
00161 ros::serialization::OStream stream(write_ptr, 1000000000);
00162 ros::serialization::serialize(stream, header);
00163 ros::serialization::serialize(stream, goal_id);
00164 ros::serialization::serialize(stream, goal);
00165 return stream.getData();
00166 }
00167
00168 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00169 {
00170 ros::serialization::IStream stream(read_ptr, 1000000000);
00171 ros::serialization::deserialize(stream, header);
00172 ros::serialization::deserialize(stream, goal_id);
00173 ros::serialization::deserialize(stream, goal);
00174 return stream.getData();
00175 }
00176
00177 ROS_DEPRECATED virtual uint32_t serializationLength() const
00178 {
00179 uint32_t size = 0;
00180 size += ros::serialization::serializationLength(header);
00181 size += ros::serialization::serializationLength(goal_id);
00182 size += ros::serialization::serializationLength(goal);
00183 return size;
00184 }
00185
00186 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> > Ptr;
00187 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> const> ConstPtr;
00188 };
00189 typedef ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<std::allocator<void> > PR2GripperEventDetectorActionGoal;
00190
00191 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal> PR2GripperEventDetectorActionGoalPtr;
00192 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal const> PR2GripperEventDetectorActionGoalConstPtr;
00193
00194
00195 template<typename ContainerAllocator>
00196 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> & v)
00197 {
00198 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> >::stream(s, "", v);
00199 return s;}
00200
00201 }
00202
00203 namespace ros
00204 {
00205 namespace message_traits
00206 {
00207 template<class ContainerAllocator>
00208 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "b1b345667b018e9030cc7b6aad5c1455";
00212 }
00213
00214 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> &) { return value(); }
00215 static const uint64_t static_value1 = 0xb1b345667b018e90ULL;
00216 static const uint64_t static_value2 = 0x30cc7b6aad5c1455ULL;
00217 };
00218
00219 template<class ContainerAllocator>
00220 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> > {
00221 static const char* value()
00222 {
00223 return "pr2_gripper_sensor_msgs/PR2GripperEventDetectorActionGoal";
00224 }
00225
00226 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 template<class ContainerAllocator>
00230 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> > {
00231 static const char* value()
00232 {
00233 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00234 \n\
00235 Header header\n\
00236 actionlib_msgs/GoalID goal_id\n\
00237 PR2GripperEventDetectorGoal goal\n\
00238 \n\
00239 ================================================================================\n\
00240 MSG: std_msgs/Header\n\
00241 # Standard metadata for higher-level stamped data types.\n\
00242 # This is generally used to communicate timestamped data \n\
00243 # in a particular coordinate frame.\n\
00244 # \n\
00245 # sequence ID: consecutively increasing ID \n\
00246 uint32 seq\n\
00247 #Two-integer timestamp that is expressed as:\n\
00248 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00249 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00250 # time-handling sugar is provided by the client library\n\
00251 time stamp\n\
00252 #Frame this data is associated with\n\
00253 # 0: no frame\n\
00254 # 1: global frame\n\
00255 string frame_id\n\
00256 \n\
00257 ================================================================================\n\
00258 MSG: actionlib_msgs/GoalID\n\
00259 # The stamp should store the time at which this goal was requested.\n\
00260 # It is used by an action server when it tries to preempt all\n\
00261 # goals that were requested before a certain time\n\
00262 time stamp\n\
00263 \n\
00264 # The id provides a way to associate feedback and\n\
00265 # result message with specific goal requests. The id\n\
00266 # specified must be unique.\n\
00267 string id\n\
00268 \n\
00269 \n\
00270 ================================================================================\n\
00271 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorGoal\n\
00272 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00273 # Event Detector action used to tell detect events happening on the \n\
00274 # palm mounted accelerometer and finger pressure sensors\n\
00275 \n\
00276 #goal\n\
00277 PR2GripperEventDetectorCommand command\n\
00278 \n\
00279 ================================================================================\n\
00280 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorCommand\n\
00281 # state variable that defines what events we would like to trigger on\n\
00282 # Leaving this field blank will result in the robot triggering when \n\
00283 # anything touches the sides of the finger or an impact is detected\n\
00284 # with the hand/arm.\n\
00285 int8 trigger_conditions\n\
00286 # definitions for our various trigger_conditions values\n\
00287 # trigger on either acceleration contact or finger sensor side impact\n\
00288 int8 FINGER_SIDE_IMPACT_OR_ACC = 0\n\
00289 # tigger once both slip and acceleration signals occur\n\
00290 int8 SLIP_AND_ACC = 1 \n\
00291 # trigger on either slip, acceleration, or finger sensor side impact\n\
00292 int8 FINGER_SIDE_IMPACT_OR_SLIP_OR_ACC = 2\n\
00293 # trigger only on slip information\n\
00294 int8 SLIP = 3\n\
00295 # trigger only on acceleration contact information\n\
00296 int8 ACC = 4 \n\
00297 \n\
00298 \n\
00299 # the amount of acceleration to trigger on (acceleration vector magnitude)\n\
00300 # Units = m/s^2\n\
00301 # The user needs to be concerned here about not setting the trigger too\n\
00302 # low so that is set off by the robot's own motions.\n\
00303 #\n\
00304 # For large rapid motions, say by a motion planner, 5 m/s^2 is a good level\n\
00305 # For small delicate controlled motions this can be set MUCH lower (try 2.0)\n\
00306 #\n\
00307 # NOTE: When moving the gripper joint (opening/closing the grippr)\n\
00308 # the high gearing of the PR2 gripper causes large acceleration vibrations\n\
00309 # which will cause triggering to occur. This is a known drawback of the PR2.\n\
00310 #\n\
00311 # NOTE: Leaving this value blank will result in a 0 m/s^2 trigger. If you\n\
00312 # are using a trigger_conditions value that returns on acceleration contact\n\
00313 # events then it will immediately exceed your trigger and return\n\
00314 float64 acceleration_trigger_magnitude\n\
00315 \n\
00316 \n\
00317 # the slip detector gain to trigger on (either finger) : try 0.01\n\
00318 # higher values decrease slip sensitivty (to a point)\n\
00319 # lower values increase sensitivity (to a point)\n\
00320 #\n\
00321 # NOTE: Leaving this value blank will result in the most sensitive slip level.\n\
00322 float64 slip_trigger_magnitude\n\
00323 ";
00324 }
00325
00326 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> &) { return value(); }
00327 };
00328
00329 template<class ContainerAllocator> struct HasHeader< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> > : public TrueType {};
00330 template<class ContainerAllocator> struct HasHeader< const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> > : public TrueType {};
00331 }
00332 }
00333
00334 namespace ros
00335 {
00336 namespace serialization
00337 {
00338
00339 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> >
00340 {
00341 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00342 {
00343 stream.next(m.header);
00344 stream.next(m.goal_id);
00345 stream.next(m.goal);
00346 }
00347
00348 ROS_DECLARE_ALLINONE_SERIALIZER;
00349 };
00350 }
00351 }
00352
00353 namespace ros
00354 {
00355 namespace message_operations
00356 {
00357
00358 template<class ContainerAllocator>
00359 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> >
00360 {
00361 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorActionGoal_<ContainerAllocator> & v)
00362 {
00363 s << indent << "header: ";
00364 s << std::endl;
00365 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00366 s << indent << "goal_id: ";
00367 s << std::endl;
00368 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00369 s << indent << "goal: ";
00370 s << std::endl;
00371 Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00372 }
00373 };
00374
00375
00376 }
00377 }
00378
00379 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORACTIONGOAL_H
00380