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