Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::applanix_msgs::ProgramControl_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::applanix_msgs::ProgramControl_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::applanix_msgs::ProgramControl_<std::allocator<void> > ProgramControl;
00053
00054 typedef boost::shared_ptr< ::applanix_msgs::ProgramControl> ProgramControlPtr;
00055 typedef boost::shared_ptr< ::applanix_msgs::ProgramControl const> ProgramControlConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::ProgramControl_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::applanix_msgs::ProgramControl_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::ProgramControl_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::ProgramControl_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::applanix_msgs::ProgramControl_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "dab563586b7a82ad1a25ceacdb3b587b";
00077 }
00078
00079 static const char* value(const ::applanix_msgs::ProgramControl_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xdab563586b7a82adULL;
00081 static const uint64_t static_value2 = 0x1a25ceacdb3b587bULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::applanix_msgs::ProgramControl_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "applanix_msgs/ProgramControl";
00089 }
00090
00091 static const char* value(const ::applanix_msgs::ProgramControl_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::applanix_msgs::ProgramControl_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# Msg 90\n\
00099 uint16 transaction\n\
00100 \n\
00101 uint16 CONTROL_ALIVE=0\n\
00102 uint16 CONTROL_TERMINATE_TCPIP=1\n\
00103 uint16 CONTROL_RESET_GAMS=100\n\
00104 uint16 CONTROL_RESET_POS=101\n\
00105 uint16 CONTROL_SHUTDOWN_POS=102\n\
00106 uint16 control\n\
00107 \n\
00108 ";
00109 }
00110
00111 static const char* value(const ::applanix_msgs::ProgramControl_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::ProgramControl_<ContainerAllocator> > : public TrueType {};
00115 }
00116 }
00117
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122
00123 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::ProgramControl_<ContainerAllocator> >
00124 {
00125 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126 {
00127 stream.next(m.transaction);
00128 stream.next(m.control);
00129 }
00130
00131 ROS_DECLARE_ALLINONE_SERIALIZER;
00132 };
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140
00141 template<class ContainerAllocator>
00142 struct Printer< ::applanix_msgs::ProgramControl_<ContainerAllocator> >
00143 {
00144 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::ProgramControl_<ContainerAllocator> & v)
00145 {
00146 s << indent << "transaction: ";
00147 Printer<uint16_t>::stream(s, indent + " ", v.transaction);
00148 s << indent << "control: ";
00149 Printer<uint16_t>::stream(s, indent + " ", v.control);
00150 }
00151 };
00152
00153
00154 }
00155 }
00156
00157 #endif // APPLANIX_MSGS_MESSAGE_PROGRAMCONTROL_H
00158