00001
00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDFEEDBACK_H
00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDFEEDBACK_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace pr2_controllers_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct Pr2GripperCommandFeedback_ : public ros::Message
00018 {
00019 typedef Pr2GripperCommandFeedback_<ContainerAllocator> Type;
00020
00021 Pr2GripperCommandFeedback_()
00022 : position(0.0)
00023 , effort(0.0)
00024 , stalled(false)
00025 , reached_goal(false)
00026 {
00027 }
00028
00029 Pr2GripperCommandFeedback_(const ContainerAllocator& _alloc)
00030 : position(0.0)
00031 , effort(0.0)
00032 , stalled(false)
00033 , reached_goal(false)
00034 {
00035 }
00036
00037 typedef double _position_type;
00038 double position;
00039
00040 typedef double _effort_type;
00041 double effort;
00042
00043 typedef uint8_t _stalled_type;
00044 uint8_t stalled;
00045
00046 typedef uint8_t _reached_goal_type;
00047 uint8_t reached_goal;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "pr2_controllers_msgs/Pr2GripperCommandFeedback"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "e4cbff56d3562bcf113da5a5adeef91f"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00066 float64 position # The current gripper gap size (in meters)\n\
00067 float64 effort # The current effort exerted (in Newtons)\n\
00068 bool stalled # True iff the gripper is exerting max effort and not moving\n\
00069 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\
00070 \n\
00071 \n\
00072 "; }
00073 public:
00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00075
00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00079 {
00080 ros::serialization::OStream stream(write_ptr, 1000000000);
00081 ros::serialization::serialize(stream, position);
00082 ros::serialization::serialize(stream, effort);
00083 ros::serialization::serialize(stream, stalled);
00084 ros::serialization::serialize(stream, reached_goal);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00089 {
00090 ros::serialization::IStream stream(read_ptr, 1000000000);
00091 ros::serialization::deserialize(stream, position);
00092 ros::serialization::deserialize(stream, effort);
00093 ros::serialization::deserialize(stream, stalled);
00094 ros::serialization::deserialize(stream, reached_goal);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint32_t serializationLength() const
00099 {
00100 uint32_t size = 0;
00101 size += ros::serialization::serializationLength(position);
00102 size += ros::serialization::serializationLength(effort);
00103 size += ros::serialization::serializationLength(stalled);
00104 size += ros::serialization::serializationLength(reached_goal);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<std::allocator<void> > Pr2GripperCommandFeedback;
00112
00113 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback> Pr2GripperCommandFeedbackPtr;
00114 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandFeedback const> Pr2GripperCommandFeedbackConstPtr;
00115
00116
00117 template<typename ContainerAllocator>
00118 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> & v)
00119 {
00120 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> >::stream(s, "", v);
00121 return s;}
00122
00123 }
00124
00125 namespace ros
00126 {
00127 namespace message_traits
00128 {
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "e4cbff56d3562bcf113da5a5adeef91f";
00134 }
00135
00136 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0xe4cbff56d3562bcfULL;
00138 static const uint64_t static_value2 = 0x113da5a5adeef91fULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "pr2_controllers_msgs/Pr2GripperCommandFeedback";
00146 }
00147
00148 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00156 float64 position # The current gripper gap size (in meters)\n\
00157 float64 effort # The current effort exerted (in Newtons)\n\
00158 bool stalled # True iff the gripper is exerting max effort and not moving\n\
00159 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\
00160 \n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator> struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> > : public TrueType {};
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.position);
00182 stream.next(m.effort);
00183 stream.next(m.stalled);
00184 stream.next(m.reached_goal);
00185 }
00186
00187 ROS_DECLARE_ALLINONE_SERIALIZER;
00188 };
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace message_operations
00195 {
00196
00197 template<class ContainerAllocator>
00198 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> >
00199 {
00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommandFeedback_<ContainerAllocator> & v)
00201 {
00202 s << indent << "position: ";
00203 Printer<double>::stream(s, indent + " ", v.position);
00204 s << indent << "effort: ";
00205 Printer<double>::stream(s, indent + " ", v.effort);
00206 s << indent << "stalled: ";
00207 Printer<uint8_t>::stream(s, indent + " ", v.stalled);
00208 s << indent << "reached_goal: ";
00209 Printer<uint8_t>::stream(s, indent + " ", v.reached_goal);
00210 }
00211 };
00212
00213
00214 }
00215 }
00216
00217 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDFEEDBACK_H
00218