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