$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/PortControl.msg */ 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 ROS_DEPRECATED uint32_t get_groups_size() const { return (uint32_t)groups.size(); } 00055 ROS_DEPRECATED void set_groups_size(uint32_t size) { groups.resize((size_t)size); } 00056 ROS_DEPRECATED void get_groups_vec(std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > & vec) const { vec = this->groups; } 00057 ROS_DEPRECATED void set_groups_vec(const std::vector< ::applanix_msgs::OutputGroup_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::other > & vec) { this->groups = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "applanix_msgs/PortControl"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "580f01d560eac7e9f65f2de16e8d84ca"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# Msg 51, 52, 61\n\ 00074 uint16 transaction\n\ 00075 \n\ 00076 uint16 groups_count\n\ 00077 OutputGroup[] groups\n\ 00078 \n\ 00079 # Valid only for primary/secondary data port.\n\ 00080 # 1, 2, 10, 20, 25, 50, 100, 200\n\ 00081 uint16 rate\n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: applanix_msgs/OutputGroup\n\ 00085 uint16 group\n\ 00086 \n\ 00087 "; } 00088 public: 00089 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00094 { 00095 ros::serialization::OStream stream(write_ptr, 1000000000); 00096 ros::serialization::serialize(stream, transaction); 00097 ros::serialization::serialize(stream, groups_count); 00098 ros::serialization::serialize(stream, groups); 00099 ros::serialization::serialize(stream, rate); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, transaction); 00107 ros::serialization::deserialize(stream, groups_count); 00108 ros::serialization::deserialize(stream, groups); 00109 ros::serialization::deserialize(stream, rate); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint32_t serializationLength() const 00114 { 00115 uint32_t size = 0; 00116 size += ros::serialization::serializationLength(transaction); 00117 size += ros::serialization::serializationLength(groups_count); 00118 size += ros::serialization::serializationLength(groups); 00119 size += ros::serialization::serializationLength(rate); 00120 return size; 00121 } 00122 00123 typedef boost::shared_ptr< ::applanix_msgs::PortControl_<ContainerAllocator> > Ptr; 00124 typedef boost::shared_ptr< ::applanix_msgs::PortControl_<ContainerAllocator> const> ConstPtr; 00125 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00126 }; // struct PortControl 00127 typedef ::applanix_msgs::PortControl_<std::allocator<void> > PortControl; 00128 00129 typedef boost::shared_ptr< ::applanix_msgs::PortControl> PortControlPtr; 00130 typedef boost::shared_ptr< ::applanix_msgs::PortControl const> PortControlConstPtr; 00131 00132 00133 template<typename ContainerAllocator> 00134 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::PortControl_<ContainerAllocator> & v) 00135 { 00136 ros::message_operations::Printer< ::applanix_msgs::PortControl_<ContainerAllocator> >::stream(s, "", v); 00137 return s;} 00138 00139 } // namespace applanix_msgs 00140 00141 namespace ros 00142 { 00143 namespace message_traits 00144 { 00145 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::PortControl_<ContainerAllocator> > : public TrueType {}; 00146 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::PortControl_<ContainerAllocator> const> : public TrueType {}; 00147 template<class ContainerAllocator> 00148 struct MD5Sum< ::applanix_msgs::PortControl_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "580f01d560eac7e9f65f2de16e8d84ca"; 00152 } 00153 00154 static const char* value(const ::applanix_msgs::PortControl_<ContainerAllocator> &) { return value(); } 00155 static const uint64_t static_value1 = 0x580f01d560eac7e9ULL; 00156 static const uint64_t static_value2 = 0xf65f2de16e8d84caULL; 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct DataType< ::applanix_msgs::PortControl_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "applanix_msgs/PortControl"; 00164 } 00165 00166 static const char* value(const ::applanix_msgs::PortControl_<ContainerAllocator> &) { return value(); } 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct Definition< ::applanix_msgs::PortControl_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "# Msg 51, 52, 61\n\ 00174 uint16 transaction\n\ 00175 \n\ 00176 uint16 groups_count\n\ 00177 OutputGroup[] groups\n\ 00178 \n\ 00179 # Valid only for primary/secondary data port.\n\ 00180 # 1, 2, 10, 20, 25, 50, 100, 200\n\ 00181 uint16 rate\n\ 00182 \n\ 00183 ================================================================================\n\ 00184 MSG: applanix_msgs/OutputGroup\n\ 00185 uint16 group\n\ 00186 \n\ 00187 "; 00188 } 00189 00190 static const char* value(const ::applanix_msgs::PortControl_<ContainerAllocator> &) { return value(); } 00191 }; 00192 00193 } // namespace message_traits 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace serialization 00199 { 00200 00201 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::PortControl_<ContainerAllocator> > 00202 { 00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00204 { 00205 stream.next(m.transaction); 00206 stream.next(m.groups_count); 00207 stream.next(m.groups); 00208 stream.next(m.rate); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct PortControl_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace message_operations 00219 { 00220 00221 template<class ContainerAllocator> 00222 struct Printer< ::applanix_msgs::PortControl_<ContainerAllocator> > 00223 { 00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::PortControl_<ContainerAllocator> & v) 00225 { 00226 s << indent << "transaction: "; 00227 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00228 s << indent << "groups_count: "; 00229 Printer<uint16_t>::stream(s, indent + " ", v.groups_count); 00230 s << indent << "groups[]" << std::endl; 00231 for (size_t i = 0; i < v.groups.size(); ++i) 00232 { 00233 s << indent << " groups[" << i << "]: "; 00234 s << std::endl; 00235 s << indent; 00236 Printer< ::applanix_msgs::OutputGroup_<ContainerAllocator> >::stream(s, indent + " ", v.groups[i]); 00237 } 00238 s << indent << "rate: "; 00239 Printer<uint16_t>::stream(s, indent + " ", v.rate); 00240 } 00241 }; 00242 00243 00244 } // namespace message_operations 00245 } // namespace ros 00246 00247 #endif // APPLANIX_MSGS_MESSAGE_PORTCONTROL_H 00248