Point Cloud Library (PCL)
1.11.1-dev
pcl
PCLHeader.h
1
#pragma once
2
3
#include <
pcl/memory.h
>
// for shared_ptr
4
5
#include <string>
// for string
6
#include <ostream>
// for ostream
7
8
namespace
pcl
9
{
10
struct
PCLHeader
11
{
12
/** \brief Sequence number */
13
std::uint32_t
seq
= 0;
14
/** \brief A timestamp associated with the time when the data was acquired
15
*
16
* The value represents microseconds since 1970-01-01 00:00:00 (the UNIX epoch).
17
*/
18
std::uint64_t
stamp
= 0;
19
/** \brief Coordinate frame ID */
20
std::string
frame_id
;
21
22
using
Ptr
= shared_ptr<PCLHeader>;
23
using
ConstPtr
= shared_ptr<const PCLHeader>;
24
};
// struct PCLHeader
25
26
using
HeaderPtr
=
PCLHeader::Ptr
;
27
using
HeaderConstPtr
=
PCLHeader::ConstPtr
;
28
29
inline
std::ostream&
operator <<
(std::ostream& out,
const
PCLHeader
&h)
30
{
31
out <<
"seq: "
<< h.
seq
;
32
out <<
" stamp: "
<< h.
stamp
;
33
out <<
" frame_id: "
<< h.
frame_id
<< std::endl;
34
return
(out);
35
}
36
37
inline
bool
operator==
(
const
PCLHeader
&lhs,
const
PCLHeader
&rhs)
38
{
39
return
(&lhs == &rhs) ||
40
(lhs.
seq
== rhs.
seq
&& lhs.
stamp
== rhs.
stamp
&& lhs.
frame_id
== rhs.
frame_id
);
41
}
42
43
}
// namespace pcl
44
pcl::PCLHeader::stamp
std::uint64_t stamp
A timestamp associated with the time when the data was acquired.
Definition:
PCLHeader.h:18
pcl::PCLHeader::seq
std::uint32_t seq
Sequence number.
Definition:
PCLHeader.h:13
pcl
Definition:
convolution.h:46
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::ConstPtr
shared_ptr< const PCLHeader > ConstPtr
Definition:
PCLHeader.h:23
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:240
pcl::HeaderConstPtr
PCLHeader::ConstPtr HeaderConstPtr
Definition:
PCLHeader.h:27
pcl::operator==
bool operator==(const PCLHeader &lhs, const PCLHeader &rhs)
Definition:
PCLHeader.h:37
memory.h
Defines functions, macros and traits for allocating and using memory.
pcl::PCLHeader
Definition:
PCLHeader.h:10