00001
00002 #ifndef ACTIONLIB_MESSAGE_TWOINTSGOAL_H
00003 #define ACTIONLIB_MESSAGE_TWOINTSGOAL_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 TwoIntsGoal_ : public ros::Message
00018 {
00019 typedef TwoIntsGoal_<ContainerAllocator> Type;
00020
00021 TwoIntsGoal_()
00022 : a(0)
00023 , b(0)
00024 {
00025 }
00026
00027 TwoIntsGoal_(const ContainerAllocator& _alloc)
00028 : a(0)
00029 , b(0)
00030 {
00031 }
00032
00033 typedef int64_t _a_type;
00034 int64_t a;
00035
00036 typedef int64_t _b_type;
00037 int64_t b;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "actionlib/TwoIntsGoal"; }
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 "36d09b846be0b371c5f190354dd3153e"; }
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 int64 a\n\
00057 int64 b\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, a);
00069 ros::serialization::serialize(stream, b);
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, a);
00077 ros::serialization::deserialize(stream, b);
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(a);
00085 size += ros::serialization::serializationLength(b);
00086 return size;
00087 }
00088
00089 typedef boost::shared_ptr< ::actionlib::TwoIntsGoal_<ContainerAllocator> > Ptr;
00090 typedef boost::shared_ptr< ::actionlib::TwoIntsGoal_<ContainerAllocator> const> ConstPtr;
00091 };
00092 typedef ::actionlib::TwoIntsGoal_<std::allocator<void> > TwoIntsGoal;
00093
00094 typedef boost::shared_ptr< ::actionlib::TwoIntsGoal> TwoIntsGoalPtr;
00095 typedef boost::shared_ptr< ::actionlib::TwoIntsGoal const> TwoIntsGoalConstPtr;
00096
00097
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const ::actionlib::TwoIntsGoal_<ContainerAllocator> & v)
00100 {
00101 ros::message_operations::Printer< ::actionlib::TwoIntsGoal_<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::TwoIntsGoal_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "36d09b846be0b371c5f190354dd3153e";
00115 }
00116
00117 static const char* value(const ::actionlib::TwoIntsGoal_<ContainerAllocator> &) { return value(); }
00118 static const uint64_t static_value1 = 0x36d09b846be0b371ULL;
00119 static const uint64_t static_value2 = 0xc5f190354dd3153eULL;
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct DataType< ::actionlib::TwoIntsGoal_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "actionlib/TwoIntsGoal";
00127 }
00128
00129 static const char* value(const ::actionlib::TwoIntsGoal_<ContainerAllocator> &) { return value(); }
00130 };
00131
00132 template<class ContainerAllocator>
00133 struct Definition< ::actionlib::TwoIntsGoal_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00137 int64 a\n\
00138 int64 b\n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::actionlib::TwoIntsGoal_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator> struct IsFixedSize< ::actionlib::TwoIntsGoal_<ContainerAllocator> > : public TrueType {};
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::actionlib::TwoIntsGoal_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.a);
00160 stream.next(m.b);
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::TwoIntsGoal_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib::TwoIntsGoal_<ContainerAllocator> & v)
00177 {
00178 s << indent << "a: ";
00179 Printer<int64_t>::stream(s, indent + " ", v.a);
00180 s << indent << "b: ";
00181 Printer<int64_t>::stream(s, indent + " ", v.b);
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // ACTIONLIB_MESSAGE_TWOINTSGOAL_H
00190