$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-remote_lab/doc_stacks/2013-03-03_11-54-58.406785/remote_lab/robot_booking/msg/ExperimentResult.msg */ 00002 #ifndef ROBOT_BOOKING_MESSAGE_EXPERIMENTRESULT_H 00003 #define ROBOT_BOOKING_MESSAGE_EXPERIMENTRESULT_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 robot_booking 00019 { 00020 template <class ContainerAllocator> 00021 struct ExperimentResult_ { 00022 typedef ExperimentResult_<ContainerAllocator> Type; 00023 00024 ExperimentResult_() 00025 : result(false) 00026 , grab(0) 00027 , time(0.0) 00028 , best_time(0.0) 00029 { 00030 } 00031 00032 ExperimentResult_(const ContainerAllocator& _alloc) 00033 : result(false) 00034 , grab(0) 00035 , time(0.0) 00036 , best_time(0.0) 00037 { 00038 } 00039 00040 typedef uint8_t _result_type; 00041 uint8_t result; 00042 00043 typedef int8_t _grab_type; 00044 int8_t grab; 00045 00046 typedef float _time_type; 00047 float time; 00048 00049 typedef float _best_time_type; 00050 float best_time; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "robot_booking/ExperimentResult"; } 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 "c426d2d8f166bdda938148c7e967c60a"; } 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 "bool result\n\ 00069 int8 grab\n\ 00070 float32 time\n\ 00071 float32 best_time\n\ 00072 \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, result); 00084 ros::serialization::serialize(stream, grab); 00085 ros::serialization::serialize(stream, time); 00086 ros::serialization::serialize(stream, best_time); 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, result); 00094 ros::serialization::deserialize(stream, grab); 00095 ros::serialization::deserialize(stream, time); 00096 ros::serialization::deserialize(stream, best_time); 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(result); 00104 size += ros::serialization::serializationLength(grab); 00105 size += ros::serialization::serializationLength(time); 00106 size += ros::serialization::serializationLength(best_time); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::robot_booking::ExperimentResult_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::robot_booking::ExperimentResult_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct ExperimentResult 00114 typedef ::robot_booking::ExperimentResult_<std::allocator<void> > ExperimentResult; 00115 00116 typedef boost::shared_ptr< ::robot_booking::ExperimentResult> ExperimentResultPtr; 00117 typedef boost::shared_ptr< ::robot_booking::ExperimentResult const> ExperimentResultConstPtr; 00118 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::robot_booking::ExperimentResult_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::robot_booking::ExperimentResult_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace robot_booking 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::robot_booking::ExperimentResult_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::robot_booking::ExperimentResult_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::robot_booking::ExperimentResult_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "c426d2d8f166bdda938148c7e967c60a"; 00139 } 00140 00141 static const char* value(const ::robot_booking::ExperimentResult_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0xc426d2d8f166bddaULL; 00143 static const uint64_t static_value2 = 0x938148c7e967c60aULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::robot_booking::ExperimentResult_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "robot_booking/ExperimentResult"; 00151 } 00152 00153 static const char* value(const ::robot_booking::ExperimentResult_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::robot_booking::ExperimentResult_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "bool result\n\ 00161 int8 grab\n\ 00162 float32 time\n\ 00163 float32 best_time\n\ 00164 \n\ 00165 \n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::robot_booking::ExperimentResult_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 template<class ContainerAllocator> struct IsFixedSize< ::robot_booking::ExperimentResult_<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< ::robot_booking::ExperimentResult_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.result); 00186 stream.next(m.grab); 00187 stream.next(m.time); 00188 stream.next(m.best_time); 00189 } 00190 00191 ROS_DECLARE_ALLINONE_SERIALIZER; 00192 }; // struct ExperimentResult_ 00193 } // namespace serialization 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace message_operations 00199 { 00200 00201 template<class ContainerAllocator> 00202 struct Printer< ::robot_booking::ExperimentResult_<ContainerAllocator> > 00203 { 00204 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::robot_booking::ExperimentResult_<ContainerAllocator> & v) 00205 { 00206 s << indent << "result: "; 00207 Printer<uint8_t>::stream(s, indent + " ", v.result); 00208 s << indent << "grab: "; 00209 Printer<int8_t>::stream(s, indent + " ", v.grab); 00210 s << indent << "time: "; 00211 Printer<float>::stream(s, indent + " ", v.time); 00212 s << indent << "best_time: "; 00213 Printer<float>::stream(s, indent + " ", v.best_time); 00214 } 00215 }; 00216 00217 00218 } // namespace message_operations 00219 } // namespace ros 00220 00221 #endif // ROBOT_BOOKING_MESSAGE_EXPERIMENTRESULT_H 00222