Project: bml_msgs License: BSD
Dependencies:
None Used by: |
bml_msgs/msg_gen/cpp/include/bml_msgs/Direction.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/Direction.msg */ 00002 #ifndef BML_MSGS_MESSAGE_DIRECTION_H 00003 #define BML_MSGS_MESSAGE_DIRECTION_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 bml_msgs 00015 { 00016 template <class ContainerAllocator> 00017 struct Direction_ : public ros::Message 00018 { 00019 typedef Direction_<ContainerAllocator> Type; 00020 00021 Direction_() 00022 : value(0) 00023 { 00024 } 00025 00026 Direction_(const ContainerAllocator& _alloc) 00027 : value(0) 00028 { 00029 } 00030 00031 typedef uint8_t _value_type; 00032 uint8_t value; 00033 00034 enum { RIGHT = 1 }; 00035 enum { LEFT = 2 }; 00036 enum { UP = 3 }; 00037 enum { DOWN = 4 }; 00038 enum { UP_RIGHT = 5 }; 00039 enum { UP_LEFT = 6 }; 00040 enum { DOWN_LEFT = 7 }; 00041 enum { DOWN_RIGHT = 8 }; 00042 enum { POLAR = 0 }; 00043 00044 private: 00045 static const char* __s_getDataType_() { return "bml_msgs/Direction"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "8f3506f992bde6ef49f51ece4ef0b17d"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "# the direction message is used by offsetting or directing actions\n\ 00060 uint8 value\n\ 00061 \n\ 00062 uint8 RIGHT=1\n\ 00063 uint8 LEFT=2\n\ 00064 uint8 UP=3\n\ 00065 uint8 DOWN=4\n\ 00066 uint8 UP_RIGHT=5\n\ 00067 uint8 UP_LEFT=6\n\ 00068 uint8 DOWN_LEFT=7\n\ 00069 uint8 DOWN_RIGHT=8\n\ 00070 uint8 POLAR=0\n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, value); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, value); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(value); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::bml_msgs::Direction_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::bml_msgs::Direction_<ContainerAllocator> const> ConstPtr; 00101 }; // struct Direction 00102 typedef ::bml_msgs::Direction_<std::allocator<void> > Direction; 00103 00104 typedef boost::shared_ptr< ::bml_msgs::Direction> DirectionPtr; 00105 typedef boost::shared_ptr< ::bml_msgs::Direction const> DirectionConstPtr; 00106 00107 00108 template<typename ContainerAllocator> 00109 std::ostream& operator<<(std::ostream& s, const ::bml_msgs::Direction_<ContainerAllocator> & v) 00110 { 00111 ros::message_operations::Printer< ::bml_msgs::Direction_<ContainerAllocator> >::stream(s, "", v); 00112 return s;} 00113 00114 } // namespace bml_msgs 00115 00116 namespace ros 00117 { 00118 namespace message_traits 00119 { 00120 template<class ContainerAllocator> 00121 struct MD5Sum< ::bml_msgs::Direction_<ContainerAllocator> > { 00122 static const char* value() 00123 { 00124 return "8f3506f992bde6ef49f51ece4ef0b17d"; 00125 } 00126 00127 static const char* value(const ::bml_msgs::Direction_<ContainerAllocator> &) { return value(); } 00128 static const uint64_t static_value1 = 0x8f3506f992bde6efULL; 00129 static const uint64_t static_value2 = 0x49f51ece4ef0b17dULL; 00130 }; 00131 00132 template<class ContainerAllocator> 00133 struct DataType< ::bml_msgs::Direction_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "bml_msgs/Direction"; 00137 } 00138 00139 static const char* value(const ::bml_msgs::Direction_<ContainerAllocator> &) { return value(); } 00140 }; 00141 00142 template<class ContainerAllocator> 00143 struct Definition< ::bml_msgs::Direction_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "# the direction message is used by offsetting or directing actions\n\ 00147 uint8 value\n\ 00148 \n\ 00149 uint8 RIGHT=1\n\ 00150 uint8 LEFT=2\n\ 00151 uint8 UP=3\n\ 00152 uint8 DOWN=4\n\ 00153 uint8 UP_RIGHT=5\n\ 00154 uint8 UP_LEFT=6\n\ 00155 uint8 DOWN_LEFT=7\n\ 00156 uint8 DOWN_RIGHT=8\n\ 00157 uint8 POLAR=0\n\ 00158 \n\ 00159 "; 00160 } 00161 00162 static const char* value(const ::bml_msgs::Direction_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> struct IsFixedSize< ::bml_msgs::Direction_<ContainerAllocator> > : public TrueType {}; 00166 } // namespace message_traits 00167 } // namespace ros 00168 00169 namespace ros 00170 { 00171 namespace serialization 00172 { 00173 00174 template<class ContainerAllocator> struct Serializer< ::bml_msgs::Direction_<ContainerAllocator> > 00175 { 00176 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00177 { 00178 stream.next(m.value); 00179 } 00180 00181 ROS_DECLARE_ALLINONE_SERIALIZER; 00182 }; // struct Direction_ 00183 } // namespace serialization 00184 } // namespace ros 00185 00186 namespace ros 00187 { 00188 namespace message_operations 00189 { 00190 00191 template<class ContainerAllocator> 00192 struct Printer< ::bml_msgs::Direction_<ContainerAllocator> > 00193 { 00194 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bml_msgs::Direction_<ContainerAllocator> & v) 00195 { 00196 s << indent << "value: "; 00197 Printer<uint8_t>::stream(s, indent + " ", v.value); 00198 } 00199 }; 00200 00201 00202 } // namespace message_operations 00203 } // namespace ros 00204 00205 #endif // BML_MSGS_MESSAGE_DIRECTION_H 00206 |