$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_controllers/doc_stacks/2013-03-01_16-45-23.561928/pr2_controllers/pr2_controllers_msgs/msg/Pr2GripperCommandFeedback.msg */ 00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDFEEDBACK_H 00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDFEEDBACK_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 Pr2GripperCommandFeedback_ { 00022 typedef Pr2GripperCommandFeedback_<ContainerAllocator> Type; 00023 00024 Pr2GripperCommandFeedback_() 00025 : position(0.0) 00026 , effort(0.0) 00027 , stalled(false) 00028 , reached_goal(false) 00029 { 00030 } 00031 00032 Pr2GripperCommandFeedback_(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 private: 00054 static const char* __s_getDataType_() { return "pr2_controllers_msgs/Pr2GripperCommandFeedback"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "e4cbff56d3562bcf113da5a5adeef91f"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00069 float64 position # The current gripper gap size (in meters)\n\ 00070 float64 effort # The current effort exerted (in Newtons)\n\ 00071 bool stalled # True iff the gripper is exerting max effort and not moving\n\ 00072 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\ 00073 \n\ 00074 \n\ 00075 "; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00082 { 00083 ros::serialization::OStream stream(write_ptr, 1000000000); 00084 ros::serialization::serialize(stream, position); 00085 ros::serialization::serialize(stream, effort); 00086 ros::serialization::serialize(stream, stalled); 00087 ros::serialization::serialize(stream, reached_goal); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, position); 00095 ros::serialization::deserialize(stream, effort); 00096 ros::serialization::deserialize(stream, stalled); 00097 ros::serialization::deserialize(stream, reached_goal); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint32_t serializationLength() const 00102 { 00103 uint32_t size = 0; 00104 size += ros::serialization::serializationLength(position); 00105 size += ros::serialization::serializationLength(effort); 00106 size += ros::serialization::serializationLength(stalled); 00107 size += ros::serialization::serializationLength(reached_goal); 00108 return size; 00109 } 00110 00111 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > Ptr; 00112 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> const> ConstPtr; 00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00114 }; // struct Pr2GripperCommandFeedback 00115 typedef ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<std::allocator<void> > Pr2GripperCommandFeedback; 00116 00117 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback> Pr2GripperCommandFeedbackPtr; 00118 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback const> Pr2GripperCommandFeedbackConstPtr; 00119 00120 00121 template<typename ContainerAllocator> 00122 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> & v) 00123 { 00124 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> >::stream(s, "", v); 00125 return s;} 00126 00127 } // namespace pr2_controllers_msgs 00128 00129 namespace ros 00130 { 00131 namespace message_traits 00132 { 00133 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > : public TrueType {}; 00134 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> const> : public TrueType {}; 00135 template<class ContainerAllocator> 00136 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "e4cbff56d3562bcf113da5a5adeef91f"; 00140 } 00141 00142 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> &) { return value(); } 00143 static const uint64_t static_value1 = 0xe4cbff56d3562bcfULL; 00144 static const uint64_t static_value2 = 0x113da5a5adeef91fULL; 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "pr2_controllers_msgs/Pr2GripperCommandFeedback"; 00152 } 00153 00154 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> &) { return value(); } 00155 }; 00156 00157 template<class ContainerAllocator> 00158 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00162 float64 position # The current gripper gap size (in meters)\n\ 00163 float64 effort # The current effort exerted (in Newtons)\n\ 00164 bool stalled # True iff the gripper is exerting max effort and not moving\n\ 00165 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\ 00166 \n\ 00167 \n\ 00168 "; 00169 } 00170 00171 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > : public TrueType {}; 00175 } // namespace message_traits 00176 } // namespace ros 00177 00178 namespace ros 00179 { 00180 namespace serialization 00181 { 00182 00183 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > 00184 { 00185 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00186 { 00187 stream.next(m.position); 00188 stream.next(m.effort); 00189 stream.next(m.stalled); 00190 stream.next(m.reached_goal); 00191 } 00192 00193 ROS_DECLARE_ALLINONE_SERIALIZER; 00194 }; // struct Pr2GripperCommandFeedback_ 00195 } // namespace serialization 00196 } // namespace ros 00197 00198 namespace ros 00199 { 00200 namespace message_operations 00201 { 00202 00203 template<class ContainerAllocator> 00204 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > 00205 { 00206 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> & v) 00207 { 00208 s << indent << "position: "; 00209 Printer<double>::stream(s, indent + " ", v.position); 00210 s << indent << "effort: "; 00211 Printer<double>::stream(s, indent + " ", v.effort); 00212 s << indent << "stalled: "; 00213 Printer<uint8_t>::stream(s, indent + " ", v.stalled); 00214 s << indent << "reached_goal: "; 00215 Printer<uint8_t>::stream(s, indent + " ", v.reached_goal); 00216 } 00217 }; 00218 00219 00220 } // namespace message_operations 00221 } // namespace ros 00222 00223 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDFEEDBACK_H 00224