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