PriorityArray.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-nasa_r2_common/doc_stacks/2014-10-06_02-39-31.575241/nasa_r2_common/nasa_r2_common_msgs/msg/PriorityArray.msg */
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_PRIORITYARRAY_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_PRIORITYARRAY_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 PriorityArray_ {
00022   typedef PriorityArray_<ContainerAllocator> Type;
00023 
00024   PriorityArray_()
00025   : axis_priorities()
00026   {
00027   }
00028 
00029   PriorityArray_(const ContainerAllocator& _alloc)
00030   : axis_priorities(_alloc)
00031   {
00032   }
00033 
00034   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _axis_priorities_type;
00035   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  axis_priorities;
00036 
00037   enum { IGNORE = 0 };
00038   enum { CRITICAL = 1 };
00039   enum { HIGH = 2 };
00040   enum { MEDIUM = 3 };
00041   enum { LOW = 4 };
00042   enum { OPT = 5 };
00043 
00044   typedef boost::shared_ptr< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct PriorityArray
00048 typedef  ::nasa_r2_common_msgs::PriorityArray_<std::allocator<void> > PriorityArray;
00049 
00050 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PriorityArray> PriorityArrayPtr;
00051 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PriorityArray const> PriorityArrayConstPtr;
00052 
00053 
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const  ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> & v)
00056 {
00057   ros::message_operations::Printer< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> >::stream(s, "", v);
00058   return s;}
00059 
00060 } // namespace nasa_r2_common_msgs
00061 
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator>  const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> > {
00070   static const char* value() 
00071   {
00072     return "b680195622dc1787258149093c8d5b54";
00073   }
00074 
00075   static const char* value(const  ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> &) { return value(); } 
00076   static const uint64_t static_value1 = 0xb680195622dc1787ULL;
00077   static const uint64_t static_value2 = 0x258149093c8d5b54ULL;
00078 };
00079 
00080 template<class ContainerAllocator>
00081 struct DataType< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> > {
00082   static const char* value() 
00083   {
00084     return "nasa_r2_common_msgs/PriorityArray";
00085   }
00086 
00087   static const char* value(const  ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> &) { return value(); } 
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct Definition< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "# axis_priorities must be 0, 1, or 6 elements\n\
00095 # empty defaults to high, 1 sets all axes equal priority, 6 sets each axis (x, y, z, r, p, y)\n\
00096 uint8[]  axis_priorities\n\
00097 \n\
00098 uint8 IGNORE          = 0   # Exclude from trajectory\n\
00099 uint8 CRITICAL        = 1   # Most important priority in trajectory\n\
00100 uint8 HIGH            = 2   # Second most important priority in trajectory\n\
00101 uint8 MEDIUM          = 3   # Medium prioirty in trajectory\n\
00102 uint8 LOW             = 4   # Low priority in trajectory\n\
00103 uint8 OPT             = 5   # Optimize trajectory (solve for, but do not iterate to achieve)\n\
00104 \n\
00105 #uint8 IGNORE = 0\n\
00106 #uint8 LOW = 1\n\
00107 #uint8 MEDIUM = 128\n\
00108 #uint8 HIGH = 254\n\
00109 #uint8 CRITICAL = 255\n\
00110 \n\
00111 ";
00112   }
00113 
00114   static const char* value(const  ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> &) { return value(); } 
00115 };
00116 
00117 } // namespace message_traits
00118 } // namespace ros
00119 
00120 namespace ros
00121 {
00122 namespace serialization
00123 {
00124 
00125 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> >
00126 {
00127   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00128   {
00129     stream.next(m.axis_priorities);
00130   }
00131 
00132   ROS_DECLARE_ALLINONE_SERIALIZER;
00133 }; // struct PriorityArray_
00134 } // namespace serialization
00135 } // namespace ros
00136 
00137 namespace ros
00138 {
00139 namespace message_operations
00140 {
00141 
00142 template<class ContainerAllocator>
00143 struct Printer< ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> >
00144 {
00145   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nasa_r2_common_msgs::PriorityArray_<ContainerAllocator> & v) 
00146   {
00147     s << indent << "axis_priorities[]" << std::endl;
00148     for (size_t i = 0; i < v.axis_priorities.size(); ++i)
00149     {
00150       s << indent << "  axis_priorities[" << i << "]: ";
00151       Printer<uint8_t>::stream(s, indent + "  ", v.axis_priorities[i]);
00152     }
00153   }
00154 };
00155 
00156 
00157 } // namespace message_operations
00158 } // namespace ros
00159 
00160 #endif // NASA_R2_COMMON_MSGS_MESSAGE_PRIORITYARRAY_H
00161 


nasa_r2_common_msgs
Author(s): Paul Dinh. Maintained by Jennifer Turner
autogenerated on Mon Oct 6 2014 02:42:34