00001
00002 #ifndef ACTIONLIB_MESSAGE_TESTREQUESTRESULT_H
00003 #define ACTIONLIB_MESSAGE_TESTREQUESTRESULT_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 actionlib
00015 {
00016 template <class ContainerAllocator>
00017 struct TestRequestResult_ : public ros::Message
00018 {
00019 typedef TestRequestResult_<ContainerAllocator> Type;
00020
00021 TestRequestResult_()
00022 : the_result(0)
00023 , is_simple_server(false)
00024 {
00025 }
00026
00027 TestRequestResult_(const ContainerAllocator& _alloc)
00028 : the_result(0)
00029 , is_simple_server(false)
00030 {
00031 }
00032
00033 typedef int32_t _the_result_type;
00034 int32_t the_result;
00035
00036 typedef uint8_t _is_simple_server_type;
00037 uint8_t is_simple_server;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "actionlib/TestRequestResult"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "61c2364524499c7c5017e2f3fce7ba06"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00056 int32 the_result\n\
00057 bool is_simple_server\n\
00058 \n\
00059 "; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00066 {
00067 ros::serialization::OStream stream(write_ptr, 1000000000);
00068 ros::serialization::serialize(stream, the_result);
00069 ros::serialization::serialize(stream, is_simple_server);
00070 return stream.getData();
00071 }
00072
00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00074 {
00075 ros::serialization::IStream stream(read_ptr, 1000000000);
00076 ros::serialization::deserialize(stream, the_result);
00077 ros::serialization::deserialize(stream, is_simple_server);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint32_t serializationLength() const
00082 {
00083 uint32_t size = 0;
00084 size += ros::serialization::serializationLength(the_result);
00085 size += ros::serialization::serializationLength(is_simple_server);
00086 return size;
00087 }
00088
00089 typedef boost::shared_ptr< ::actionlib::TestRequestResult_<ContainerAllocator> > Ptr;
00090 typedef boost::shared_ptr< ::actionlib::TestRequestResult_<ContainerAllocator> const> ConstPtr;
00091 };
00092 typedef ::actionlib::TestRequestResult_<std::allocator<void> > TestRequestResult;
00093
00094 typedef boost::shared_ptr< ::actionlib::TestRequestResult> TestRequestResultPtr;
00095 typedef boost::shared_ptr< ::actionlib::TestRequestResult const> TestRequestResultConstPtr;
00096
00097
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const ::actionlib::TestRequestResult_<ContainerAllocator> & v)
00100 {
00101 ros::message_operations::Printer< ::actionlib::TestRequestResult_<ContainerAllocator> >::stream(s, "", v);
00102 return s;}
00103
00104 }
00105
00106 namespace ros
00107 {
00108 namespace message_traits
00109 {
00110 template<class ContainerAllocator>
00111 struct MD5Sum< ::actionlib::TestRequestResult_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "61c2364524499c7c5017e2f3fce7ba06";
00115 }
00116
00117 static const char* value(const ::actionlib::TestRequestResult_<ContainerAllocator> &) { return value(); }
00118 static const uint64_t static_value1 = 0x61c2364524499c7cULL;
00119 static const uint64_t static_value2 = 0x5017e2f3fce7ba06ULL;
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct DataType< ::actionlib::TestRequestResult_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "actionlib/TestRequestResult";
00127 }
00128
00129 static const char* value(const ::actionlib::TestRequestResult_<ContainerAllocator> &) { return value(); }
00130 };
00131
00132 template<class ContainerAllocator>
00133 struct Definition< ::actionlib::TestRequestResult_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00137 int32 the_result\n\
00138 bool is_simple_server\n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::actionlib::TestRequestResult_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator> struct IsFixedSize< ::actionlib::TestRequestResult_<ContainerAllocator> > : public TrueType {};
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::actionlib::TestRequestResult_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.the_result);
00160 stream.next(m.is_simple_server);
00161 }
00162
00163 ROS_DECLARE_ALLINONE_SERIALIZER;
00164 };
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_operations
00171 {
00172
00173 template<class ContainerAllocator>
00174 struct Printer< ::actionlib::TestRequestResult_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib::TestRequestResult_<ContainerAllocator> & v)
00177 {
00178 s << indent << "the_result: ";
00179 Printer<int32_t>::stream(s, indent + " ", v.the_result);
00180 s << indent << "is_simple_server: ";
00181 Printer<uint8_t>::stream(s, indent + " ", v.is_simple_server);
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // ACTIONLIB_MESSAGE_TESTREQUESTRESULT_H
00190