Loading...
Searching...
No Matches
PCLHeader.h
#pragma once
#include <pcl/memory.h> // for shared_ptr
#include <string> // for string
#include <ostream> // for 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
memory.h
Defines functions, macros and traits for allocating and using memory.
pcl
Definition convolution.h:46
pcl::HeaderConstPtr
PCLHeader::ConstPtr HeaderConstPtr
Definition PCLHeader.h:27
pcl::HeaderPtr
PCLHeader::Ptr HeaderPtr
Definition PCLHeader.h:26
pcl::operator<<
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Definition bivariate_polynomial.hpp:238
pcl::operator==
bool operator==(const PCLHeader &lhs, const PCLHeader &rhs)
Definition PCLHeader.h:37
pcl::PCLHeader
Definition PCLHeader.h:11
pcl::PCLHeader::frame_id
std::string frame_id
Coordinate frame ID.
Definition PCLHeader.h:20
pcl::PCLHeader::Ptr
shared_ptr< PCLHeader > Ptr
Definition PCLHeader.h:22
pcl::PCLHeader::stamp
std::uint64_t stamp
A timestamp associated with the time when the data was acquired.
Definition PCLHeader.h:18
pcl::PCLHeader::ConstPtr
shared_ptr< const PCLHeader > ConstPtr
Definition PCLHeader.h:23
pcl::PCLHeader::seq
std::uint32_t seq
Sequence number.
Definition PCLHeader.h:13