Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

PCL and ros::Time

Hi,

I was looking through this example and.. http://wiki.ros.org/pcl_ros

PointCloud::Ptr msg (new PointCloud); msg->header.stamp = ros::Time::now ();

The second line where the stamp takes the time from the ros::time function does not work. Is there any reason to it or a workaround to directly use the current time?

Basically the compilation error is as follows: error: cannot convert ‘ros::Time’ to ‘uint64_t {aka long long unsigned int}’ in assignment

Running hydro btw. Thanks!