$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/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 private: 00054 static const char* __s_getDataType_() { return "pr2_controllers_msgs/Pr2GripperCommandResult"; } 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 "; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00081 { 00082 ros::serialization::OStream stream(write_ptr, 1000000000); 00083 ros::serialization::serialize(stream, position); 00084 ros::serialization::serialize(stream, effort); 00085 ros::serialization::serialize(stream, stalled); 00086 ros::serialization::serialize(stream, reached_goal); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, position); 00094 ros::serialization::deserialize(stream, effort); 00095 ros::serialization::deserialize(stream, stalled); 00096 ros::serialization::deserialize(stream, reached_goal); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint32_t serializationLength() const 00101 { 00102 uint32_t size = 0; 00103 size += ros::serialization::serializationLength(position); 00104 size += ros::serialization::serializationLength(effort); 00105 size += ros::serialization::serializationLength(stalled); 00106 size += ros::serialization::serializationLength(reached_goal); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct Pr2GripperCommandResult 00114 typedef ::pr2_controllers_msgs::Pr2GripperCommandResult_<std::allocator<void> > Pr2GripperCommandResult; 00115 00116 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult> Pr2GripperCommandResultPtr; 00117 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult const> Pr2GripperCommandResultConstPtr; 00118 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace pr2_controllers_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "e4cbff56d3562bcf113da5a5adeef91f"; 00139 } 00140 00141 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0xe4cbff56d3562bcfULL; 00143 static const uint64_t static_value2 = 0x113da5a5adeef91fULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "pr2_controllers_msgs/Pr2GripperCommandResult"; 00151 } 00152 00153 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00161 float64 position # The current gripper gap size (in meters)\n\ 00162 float64 effort # The current effort exerted (in Newtons)\n\ 00163 bool stalled # True iff the gripper is exerting max effort and not moving\n\ 00164 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\ 00165 \n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 template<class ContainerAllocator> struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > : public TrueType {}; 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.position); 00186 stream.next(m.effort); 00187 stream.next(m.stalled); 00188 stream.next(m.reached_goal); 00189 } 00190 00191 ROS_DECLARE_ALLINONE_SERIALIZER; 00192 }; // struct Pr2GripperCommandResult_ 00193 } // namespace serialization 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace message_operations 00199 { 00200 00201 template<class ContainerAllocator> 00202 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > 00203 { 00204 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> & v) 00205 { 00206 s << indent << "position: "; 00207 Printer<double>::stream(s, indent + " ", v.position); 00208 s << indent << "effort: "; 00209 Printer<double>::stream(s, indent + " ", v.effort); 00210 s << indent << "stalled: "; 00211 Printer<uint8_t>::stream(s, indent + " ", v.stalled); 00212 s << indent << "reached_goal: "; 00213 Printer<uint8_t>::stream(s, indent + " ", v.reached_goal); 00214 } 00215 }; 00216 00217 00218 } // namespace message_operations 00219 } // namespace ros 00220 00221 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_H 00222