$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_assisted_grasping_msgs/msg/ManualGraspingResult.msg */ 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 private: 00059 static const char* __s_getDataType_() { return "srs_assisted_grasping_msgs/ManualGraspingResult"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "84e0c29ee3715a768f8d896e6b92254b"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00074 # result\n\ 00075 duration time_elapsed\n\ 00076 bool grasped\n\ 00077 float32 tip1_force\n\ 00078 float32 tip2_force\n\ 00079 float32 tip3_force\n\ 00080 \n\ 00081 "; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00084 00085 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00088 { 00089 ros::serialization::OStream stream(write_ptr, 1000000000); 00090 ros::serialization::serialize(stream, time_elapsed); 00091 ros::serialization::serialize(stream, grasped); 00092 ros::serialization::serialize(stream, tip1_force); 00093 ros::serialization::serialize(stream, tip2_force); 00094 ros::serialization::serialize(stream, tip3_force); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00099 { 00100 ros::serialization::IStream stream(read_ptr, 1000000000); 00101 ros::serialization::deserialize(stream, time_elapsed); 00102 ros::serialization::deserialize(stream, grasped); 00103 ros::serialization::deserialize(stream, tip1_force); 00104 ros::serialization::deserialize(stream, tip2_force); 00105 ros::serialization::deserialize(stream, tip3_force); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint32_t serializationLength() const 00110 { 00111 uint32_t size = 0; 00112 size += ros::serialization::serializationLength(time_elapsed); 00113 size += ros::serialization::serializationLength(grasped); 00114 size += ros::serialization::serializationLength(tip1_force); 00115 size += ros::serialization::serializationLength(tip2_force); 00116 size += ros::serialization::serializationLength(tip3_force); 00117 return size; 00118 } 00119 00120 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > Ptr; 00121 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> const> ConstPtr; 00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00123 }; // struct ManualGraspingResult 00124 typedef ::srs_assisted_grasping_msgs::ManualGraspingResult_<std::allocator<void> > ManualGraspingResult; 00125 00126 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult> ManualGraspingResultPtr; 00127 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingResult const> ManualGraspingResultConstPtr; 00128 00129 00130 template<typename ContainerAllocator> 00131 std::ostream& operator<<(std::ostream& s, const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> & v) 00132 { 00133 ros::message_operations::Printer< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> >::stream(s, "", v); 00134 return s;} 00135 00136 } // namespace srs_assisted_grasping_msgs 00137 00138 namespace ros 00139 { 00140 namespace message_traits 00141 { 00142 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > : public TrueType {}; 00143 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> const> : public TrueType {}; 00144 template<class ContainerAllocator> 00145 struct MD5Sum< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "84e0c29ee3715a768f8d896e6b92254b"; 00149 } 00150 00151 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> &) { return value(); } 00152 static const uint64_t static_value1 = 0x84e0c29ee3715a76ULL; 00153 static const uint64_t static_value2 = 0x8f8d896e6b92254bULL; 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct DataType< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "srs_assisted_grasping_msgs/ManualGraspingResult"; 00161 } 00162 00163 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct Definition< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00171 # result\n\ 00172 duration time_elapsed\n\ 00173 bool grasped\n\ 00174 float32 tip1_force\n\ 00175 float32 tip2_force\n\ 00176 float32 tip3_force\n\ 00177 \n\ 00178 "; 00179 } 00180 00181 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 template<class ContainerAllocator> struct IsFixedSize< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > : public TrueType {}; 00185 } // namespace message_traits 00186 } // namespace ros 00187 00188 namespace ros 00189 { 00190 namespace serialization 00191 { 00192 00193 template<class ContainerAllocator> struct Serializer< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > 00194 { 00195 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00196 { 00197 stream.next(m.time_elapsed); 00198 stream.next(m.grasped); 00199 stream.next(m.tip1_force); 00200 stream.next(m.tip2_force); 00201 stream.next(m.tip3_force); 00202 } 00203 00204 ROS_DECLARE_ALLINONE_SERIALIZER; 00205 }; // struct ManualGraspingResult_ 00206 } // namespace serialization 00207 } // namespace ros 00208 00209 namespace ros 00210 { 00211 namespace message_operations 00212 { 00213 00214 template<class ContainerAllocator> 00215 struct Printer< ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> > 00216 { 00217 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_assisted_grasping_msgs::ManualGraspingResult_<ContainerAllocator> & v) 00218 { 00219 s << indent << "time_elapsed: "; 00220 Printer<ros::Duration>::stream(s, indent + " ", v.time_elapsed); 00221 s << indent << "grasped: "; 00222 Printer<uint8_t>::stream(s, indent + " ", v.grasped); 00223 s << indent << "tip1_force: "; 00224 Printer<float>::stream(s, indent + " ", v.tip1_force); 00225 s << indent << "tip2_force: "; 00226 Printer<float>::stream(s, indent + " ", v.tip2_force); 00227 s << indent << "tip3_force: "; 00228 Printer<float>::stream(s, indent + " ", v.tip3_force); 00229 } 00230 }; 00231 00232 00233 } // namespace message_operations 00234 } // namespace ros 00235 00236 #endif // SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGRESULT_H 00237