PCLHeader.h
#pragma once
#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
{
/** \brief Sequence number */
std::uint32_t seq = 0;
/** \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).
*/
std::uint64_t stamp = 0;
/** \brief Coordinate frame ID */
std::string frame_id;
using Ptr = shared_ptr<PCLHeader>;
using ConstPtr = shared_ptr<const PCLHeader>;
}; // struct PCLHeader
using HeaderPtr = PCLHeader::Ptr;
using HeaderConstPtr = PCLHeader::ConstPtr;
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);
}
inline bool operator== (const PCLHeader &lhs, const PCLHeader &rhs)
{
return (&lhs == &rhs) ||
(lhs.seq == rhs.seq && lhs.stamp == rhs.stamp && lhs.frame_id == rhs.frame_id);
}
} // namespace pcl
pcl::PCLHeader::stamp
std::uint64_t stamp
A timestamp associated with the time when the data was acquired.
Definition: PCLHeader.h:23
pcl::PCLHeader::seq
std::uint32_t seq
Sequence number.
Definition: PCLHeader.h:18
pcl_macros.h
Defines all the PCL and non-PCL macros used.
pcl
This file defines compatibility wrappers for low level I/O functions.
Definition: convolution.h:45
pcl::uint32_t
std::uint32_t uint32_t
Definition: pcl_macros.h:96
pcl::PCLHeader::frame_id
std::string frame_id
Coordinate frame ID.
Definition: PCLHeader.h:25
pcl::PCLHeader::Ptr
shared_ptr< PCLHeader > Ptr
Definition: PCLHeader.h:27
pcl::PCLHeader::ConstPtr
shared_ptr< const PCLHeader > ConstPtr
Definition: PCLHeader.h:28
pcl::HeaderPtr
PCLHeader::Ptr HeaderPtr
Definition: PCLHeader.h:31
pcl::operator<<
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Definition: bivariate_polynomial.hpp:229
pcl::HeaderConstPtr
PCLHeader::ConstPtr HeaderConstPtr
Definition: PCLHeader.h:32
pcl::operator==
bool operator==(const PCLHeader &lhs, const PCLHeader &rhs)
Definition: PCLHeader.h:42
pcl::PCLHeader
Definition: PCLHeader.h:15
pcl::shared_ptr
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Definition: pcl_macros.h:90
pcl::uint64_t
std::uint64_t uint64_t
Definition: pcl_macros.h:98