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