PCLHeader.h
#ifndef PCL_ROSLIB_MESSAGE_HEADER_H
#define PCL_ROSLIB_MESSAGE_HEADER_H
#ifdef USE_ROS
#error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
#endif
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <pcl/pcl_macros.h>
#include <ostream>
namespace pcl
{
struct PCLHeader
{
PCLHeader (): seq (0), stamp (), frame_id ()
{}
/** \brief Sequence number */
pcl::uint32_t seq;
/** \brief A timestamp associated with the time when the data was acquired
*
* The value represents microseconds since 1970-01-01 00:00:00 (the UNIX epoch).
*/
pcl::uint64_t stamp;
/** \brief Coordinate frame ID */
std::string frame_id;
typedef boost::shared_ptr<PCLHeader> Ptr;
typedef boost::shared_ptr<PCLHeader const> ConstPtr;
}; // struct PCLHeader
typedef boost::shared_ptr<PCLHeader> HeaderPtr;
typedef boost::shared_ptr<PCLHeader const> HeaderConstPtr;
inline std::ostream& operator << (std::ostream& out, const PCLHeader &h)
{
out << "seq: " << h.seq;
out << " stamp: " << h.stamp;
out << " frame_id: " << h.frame_id << std::endl;
return (out);
}
} // namespace pcl
#endif // PCL_ROSLIB_MESSAGE_HEADER_H
pcl::HeaderConstPtr
boost::shared_ptr< PCLHeader const > HeaderConstPtr
Definition: PCLHeader.h:36
pcl
Definition: cloud_iterator.h:46
pcl::PCLHeader::Ptr
boost::shared_ptr< PCLHeader > Ptr
Definition: PCLHeader.h:31
pcl::PCLHeader::frame_id
std::string frame_id
Coordinate frame ID.
Definition: PCLHeader.h:29
pcl::PCLHeader::PCLHeader
PCLHeader()
Definition: PCLHeader.h:18
pcl::PCLHeader::seq
pcl::uint32_t seq
Sequence number.
Definition: PCLHeader.h:22
pcl::operator<<
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Definition: bivariate_polynomial.hpp:230
pcl::HeaderPtr
boost::shared_ptr< PCLHeader > HeaderPtr
Definition: PCLHeader.h:35
pcl::PCLHeader::ConstPtr
boost::shared_ptr< PCLHeader const > ConstPtr
Definition: PCLHeader.h:32
pcl::PCLHeader::stamp
pcl::uint64_t stamp
A timestamp associated with the time when the data was acquired.
Definition: PCLHeader.h:27
pcl::PCLHeader
Definition: PCLHeader.h:16