Go to the documentation of this file.00001
00002 #ifndef SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGRESULT_H
00003 #define SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGRESULT_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 srs_assisted_grasping_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ManualGraspingResult_ {
00022 typedef ManualGraspingResult_<ContainerAllocator> Type;
00023
00024 ManualGraspingResult_()
00025 : time_elapsed()
00026 , grasped(false)
00027 , tip1_force(0.0)
00028 , tip2_force(0.0)
00029 , tip3_force(0.0)
00030 {
00031 }
00032
00033 ManualGraspingResult_(const ContainerAllocator& _alloc)
00034 : time_elapsed()
00035 , grasped(false)
00036 , tip1_force(0.0)
00037 , tip2_force(0.0)
00038 , tip3_force(0.0)
00039 {
00040 }
00041
00042 typedef ros::Duration _time_elapsed_type;
00043 ros::Duration time_elapsed;
00044
00045 typedef uint8_t _grasped_type;
00046 uint8_t grasped;
00047
00048 typedef float _tip1_force_type;
00049 float tip1_force;
00050
00051 typedef float _tip2_force_type;
00052 float tip2_force;
00053
00054 typedef float _tip3_force_type;
00055 float tip3_force;
00056
00057
00058 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::srs_assisted_grasping_msgs::ManualGraspingResult_<std::allocator<void> > ManualGraspingResult;
00063
00064 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult> ManualGraspingResultPtr;
00065 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult const> ManualGraspingResultConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> >::stream(s, "", v);
00072 return s;}
00073
00074 }
00075
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "84e0c29ee3715a768f8d896e6b92254b";
00087 }
00088
00089 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0x84e0c29ee3715a76ULL;
00091 static const uint64_t static_value2 = 0x8f8d896e6b92254bULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "srs_assisted_grasping_msgs/ManualGraspingResult";
00099 }
00100
00101 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00109 # result\n\
00110 duration time_elapsed\n\
00111 bool grasped\n\
00112 float32 tip1_force\n\
00113 float32 tip2_force\n\
00114 float32 tip3_force\n\
00115 \n\
00116 ";
00117 }
00118
00119 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator> struct IsFixedSize< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > : public TrueType {};
00123 }
00124 }
00125
00126 namespace ros
00127 {
00128 namespace serialization
00129 {
00130
00131 template<class ContainerAllocator> struct Serializer< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> >
00132 {
00133 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00134 {
00135 stream.next(m.time_elapsed);
00136 stream.next(m.grasped);
00137 stream.next(m.tip1_force);
00138 stream.next(m.tip2_force);
00139 stream.next(m.tip3_force);
00140 }
00141
00142 ROS_DECLARE_ALLINONE_SERIALIZER;
00143 };
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151
00152 template<class ContainerAllocator>
00153 struct Printer< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> >
00154 {
00155 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> & v)
00156 {
00157 s << indent << "time_elapsed: ";
00158 Printer<ros::Duration>::stream(s, indent + " ", v.time_elapsed);
00159 s << indent << "grasped: ";
00160 Printer<uint8_t>::stream(s, indent + " ", v.grasped);
00161 s << indent << "tip1_force: ";
00162 Printer<float>::stream(s, indent + " ", v.tip1_force);
00163 s << indent << "tip2_force: ";
00164 Printer<float>::stream(s, indent + " ", v.tip2_force);
00165 s << indent << "tip3_force: ";
00166 Printer<float>::stream(s, indent + " ", v.tip3_force);
00167 }
00168 };
00169
00170
00171 }
00172 }
00173
00174 #endif // SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGRESULT_H
00175