$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_controllers/doc_stacks/2013-03-01_16-45-23.561928/pr2_controllers/pr2_mechanism_controllers/msg/OdometryMatrix.msg */ 00002 #ifndef PR2_MECHANISM_CONTROLLERS_MESSAGE_ODOMETRYMATRIX_H 00003 #define PR2_MECHANISM_CONTROLLERS_MESSAGE_ODOMETRYMATRIX_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 pr2_mechanism_controllers 00019 { 00020 template <class ContainerAllocator> 00021 struct OdometryMatrix_ { 00022 typedef OdometryMatrix_<ContainerAllocator> Type; 00023 00024 OdometryMatrix_() 00025 : m() 00026 { 00027 } 00028 00029 OdometryMatrix_(const ContainerAllocator& _alloc) 00030 : m(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _m_type; 00035 std::vector<double, typename ContainerAllocator::template rebind<double>::other > m; 00036 00037 00038 ROS_DEPRECATED uint32_t get_m_size() const { return (uint32_t)m.size(); } 00039 ROS_DEPRECATED void set_m_size(uint32_t size) { m.resize((size_t)size); } 00040 ROS_DEPRECATED void get_m_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->m; } 00041 ROS_DEPRECATED void set_m_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->m = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/OdometryMatrix"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "1f7818e7ce16454badf1bee936b0ff16"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "float64[] m\n\ 00058 "; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00061 00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00063 00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00065 { 00066 ros::serialization::OStream stream(write_ptr, 1000000000); 00067 ros::serialization::serialize(stream, m); 00068 return stream.getData(); 00069 } 00070 00071 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00072 { 00073 ros::serialization::IStream stream(read_ptr, 1000000000); 00074 ros::serialization::deserialize(stream, m); 00075 return stream.getData(); 00076 } 00077 00078 ROS_DEPRECATED virtual uint32_t serializationLength() const 00079 { 00080 uint32_t size = 0; 00081 size += ros::serialization::serializationLength(m); 00082 return size; 00083 } 00084 00085 typedef boost::shared_ptr< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > Ptr; 00086 typedef boost::shared_ptr< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> const> ConstPtr; 00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00088 }; // struct OdometryMatrix 00089 typedef ::pr2_mechanism_controllers::OdometryMatrix_<std::allocator<void> > OdometryMatrix; 00090 00091 typedef boost::shared_ptr< ::pr2_mechanism_controllers::OdometryMatrix> OdometryMatrixPtr; 00092 typedef boost::shared_ptr< ::pr2_mechanism_controllers::OdometryMatrix const> OdometryMatrixConstPtr; 00093 00094 00095 template<typename ContainerAllocator> 00096 std::ostream& operator<<(std::ostream& s, const ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> & v) 00097 { 00098 ros::message_operations::Printer< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> >::stream(s, "", v); 00099 return s;} 00100 00101 } // namespace pr2_mechanism_controllers 00102 00103 namespace ros 00104 { 00105 namespace message_traits 00106 { 00107 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > : public TrueType {}; 00108 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> const> : public TrueType {}; 00109 template<class ContainerAllocator> 00110 struct MD5Sum< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > { 00111 static const char* value() 00112 { 00113 return "1f7818e7ce16454badf1bee936b0ff16"; 00114 } 00115 00116 static const char* value(const ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> &) { return value(); } 00117 static const uint64_t static_value1 = 0x1f7818e7ce16454bULL; 00118 static const uint64_t static_value2 = 0xadf1bee936b0ff16ULL; 00119 }; 00120 00121 template<class ContainerAllocator> 00122 struct DataType< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > { 00123 static const char* value() 00124 { 00125 return "pr2_mechanism_controllers/OdometryMatrix"; 00126 } 00127 00128 static const char* value(const ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> &) { return value(); } 00129 }; 00130 00131 template<class ContainerAllocator> 00132 struct Definition< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "float64[] m\n\ 00136 "; 00137 } 00138 00139 static const char* value(const ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> &) { return value(); } 00140 }; 00141 00142 } // namespace message_traits 00143 } // namespace ros 00144 00145 namespace ros 00146 { 00147 namespace serialization 00148 { 00149 00150 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > 00151 { 00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00153 { 00154 stream.next(m.m); 00155 } 00156 00157 ROS_DECLARE_ALLINONE_SERIALIZER; 00158 }; // struct OdometryMatrix_ 00159 } // namespace serialization 00160 } // namespace ros 00161 00162 namespace ros 00163 { 00164 namespace message_operations 00165 { 00166 00167 template<class ContainerAllocator> 00168 struct Printer< ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> > 00169 { 00170 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_mechanism_controllers::OdometryMatrix_<ContainerAllocator> & v) 00171 { 00172 s << indent << "m[]" << std::endl; 00173 for (size_t i = 0; i < v.m.size(); ++i) 00174 { 00175 s << indent << " m[" << i << "]: "; 00176 Printer<double>::stream(s, indent + " ", v.m[i]); 00177 } 00178 } 00179 }; 00180 00181 00182 } // namespace message_operations 00183 } // namespace ros 00184 00185 #endif // PR2_MECHANISM_CONTROLLERS_MESSAGE_ODOMETRYMATRIX_H 00186