$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/NavModeControl.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_NAVMODECONTROL_H 00003 #define APPLANIX_MSGS_MESSAGE_NAVMODECONTROL_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 applanix_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct NavModeControl_ { 00022 typedef NavModeControl_<ContainerAllocator> Type; 00023 00024 NavModeControl_() 00025 : transaction(0) 00026 , mode(0) 00027 { 00028 } 00029 00030 NavModeControl_(const ContainerAllocator& _alloc) 00031 : transaction(0) 00032 , mode(0) 00033 { 00034 } 00035 00036 typedef uint16_t _transaction_type; 00037 uint16_t transaction; 00038 00039 typedef uint8_t _mode_type; 00040 uint8_t mode; 00041 00042 enum { MODE_NONE = 0 }; 00043 enum { MODE_STANDBY = 1 }; 00044 enum { MODE_NAVIGATE = 2 }; 00045 00046 private: 00047 static const char* __s_getDataType_() { return "applanix_msgs/NavModeControl"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00050 00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00052 00053 private: 00054 static const char* __s_getMD5Sum_() { return "ce625e5ed3f367d8fd24c994746ecbcf"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00057 00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00059 00060 private: 00061 static const char* __s_getMessageDefinition_() { return "# Msg 50\n\ 00062 uint16 transaction\n\ 00063 \n\ 00064 uint8 MODE_NONE=0\n\ 00065 uint8 MODE_STANDBY=1\n\ 00066 uint8 MODE_NAVIGATE=2\n\ 00067 uint8 mode\n\ 00068 \n\ 00069 "; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00076 { 00077 ros::serialization::OStream stream(write_ptr, 1000000000); 00078 ros::serialization::serialize(stream, transaction); 00079 ros::serialization::serialize(stream, mode); 00080 return stream.getData(); 00081 } 00082 00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00084 { 00085 ros::serialization::IStream stream(read_ptr, 1000000000); 00086 ros::serialization::deserialize(stream, transaction); 00087 ros::serialization::deserialize(stream, mode); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(transaction); 00095 size += ros::serialization::serializationLength(mode); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::applanix_msgs::NavModeControl_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::applanix_msgs::NavModeControl_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct NavModeControl 00103 typedef ::applanix_msgs::NavModeControl_<std::allocator<void> > NavModeControl; 00104 00105 typedef boost::shared_ptr< ::applanix_msgs::NavModeControl> NavModeControlPtr; 00106 typedef boost::shared_ptr< ::applanix_msgs::NavModeControl const> NavModeControlConstPtr; 00107 00108 00109 template<typename ContainerAllocator> 00110 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::NavModeControl_<ContainerAllocator> & v) 00111 { 00112 ros::message_operations::Printer< ::applanix_msgs::NavModeControl_<ContainerAllocator> >::stream(s, "", v); 00113 return s;} 00114 00115 } // namespace applanix_msgs 00116 00117 namespace ros 00118 { 00119 namespace message_traits 00120 { 00121 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::NavModeControl_<ContainerAllocator> > : public TrueType {}; 00122 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::NavModeControl_<ContainerAllocator> const> : public TrueType {}; 00123 template<class ContainerAllocator> 00124 struct MD5Sum< ::applanix_msgs::NavModeControl_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "ce625e5ed3f367d8fd24c994746ecbcf"; 00128 } 00129 00130 static const char* value(const ::applanix_msgs::NavModeControl_<ContainerAllocator> &) { return value(); } 00131 static const uint64_t static_value1 = 0xce625e5ed3f367d8ULL; 00132 static const uint64_t static_value2 = 0xfd24c994746ecbcfULL; 00133 }; 00134 00135 template<class ContainerAllocator> 00136 struct DataType< ::applanix_msgs::NavModeControl_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "applanix_msgs/NavModeControl"; 00140 } 00141 00142 static const char* value(const ::applanix_msgs::NavModeControl_<ContainerAllocator> &) { return value(); } 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct Definition< ::applanix_msgs::NavModeControl_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "# Msg 50\n\ 00150 uint16 transaction\n\ 00151 \n\ 00152 uint8 MODE_NONE=0\n\ 00153 uint8 MODE_STANDBY=1\n\ 00154 uint8 MODE_NAVIGATE=2\n\ 00155 uint8 mode\n\ 00156 \n\ 00157 "; 00158 } 00159 00160 static const char* value(const ::applanix_msgs::NavModeControl_<ContainerAllocator> &) { return value(); } 00161 }; 00162 00163 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::NavModeControl_<ContainerAllocator> > : public TrueType {}; 00164 } // namespace message_traits 00165 } // namespace ros 00166 00167 namespace ros 00168 { 00169 namespace serialization 00170 { 00171 00172 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::NavModeControl_<ContainerAllocator> > 00173 { 00174 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00175 { 00176 stream.next(m.transaction); 00177 stream.next(m.mode); 00178 } 00179 00180 ROS_DECLARE_ALLINONE_SERIALIZER; 00181 }; // struct NavModeControl_ 00182 } // namespace serialization 00183 } // namespace ros 00184 00185 namespace ros 00186 { 00187 namespace message_operations 00188 { 00189 00190 template<class ContainerAllocator> 00191 struct Printer< ::applanix_msgs::NavModeControl_<ContainerAllocator> > 00192 { 00193 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::NavModeControl_<ContainerAllocator> & v) 00194 { 00195 s << indent << "transaction: "; 00196 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00197 s << indent << "mode: "; 00198 Printer<uint8_t>::stream(s, indent + " ", v.mode); 00199 } 00200 }; 00201 00202 00203 } // namespace message_operations 00204 } // namespace ros 00205 00206 #endif // APPLANIX_MSGS_MESSAGE_NAVMODECONTROL_H 00207