Co-authored-by: Mike Purvis <mike@uwmike.com>
This commit is contained in:
@@ -23,18 +23,18 @@ namespace pcl
|
||||
template<typename U> void operator() ()
|
||||
{
|
||||
const char* name = traits::name<PointT, U>::value;
|
||||
uint32_t name_length = strlen(name);
|
||||
std::uint32_t name_length = strlen(name);
|
||||
stream_.next(name_length);
|
||||
if (name_length > 0)
|
||||
memcpy(stream_.advance(name_length), name, name_length);
|
||||
|
||||
uint32_t offset = traits::offset<PointT, U>::value;
|
||||
std::uint32_t offset = traits::offset<PointT, U>::value;
|
||||
stream_.next(offset);
|
||||
|
||||
uint8_t datatype = traits::datatype<PointT, U>::value;
|
||||
std::uint8_t datatype = traits::datatype<PointT, U>::value;
|
||||
stream_.next(datatype);
|
||||
|
||||
uint32_t count = traits::datatype<PointT, U>::size;
|
||||
std::uint32_t count = traits::datatype<PointT, U>::size;
|
||||
stream_.next(count);
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ namespace pcl
|
||||
|
||||
template<typename U> void operator() ()
|
||||
{
|
||||
uint32_t name_length = strlen(traits::name<PointT, U>::value);
|
||||
std::uint32_t name_length = strlen(traits::name<PointT, U>::value);
|
||||
length += name_length + 13;
|
||||
}
|
||||
|
||||
uint32_t length;
|
||||
std::uint32_t length;
|
||||
};
|
||||
} // namespace pcl::detail
|
||||
} // namespace pcl
|
||||
|
||||
@@ -58,7 +58,7 @@ typedef pcl::PointCloud<pcl::PointXYZRGBNormal> PCDType;
|
||||
/// Sets pcl_stamp from stamp, BUT alters stamp
|
||||
/// a little to round it to millisecond. This is because converting back
|
||||
/// and forth from pcd to ros time induces some rounding errors.
|
||||
void setStamp(ros::Time &stamp, pcl::uint64_t &pcl_stamp)
|
||||
void setStamp(ros::Time &stamp, std::uint64_t &pcl_stamp)
|
||||
{
|
||||
// round to millisecond
|
||||
static const uint32_t mult = 1e6;
|
||||
@@ -187,7 +187,7 @@ TEST(MessageFilter, queueSize)
|
||||
filter.registerFailureCallback(boost::bind(&Notification::failure, &n, _1, _2));
|
||||
|
||||
ros::Time stamp = ros::Time::now();
|
||||
pcl::uint64_t pcl_stamp;
|
||||
std::uint64_t pcl_stamp;
|
||||
setStamp(stamp, pcl_stamp);
|
||||
|
||||
for (int i = 0; i < 20; ++i)
|
||||
@@ -281,7 +281,7 @@ TEST(MessageFilter, tolerance)
|
||||
filter.setTolerance(offset);
|
||||
|
||||
ros::Time stamp = ros::Time::now();
|
||||
pcl::uint64_t pcl_stamp;
|
||||
std::uint64_t pcl_stamp;
|
||||
setStamp(stamp, pcl_stamp);
|
||||
tf::StampedTransform transform(tf::Transform(tf::Quaternion(0,0,0,1), tf::Vector3(1,2,3)), stamp, "frame1", "frame2");
|
||||
tf_client.setTransform(transform);
|
||||
|
||||
Reference in New Issue
Block a user