PR2GripperForceServoCommand.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_object_manipulation/doc_stacks/2014-01-03_11-39-44.427894/pr2_object_manipulation/manipulation/pr2_gripper_sensor_msgs/msg/PR2GripperForceServoCommand.msg */
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOCOMMAND_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOCOMMAND_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 PR2GripperForceServoCommand_ {
00022   typedef PR2GripperForceServoCommand_<ContainerAllocator> Type;
00023 
00024   PR2GripperForceServoCommand_()
00025   : fingertip_force(0.0)
00026   {
00027   }
00028 
00029   PR2GripperForceServoCommand_(const ContainerAllocator& _alloc)
00030   : fingertip_force(0.0)
00031   {
00032   }
00033 
00034   typedef double _fingertip_force_type;
00035   double fingertip_force;
00036 
00037 
00038   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> > Ptr;
00039   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator>  const> ConstPtr;
00040   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00041 }; // struct PR2GripperForceServoCommand
00042 typedef  ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<std::allocator<void> > PR2GripperForceServoCommand;
00043 
00044 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand> PR2GripperForceServoCommandPtr;
00045 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand const> PR2GripperForceServoCommandConstPtr;
00046 
00047 
00048 template<typename ContainerAllocator>
00049 std::ostream& operator<<(std::ostream& s, const  ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> & v)
00050 {
00051   ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> >::stream(s, "", v);
00052   return s;}
00053 
00054 } // namespace pr2_gripper_sensor_msgs
00055 
00056 namespace ros
00057 {
00058 namespace message_traits
00059 {
00060 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> > : public TrueType {};
00061 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator>  const> : public TrueType {};
00062 template<class ContainerAllocator>
00063 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> > {
00064   static const char* value() 
00065   {
00066     return "dd4b2a0dfafa27b67d2002841f544379";
00067   }
00068 
00069   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> &) { return value(); } 
00070   static const uint64_t static_value1 = 0xdd4b2a0dfafa27b6ULL;
00071   static const uint64_t static_value2 = 0x7d2002841f544379ULL;
00072 };
00073 
00074 template<class ContainerAllocator>
00075 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> > {
00076   static const char* value() 
00077   {
00078     return "pr2_gripper_sensor_msgs/PR2GripperForceServoCommand";
00079   }
00080 
00081   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> &) { return value(); } 
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "# the amount of fingertip force (in Newtons) to apply.\n\
00089 # NOTE: the joint will squeeze until each finger reaches this level\n\
00090 # values < 0 (opening force) are ignored\n\
00091 #\n\
00092 # 10 N can crack an egg or crush a soda can.\n\
00093 # 15 N can firmly pick up a can of soup.\n\
00094 # Experiment on your own.\n\
00095 #\n\
00096 float64 fingertip_force\n\
00097 ";
00098   }
00099 
00100   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> &) { return value(); } 
00101 };
00102 
00103 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> > : public TrueType {};
00104 } // namespace message_traits
00105 } // namespace ros
00106 
00107 namespace ros
00108 {
00109 namespace serialization
00110 {
00111 
00112 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> >
00113 {
00114   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00115   {
00116     stream.next(m.fingertip_force);
00117   }
00118 
00119   ROS_DECLARE_ALLINONE_SERIALIZER;
00120 }; // struct PR2GripperForceServoCommand_
00121 } // namespace serialization
00122 } // namespace ros
00123 
00124 namespace ros
00125 {
00126 namespace message_operations
00127 {
00128 
00129 template<class ContainerAllocator>
00130 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> >
00131 {
00132   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> & v) 
00133   {
00134     s << indent << "fingertip_force: ";
00135     Printer<double>::stream(s, indent + "  ", v.fingertip_force);
00136   }
00137 };
00138 
00139 
00140 } // namespace message_operations
00141 } // namespace ros
00142 
00143 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOCOMMAND_H
00144 


pr2_gripper_sensor_msgs
Author(s): Joe Romano
autogenerated on Fri Jan 3 2014 11:52:59