22 #ifndef __LIBS_PCL_UTILS_UTILS_H_ 23 #define __LIBS_PCL_UTILS_UTILS_H_ 25 #include <pcl/point_cloud.h> 40 template <
typename Po
intT>
45 cloud->header.stamp.sec = time.
get_sec();
46 cloud->header.stamp.nsec = time.
get_usec() * 1000;
62 template <
typename Po
intT>
67 time.
set_time(cloud->header.stamp.sec, cloud->header.stamp.nsec / 1000);
82 template <
typename Po
intT>
87 time.
set_time(cloud->header.stamp.sec, cloud->header.stamp.nsec / 1000);
100 template <
typename Po
intT1,
typename Po
intT2>
105 to->header.stamp = from->header.stamp;
123 template <
typename Po
intT>
132 template <
typename Po
intT>
uint64_t sec
seconds part of time
Fawkes library namespace.
long get_usec() const
Get microseconds.
A class for handling time.
struct fawkes::PointCloudTimestamp::@0 time
Access timestamp as time.
long get_sec() const
Get seconds.
uint64_t usec
microseconds part of time
Union to pack fawkes::Time into the pcl::PointCloud timestamp.
void operator()(T *t)
Delete operator that does nothing.
Helper struct to avoid deletion of PointClouds.
RefPtr<> is a reference-counting shared smartpointer.
void set_time(const timeval *tv)
Sets the time.
uint64_t timestamp
Access timestamp as number only.