Conversion in integral precision

fixes #14
This commit is contained in:
Brice Rebsamen 2015-02-11 11:36:56 -08:00
parent 2c57225370
commit d1b27af512

View File

@ -79,13 +79,13 @@ namespace pcl_conversions {
inline
void fromPCL(const pcl::uint64_t &pcl_stamp, ros::Time &stamp)
{
stamp.fromNSec(pcl_stamp * 1e3); // Convert from us to ns
stamp.fromNSec(pcl_stamp * 1000ull); // Convert from us to ns
}
inline
void toPCL(const ros::Time &stamp, pcl::uint64_t &pcl_stamp)
{
pcl_stamp = stamp.toNSec() / 1e3; // Convert from ns to us
pcl_stamp = stamp.toNSec() / 1000ull; // Convert from ns to us
}
inline