Lidar_AI_Solution icon indicating copy to clipboard operation
Lidar_AI_Solution copied to clipboard

how to convert nv::Tensor lidar_points to pcl::PointCloud<pcl::PointXYZI>

Open artofstate opened this issue 1 year ago • 2 comments

Hi! Have u tried ROS to finish visualization ? I don't know how to convert them correctly.

artofstate avatar Sep 25 '23 09:09 artofstate

Nv::Tensor is just a data structure that stores a matrix. You can get its raw data pointer. There is nothing special about it.

hopef avatar Sep 26 '23 02:09 hopef

Sorry, Could you please show me in detail? How to get the position of every point with nv::Tensor type? In Cuda_BEVFusion/src/main.cpp, auto lidar_points = nv::Tensor::load(nv::format("%s/points.tensor", data), false); Then I'v tried std::cout<<(unsigned short)lidar_pointes.ptr()<<std::endl; I got a strange output.

artofstate avatar Sep 26 '23 12:09 artofstate