Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_PORTCONTROL_H
00003 #define APPLANIX_MSGS_MESSAGE_PORTCONTROL_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 #include "applanix_msgs/OutputGroup.h"
00018
00019 namespace applanix_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PortControl_ {
00023 typedef PortControl_<ContainerAllocator> Type;
00024
00025 PortControl_()
00026 : transaction(0)
00027 , groups_count(0)
00028 , groups()
00029 , rate(0)
00030 {
00031 }
00032
00033 PortControl_(const ContainerAllocator& _alloc)
00034 : transaction(0)
00035 , groups_count(0)
00036 , groups(_alloc)
00037 , rate(0)
00038 {
00039 }
00040
00041 typedef uint16_t _transaction_type;
00042 uint16_t transaction;
00043
00044 typedef uint16_t _groups_count_type;
00045 uint16_t groups_count;
00046
00047 typedef std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > _groups_type;
00048 std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > groups;
00049
00050 typedef uint16_t _rate_type;
00051 uint16_t rate;
00052
00053
00054 typedef boost::shared_ptr< ::applanix_msgs::PortControl_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::applanix_msgs::PortControl_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::applanix_msgs::PortControl_<std::allocator<void> > PortControl;
00059
00060 typedef boost::shared_ptr< ::applanix_msgs::PortControl> PortControlPtr;
00061 typedef boost::shared_ptr< ::applanix_msgs::PortControl const> PortControlConstPtr;
00062
00063
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::PortControl_<ContainerAllocator> & v)
00066 {
00067 ros::message_operations::Printer< ::applanix_msgs::PortControl_<ContainerAllocator> >::stream(s, "", v);
00068 return s;}
00069
00070 }
00071
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::PortControl_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::PortControl_<ContainerAllocator> const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::applanix_msgs::PortControl_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "580f01d560eac7e9f65f2de16e8d84ca";
00083 }
00084
00085 static const char* value(const ::applanix_msgs::PortControl_<ContainerAllocator> &) { return value(); }
00086 static const uint64_t static_value1 = 0x580f01d560eac7e9ULL;
00087 static const uint64_t static_value2 = 0xf65f2de16e8d84caULL;
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct DataType< ::applanix_msgs::PortControl_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "applanix_msgs/PortControl";
00095 }
00096
00097 static const char* value(const ::applanix_msgs::PortControl_<ContainerAllocator> &) { return value(); }
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct Definition< ::applanix_msgs::PortControl_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "# Msg 51, 52, 61\n\
00105 uint16 transaction\n\
00106 \n\
00107 uint16 groups_count\n\
00108 OutputGroup[] groups\n\
00109 \n\
00110 # Valid only for primary/secondary data port.\n\
00111 # 1, 2, 10, 20, 25, 50, 100, 200\n\
00112 uint16 rate\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: applanix_msgs/OutputGroup\n\
00116 uint16 group\n\
00117 \n\
00118 ";
00119 }
00120
00121 static const char* value(const ::applanix_msgs::PortControl_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 }
00125 }
00126
00127 namespace ros
00128 {
00129 namespace serialization
00130 {
00131
00132 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::PortControl_<ContainerAllocator> >
00133 {
00134 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00135 {
00136 stream.next(m.transaction);
00137 stream.next(m.groups_count);
00138 stream.next(m.groups);
00139 stream.next(m.rate);
00140 }
00141
00142 ROS_DECLARE_ALLINONE_SERIALIZER;
00143 };
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151
00152 template<class ContainerAllocator>
00153 struct Printer< ::applanix_msgs::PortControl_<ContainerAllocator> >
00154 {
00155 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::PortControl_<ContainerAllocator> & v)
00156 {
00157 s << indent << "transaction: ";
00158 Printer<uint16_t>::stream(s, indent + " ", v.transaction);
00159 s << indent << "groups_count: ";
00160 Printer<uint16_t>::stream(s, indent + " ", v.groups_count);
00161 s << indent << "groups[]" << std::endl;
00162 for (size_t i = 0; i < v.groups.size(); ++i)
00163 {
00164 s << indent << " groups[" << i << "]: ";
00165 s << std::endl;
00166 s << indent;
00167 Printer< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::stream(s, indent + " ", v.groups[i]);
00168 }
00169 s << indent << "rate: ";
00170 Printer<uint16_t>::stream(s, indent + " ", v.rate);
00171 }
00172 };
00173
00174
00175 }
00176 }
00177
00178 #endif // APPLANIX_MSGS_MESSAGE_PORTCONTROL_H
00179