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