Pr2GripperCommandResult.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_controllers/doc_stacks/2014-01-03_11-37-53.226877/pr2_controllers/pr2_controllers_msgs/msg/Pr2GripperCommandResult.msg */
00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_H
00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_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_controllers_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Pr2GripperCommandResult_ {
00022   typedef Pr2GripperCommandResult_<ContainerAllocator> Type;
00023 
00024   Pr2GripperCommandResult_()
00025   : position(0.0)
00026   , effort(0.0)
00027   , stalled(false)
00028   , reached_goal(false)
00029   {
00030   }
00031 
00032   Pr2GripperCommandResult_(const ContainerAllocator& _alloc)
00033   : position(0.0)
00034   , effort(0.0)
00035   , stalled(false)
00036   , reached_goal(false)
00037   {
00038   }
00039 
00040   typedef double _position_type;
00041   double position;
00042 
00043   typedef double _effort_type;
00044   double effort;
00045 
00046   typedef uint8_t _stalled_type;
00047   uint8_t stalled;
00048 
00049   typedef uint8_t _reached_goal_type;
00050   uint8_t reached_goal;
00051 
00052 
00053   typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct Pr2GripperCommandResult
00057 typedef  ::pr2_controllers_msgs::Pr2GripperCommandResult_<std::allocator<void> > Pr2GripperCommandResult;
00058 
00059 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult> Pr2GripperCommandResultPtr;
00060 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult const> Pr2GripperCommandResultConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace pr2_controllers_msgs
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "e4cbff56d3562bcf113da5a5adeef91f";
00082   }
00083 
00084   static const char* value(const  ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0xe4cbff56d3562bcfULL;
00086   static const uint64_t static_value2 = 0x113da5a5adeef91fULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "pr2_controllers_msgs/Pr2GripperCommandResult";
00094   }
00095 
00096   static const char* value(const  ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00104 float64 position  # The current gripper gap size (in meters)\n\
00105 float64 effort    # The current effort exerted (in Newtons)\n\
00106 bool stalled      # True iff the gripper is exerting max effort and not moving\n\
00107 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\
00108 \n\
00109 ";
00110   }
00111 
00112   static const char* value(const  ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> &) { return value(); } 
00113 };
00114 
00115 template<class ContainerAllocator> struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > : public TrueType {};
00116 } // namespace message_traits
00117 } // namespace ros
00118 
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123 
00124 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00125 {
00126   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127   {
00128     stream.next(m.position);
00129     stream.next(m.effort);
00130     stream.next(m.stalled);
00131     stream.next(m.reached_goal);
00132   }
00133 
00134   ROS_DECLARE_ALLINONE_SERIALIZER;
00135 }; // struct Pr2GripperCommandResult_
00136 } // namespace serialization
00137 } // namespace ros
00138 
00139 namespace ros
00140 {
00141 namespace message_operations
00142 {
00143 
00144 template<class ContainerAllocator>
00145 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00146 {
00147   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> & v) 
00148   {
00149     s << indent << "position: ";
00150     Printer<double>::stream(s, indent + "  ", v.position);
00151     s << indent << "effort: ";
00152     Printer<double>::stream(s, indent + "  ", v.effort);
00153     s << indent << "stalled: ";
00154     Printer<uint8_t>::stream(s, indent + "  ", v.stalled);
00155     s << indent << "reached_goal: ";
00156     Printer<uint8_t>::stream(s, indent + "  ", v.reached_goal);
00157   }
00158 };
00159 
00160 
00161 } // namespace message_operations
00162 } // namespace ros
00163 
00164 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_H
00165 


pr2_controllers_msgs
Author(s): Stuart Glaser
autogenerated on Fri Jan 3 2014 11:41:03