00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTGOAL_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTGOAL_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/PR2GripperFindContactCommand.h"
00014
00015 namespace pr2_gripper_sensor_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PR2GripperFindContactGoal_ : public ros::Message
00019 {
00020 typedef PR2GripperFindContactGoal_<ContainerAllocator> Type;
00021
00022 PR2GripperFindContactGoal_()
00023 : command()
00024 {
00025 }
00026
00027 PR2GripperFindContactGoal_(const ContainerAllocator& _alloc)
00028 : command(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> _command_type;
00033 ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> command;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperFindContactGoal"; }
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 "f0ae570e217e7429eba0f205341933a0"; }
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 # Contact action used to close fingers and find object contacts \n\
00053 # quickly while still stopping fast in real-time to not damage \n\
00054 # objects\n\
00055 \n\
00056 #goal\n\
00057 PR2GripperFindContactCommand command\n\
00058 \n\
00059 ================================================================================\n\
00060 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactCommand\n\
00061 # set true if you want to calibrate the fingertip sensors on the start\n\
00062 # of the find_contact action. While this is not necessary (and\n\
00063 # the default value will not calibrate the sensors) for best \n\
00064 # performance it is recommended that you set this to true each time \n\
00065 # you are calling find_contact and are confident the fingertips are \n\
00066 # not touching anything\n\
00067 # NOTE: SHOULD ONLY BE TRUE WHEN BOTH FINGERS ARE TOUCHING NOTHING\n\
00068 bool zero_fingertip_sensors\n\
00069 \n\
00070 # the finger contact conditions that determine what our goal is\n\
00071 # Leaving this field blank will result in the robot closing until\n\
00072 # contact on BOTH fingers is achieved\n\
00073 int8 contact_conditions\n\
00074 \n\
00075 # predefined values for the above contact_conditions variable\n\
00076 int8 BOTH = 0 # both fingers must make contact\n\
00077 int8 LEFT = 1 # just the left finger \n\
00078 int8 RIGHT = 2 # just the right finger\n\
00079 int8 EITHER = 3 # either finger, we don't care which\n\
00080 \n\
00081 "; }
00082 public:
00083 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00084
00085 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00088 {
00089 ros::serialization::OStream stream(write_ptr, 1000000000);
00090 ros::serialization::serialize(stream, command);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00095 {
00096 ros::serialization::IStream stream(read_ptr, 1000000000);
00097 ros::serialization::deserialize(stream, command);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint32_t serializationLength() const
00102 {
00103 uint32_t size = 0;
00104 size += ros::serialization::serializationLength(command);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<std::allocator<void> > PR2GripperFindContactGoal;
00112
00113 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal> PR2GripperFindContactGoalPtr;
00114 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal const> PR2GripperFindContactGoalConstPtr;
00115
00116
00117 template<typename ContainerAllocator>
00118 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> & v)
00119 {
00120 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> >::stream(s, "", v);
00121 return s;}
00122
00123 }
00124
00125 namespace ros
00126 {
00127 namespace message_traits
00128 {
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "f0ae570e217e7429eba0f205341933a0";
00134 }
00135
00136 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0xf0ae570e217e7429ULL;
00138 static const uint64_t static_value2 = 0xeba0f205341933a0ULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "pr2_gripper_sensor_msgs/PR2GripperFindContactGoal";
00146 }
00147
00148 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00156 # Contact action used to close fingers and find object contacts \n\
00157 # quickly while still stopping fast in real-time to not damage \n\
00158 # objects\n\
00159 \n\
00160 #goal\n\
00161 PR2GripperFindContactCommand command\n\
00162 \n\
00163 ================================================================================\n\
00164 MSG: pr2_gripper_sensor_msgs/PR2GripperFindContactCommand\n\
00165 # set true if you want to calibrate the fingertip sensors on the start\n\
00166 # of the find_contact action. While this is not necessary (and\n\
00167 # the default value will not calibrate the sensors) for best \n\
00168 # performance it is recommended that you set this to true each time \n\
00169 # you are calling find_contact and are confident the fingertips are \n\
00170 # not touching anything\n\
00171 # NOTE: SHOULD ONLY BE TRUE WHEN BOTH FINGERS ARE TOUCHING NOTHING\n\
00172 bool zero_fingertip_sensors\n\
00173 \n\
00174 # the finger contact conditions that determine what our goal is\n\
00175 # Leaving this field blank will result in the robot closing until\n\
00176 # contact on BOTH fingers is achieved\n\
00177 int8 contact_conditions\n\
00178 \n\
00179 # predefined values for the above contact_conditions variable\n\
00180 int8 BOTH = 0 # both fingers must make contact\n\
00181 int8 LEFT = 1 # just the left finger \n\
00182 int8 RIGHT = 2 # just the right finger\n\
00183 int8 EITHER = 3 # either finger, we don't care which\n\
00184 \n\
00185 ";
00186 }
00187
00188 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> &) { return value(); }
00189 };
00190
00191 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> > : public TrueType {};
00192 }
00193 }
00194
00195 namespace ros
00196 {
00197 namespace serialization
00198 {
00199
00200 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> >
00201 {
00202 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00203 {
00204 stream.next(m.command);
00205 }
00206
00207 ROS_DECLARE_ALLINONE_SERIALIZER;
00208 };
00209 }
00210 }
00211
00212 namespace ros
00213 {
00214 namespace message_operations
00215 {
00216
00217 template<class ContainerAllocator>
00218 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> >
00219 {
00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperFindContactGoal_<ContainerAllocator> & v)
00221 {
00222 s << indent << "command: ";
00223 s << std::endl;
00224 Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> >::stream(s, indent + " ", v.command);
00225 }
00226 };
00227
00228
00229 }
00230 }
00231
00232 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTGOAL_H
00233