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