header_deprecated_def.h
Go to the documentation of this file.
00001 #ifndef STD_MSGS_INCLUDING_HEADER_DEPRECATED_DEF
00002 #error("Do not include this file directly.  Instead, include std_msgs/Header.h")
00003 #endif
00004 
00005 namespace roslib
00006 {
00007 template <class ContainerAllocator>
00008 struct Header_ : public std_msgs::Header_<ContainerAllocator>
00009 {
00010   typedef Header_<ContainerAllocator> Type;
00011 
00012   ROS_DEPRECATED Header_()
00013   {
00014   }
00015 
00016   ROS_DEPRECATED Header_(const ContainerAllocator& _alloc)
00017   : std_msgs::Header_<ContainerAllocator>(_alloc)
00018   {
00019   }
00020 
00021   ROS_DEPRECATED Header_(const std_msgs::Header_<ContainerAllocator>& rhs)
00022   {
00023     *this = rhs;
00024   }
00025 
00026   ROS_DEPRECATED Type& operator=(const std_msgs::Header_<ContainerAllocator>& rhs)
00027   {
00028     if (this == &rhs)
00029       return *this;
00030     this->seq = rhs.seq;
00031     this->stamp = rhs.stamp;
00032     this->frame_id = rhs.frame_id;
00033     return *this;
00034   }
00035 
00036   ROS_DEPRECATED operator std_msgs::Header_<ContainerAllocator>()
00037   {
00038     std_msgs::Header_<ContainerAllocator> h;
00039     h.seq = this->seq;
00040     h.stamp = this->stamp;
00041     h.frame_id = this->frame_id;
00042     return h;
00043   }
00044 
00045 private:
00046   static const char* __s_getDataType_() { return "roslib/Header"; }
00047 public:
00048    static const std::string __s_getDataType() { return __s_getDataType_(); }
00049 
00050    const std::string __getDataType() const { return __s_getDataType_(); }
00051 
00052 private:
00053   static const char* __s_getMD5Sum_() { return "2176decaecbce78abc3b96ef049fabed"; }
00054 public:
00055    static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056 
00057    const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058 
00059 private:
00060   static const char* __s_getMessageDefinition_() { return "# Standard metadata for higher-level stamped data types.\n\
00061 # This is generally used to communicate timestamped data \n\
00062 # in a particular coordinate frame.\n\
00063 # \n\
00064 # sequence ID: consecutively increasing ID \n\
00065 uint32 seq\n\
00066 #Two-integer timestamp that is expressed as:\n\
00067 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00068 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00069 # time-handling sugar is provided by the client library\n\
00070 time stamp\n\
00071 #Frame this data is associated with\n\
00072 # 0: no frame\n\
00073 # 1: global frame\n\
00074 string frame_id\n\
00075 \n\
00076 "; }
00077 public:
00078    static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00079 
00080    const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00081 
00082    virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00083   {
00084     ros::serialization::OStream stream(write_ptr, 1000000000);
00085     ros::serialization::serialize(stream, this->seq);
00086     ros::serialization::serialize(stream, this->stamp);
00087     ros::serialization::serialize(stream, this->frame_id);
00088     return stream.getData();
00089   }
00090 
00091    virtual uint8_t *deserialize(uint8_t *read_ptr)
00092   {
00093     ros::serialization::IStream stream(read_ptr, 1000000000);
00094     ros::serialization::deserialize(stream, this->seq);
00095     ros::serialization::deserialize(stream, this->stamp);
00096     ros::serialization::deserialize(stream, this->frame_id);
00097     return stream.getData();
00098   }
00099 
00100    virtual uint32_t serializationLength() const
00101   {
00102     uint32_t size = 0;
00103     size += ros::serialization::serializationLength(this->seq);
00104     size += ros::serialization::serializationLength(this->stamp);
00105     size += ros::serialization::serializationLength(this->frame_id);
00106     return size;
00107   }
00108 
00109   typedef boost::shared_ptr< ::roslib::Header_<ContainerAllocator> > Ptr;
00110   typedef boost::shared_ptr< ::roslib::Header_<ContainerAllocator>  const> ConstPtr;
00111 }; // struct Header
00112 typedef  ::roslib::Header_<std::allocator<void> > Header;
00113 
00114 typedef boost::shared_ptr< ::roslib::Header> HeaderPtr;
00115 typedef boost::shared_ptr< ::roslib::Header const> HeaderConstPtr;
00116 
00117 
00118 template<typename ContainerAllocator>
00119 std::ostream& operator<<(std::ostream& s, const  ::roslib::Header_<ContainerAllocator> & v)
00120 {
00121   ros::message_operations::Printer< ::roslib::Header_<ContainerAllocator> >::stream(s, "", v);
00122   return s;}
00123 
00124 } // namespace roslib
00125 
00126 namespace ros
00127 {
00128 namespace message_traits
00129 {
00130 template<class ContainerAllocator>
00131 struct MD5Sum< ::roslib::Header_<ContainerAllocator> > {
00132   static const char* value() 
00133   {
00134     return "2176decaecbce78abc3b96ef049fabed";
00135   }
00136 
00137   static const char* value(const  ::roslib::Header_<ContainerAllocator> &) { return value(); } 
00138   static const uint64_t static_value1 = 0x2176decaecbce78aULL;
00139   static const uint64_t static_value2 = 0xbc3b96ef049fabedULL;
00140 };
00141 
00142 template<class ContainerAllocator>
00143 struct DataType< ::roslib::Header_<ContainerAllocator> > {
00144   static const char* value() 
00145   {
00146     return "roslib/Header";
00147   }
00148 
00149   static const char* value(const  ::roslib::Header_<ContainerAllocator> &) { return value(); } 
00150 };
00151 
00152 template<class ContainerAllocator>
00153 struct Definition< ::roslib::Header_<ContainerAllocator> > {
00154   static const char* value() 
00155   {
00156     return "# Standard metadata for higher-level stamped data types.\n\
00157 # This is generally used to communicate timestamped data \n\
00158 # in a particular coordinate frame.\n\
00159 # \n\
00160 # sequence ID: consecutively increasing ID \n\
00161 uint32 seq\n\
00162 #Two-integer timestamp that is expressed as:\n\
00163 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00164 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00165 # time-handling sugar is provided by the client library\n\
00166 time stamp\n\
00167 #Frame this data is associated with\n\
00168 # 0: no frame\n\
00169 # 1: global frame\n\
00170 string frame_id\n\
00171 \n\
00172 ";
00173   }
00174 
00175   static const char* value(const  ::roslib::Header_<ContainerAllocator> &) { return value(); } 
00176 };
00177 
00178 } // namespace message_traits
00179 } // namespace ros
00180 
00181 namespace ros
00182 {
00183 namespace serialization
00184 {
00185 
00186 template<class ContainerAllocator> struct Serializer< ::roslib::Header_<ContainerAllocator> >
00187 {
00188   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00189   {
00190     stream.next(m.seq);
00191     stream.next(m.stamp);
00192     stream.next(m.frame_id);
00193   }
00194 
00195   ROS_DECLARE_ALLINONE_SERIALIZER;
00196 }; // struct Header_
00197 } // namespace serialization
00198 } // namespace ros
00199 
00200 namespace ros
00201 {
00202 namespace message_operations
00203 {
00204 
00205 template<class ContainerAllocator>
00206 struct Printer< ::roslib::Header_<ContainerAllocator> >
00207 {
00208   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::roslib::Header_<ContainerAllocator> & v) 
00209   {
00210     s << indent << "seq: ";
00211     Printer<uint32_t>::stream(s, indent + "  ", v.seq);
00212     s << indent << "stamp: ";
00213     Printer<ros::Time>::stream(s, indent + "  ", v.stamp);
00214     s << indent << "frame_id: ";
00215     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.frame_id);
00216   }
00217 };
00218 
00219 
00220 } // namespace message_operations
00221 } // namespace ros
00222 


std_msgs
Author(s): Morgan Quigley/mquigley@cs.stanford.edu, Ken Conley/kwc@willowgarage.com, Jeremy Leibs/leibs@willowgarage.com
autogenerated on Thu Jan 2 2014 12:06:10