Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_REPLANTYPE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_REPLANTYPE_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 nasa_r2_common_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ReplanType_ {
00022 typedef ReplanType_<ContainerAllocator> Type;
00023
00024 ReplanType_()
00025 : type(0)
00026 {
00027 }
00028
00029 ReplanType_(const ContainerAllocator& _alloc)
00030 : type(0)
00031 {
00032 }
00033
00034 typedef uint8_t _type_type;
00035 uint8_t type;
00036
00037 enum { NONE = 0 };
00038 enum { SOFT = 1 };
00039 enum { HARD = 2 };
00040 enum { STOP = 3 };
00041 enum { PAUSE = 4 };
00042 enum { CONTINUE = 5 };
00043
00044 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::nasa_r2_common_msgs::ReplanType_<std::allocator<void> > ReplanType;
00049
00050 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ReplanType> ReplanTypePtr;
00051 typedef boost::shared_ptr< ::nasa_r2_common_msgs::ReplanType const> ReplanTypeConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "98758e5172733aa54a4f24dd99cdd00f";
00073 }
00074
00075 static const char* value(const ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0x98758e5172733aa5ULL;
00077 static const uint64_t static_value2 = 0x4a4f24dd99cdd00fULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "nasa_r2_common_msgs/ReplanType";
00085 }
00086
00087 static const char* value(const ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "uint8 type\n\
00095 \n\
00096 uint8 NONE = 0\n\
00097 uint8 SOFT = 1\n\
00098 uint8 HARD = 2\n\
00099 uint8 STOP = 3\n\
00100 uint8 PAUSE = 4\n\
00101 uint8 CONTINUE = 5\n\
00102 \n\
00103 ";
00104 }
00105
00106 static const char* value(const ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator> struct IsFixedSize< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> > : public TrueType {};
00110 }
00111 }
00112
00113 namespace ros
00114 {
00115 namespace serialization
00116 {
00117
00118 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> >
00119 {
00120 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00121 {
00122 stream.next(m.type);
00123 }
00124
00125 ROS_DECLARE_ALLINONE_SERIALIZER;
00126 };
00127 }
00128 }
00129
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134
00135 template<class ContainerAllocator>
00136 struct Printer< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> >
00137 {
00138 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> & v)
00139 {
00140 s << indent << "type: ";
00141 Printer<uint8_t>::stream(s, indent + " ", v.type);
00142 }
00143 };
00144
00145
00146 }
00147 }
00148
00149 #endif // NASA_R2_COMMON_MSGS_MESSAGE_REPLANTYPE_H
00150