00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABGOAL_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABGOAL_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/PR2GripperGrabCommand.h"
00014
00015 namespace pr2_gripper_sensor_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PR2GripperGrabGoal_ : public ros::Message
00019 {
00020 typedef PR2GripperGrabGoal_<ContainerAllocator> Type;
00021
00022 PR2GripperGrabGoal_()
00023 : command()
00024 {
00025 }
00026
00027 PR2GripperGrabGoal_(const ContainerAllocator& _alloc)
00028 : command(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabCommand_<ContainerAllocator> _command_type;
00033 ::pr2_gripper_sensor_msgs::PR2GripperGrabCommand_<ContainerAllocator> command;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperGrabGoal"; }
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 "4dec90ce1cb7519ca39577ac65441112"; }
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 #goal\n\
00053 PR2GripperGrabCommand command\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: pr2_gripper_sensor_msgs/PR2GripperGrabCommand\n\
00057 # The gain to use to evaluate how hard an object should be\n\
00058 # grasped after it is contacted. This is based on hardness\n\
00059 # estimation as outlined in TRO paper (see wiki).\n\
00060 # \n\
00061 # Try 0.03\n\
00062 #\n\
00063 # Units (N/(m/s^2))\n\
00064 float64 hardness_gain\n\
00065 \n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, command);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00080 {
00081 ros::serialization::IStream stream(read_ptr, 1000000000);
00082 ros::serialization::deserialize(stream, command);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 size += ros::serialization::serializationLength(command);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<std::allocator<void> > PR2GripperGrabGoal;
00097
00098 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal> PR2GripperGrabGoalPtr;
00099 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal const> PR2GripperGrabGoalConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "4dec90ce1cb7519ca39577ac65441112";
00119 }
00120
00121 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x4dec90ce1cb7519cULL;
00123 static const uint64_t static_value2 = 0xa39577ac65441112ULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "pr2_gripper_sensor_msgs/PR2GripperGrabGoal";
00131 }
00132
00133 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00141 #goal\n\
00142 PR2GripperGrabCommand command\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: pr2_gripper_sensor_msgs/PR2GripperGrabCommand\n\
00146 # The gain to use to evaluate how hard an object should be\n\
00147 # grasped after it is contacted. This is based on hardness\n\
00148 # estimation as outlined in TRO paper (see wiki).\n\
00149 # \n\
00150 # Try 0.03\n\
00151 #\n\
00152 # Units (N/(m/s^2))\n\
00153 float64 hardness_gain\n\
00154 \n\
00155 ";
00156 }
00157
00158 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> &) { return value(); }
00159 };
00160
00161 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> > : public TrueType {};
00162 }
00163 }
00164
00165 namespace ros
00166 {
00167 namespace serialization
00168 {
00169
00170 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> >
00171 {
00172 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00173 {
00174 stream.next(m.command);
00175 }
00176
00177 ROS_DECLARE_ALLINONE_SERIALIZER;
00178 };
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace message_operations
00185 {
00186
00187 template<class ContainerAllocator>
00188 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> >
00189 {
00190 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperGrabGoal_<ContainerAllocator> & v)
00191 {
00192 s << indent << "command: ";
00193 s << std::endl;
00194 Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabCommand_<ContainerAllocator> >::stream(s, indent + " ", v.command);
00195 }
00196 };
00197
00198
00199 }
00200 }
00201
00202 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABGOAL_H
00203