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