LIO-Livox icon indicating copy to clipboard operation
LIO-Livox copied to clipboard

How to save final mapped point cloud

Open Minsu-Kim1822 opened this issue 2 years ago • 14 comments

Hi all,

I tried to use pointcloud map which is generated by HAP. Actually, I used to use loam livox with save map options and it was quite useful to me. However, this package does not provide that options.

Is there any way to save generated pont cloud??

Minsu-Kim1822 avatar Jan 10 '23 06:01 Minsu-Kim1822

I have the same problem as you

xchwu avatar Jan 30 '23 02:01 xchwu

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

HowoongJun avatar Feb 02 '23 08:02 HowoongJun

I have encountered the same problem. Have you solved this problem?

wzt991101 avatar Jun 13 '23 01:06 wzt991101

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

can you please help what modification do we need to do save the map into pcd file?

abhishekt711 avatar Aug 09 '23 21:08 abhishekt711

Hi all,

I tried to use pointcloud map which is generated by HAP. Actually, I used to use loam livox with save map options and it was quite useful to me. However, this package does not provide that options.

Is there any way to save generated pont cloud??

Did you solve this problem?, can you please help

abhishekt711 avatar Aug 10 '23 07:08 abhishekt711

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

can you please help what modification do we need to do save the map into pcd file?

There is 'getter function' such as get_corner_map(), get_surf_map(), and get_nonfeature_map() in Estimator.h. You can get your map with this functions. Get your map, and save them with pcl::PCDWriter. or, voxelize your raw point cloud map and save it also with pcl::PCDWriter.

HowoongJun avatar Aug 10 '23 07:08 HowoongJun

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

can you please help what modification do we need to do save the map into pcd file?

There is 'getter function' such as get_corner_map(), get_surf_map(), and get_nonfeature_map() in Estimator.h. You can get your map with this functions. Get your map, and save them with pcl::PCDWriter. or, voxelize your raw point cloud map and save it also with pcl::PCDWriter.

Can I store all together the full map in a single pcd ?

abhishekt711 avatar Aug 10 '23 08:08 abhishekt711

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

can you please help what modification do we need to do save the map into pcd file?

There is 'getter function' such as get_corner_map(), get_surf_map(), and get_nonfeature_map() in Estimator.h. You can get your map with this functions. Get your map, and save them with pcl::PCDWriter. or, voxelize your raw point cloud map and save it also with pcl::PCDWriter.

Can I store all together the full map in a single pcd ?

That is up to you. Your map size, your mapping region, range, voxel size ..

HowoongJun avatar Aug 10 '23 09:08 HowoongJun

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

can you please help what modification do we need to do save the map into pcd file?

There is 'getter function' such as get_corner_map(), get_surf_map(), and get_nonfeature_map() in Estimator.h. You can get your map with this functions. Get your map, and save them with pcl::PCDWriter. or, voxelize your raw point cloud map and save it also with pcl::PCDWriter.

Can I store all together the full map in a single pcd ?

That is up to you. Your map size, your mapping region, range, voxel size ..

I have stored the map.pcd by storing the points from /livox_full_cloud_mapped, but getting the error as when i view pcd using pcl_viewer as: pcl_viewer livox_map_op.pcd The viewer window provides interactive commands; for help, press 'h' or 'H' from within the window. Loading livox_map_op.pcd [pcl::PCDReader::read] Number of points read (6177834) is different than expected (51273595)

abhishekt711 avatar Aug 10 '23 11:08 abhishekt711

You can use getter functions for surface, corner and nonfeature map in Estimator.h Since PoseEstimation.cpp is one of main loops, you may edit this code to save your map.

can you please help what modification do we need to do save the map into pcd file?

There is 'getter function' such as get_corner_map(), get_surf_map(), and get_nonfeature_map() in Estimator.h. You can get your map with this functions. Get your map, and save them with pcl::PCDWriter. or, voxelize your raw point cloud map and save it also with pcl::PCDWriter.

Can I store all together the full map in a single pcd ?

That is up to you. Your map size, your mapping region, range, voxel size ..

I have stored the map.pcd by storing the points from /livox_full_cloud_mapped, but getting the error as when i view pcd using pcl_viewer as: pcl_viewer livox_map_op.pcd The viewer window provides interactive commands; for help, press 'h' or 'H' from within the window. Loading livox_map_op.pcd [pcl::PCDReader::read] Number of points read (6177834) is different than expected (51273595)

When u saved pcd file, would u set the height and length of the pcd file?

hongyiWeng avatar Aug 14 '23 08:08 hongyiWeng

I have made a map, but NDT localization fails in the turning using HAP LiDAR.

abhishekt711 avatar Aug 18 '23 12:08 abhishekt711

save map code ; wechat 394467238

lonlonago avatar Jan 18 '24 01:01 lonlonago

@HowoongJun I have my own opinions on saving maps. I think calling get_corner_map(), get_surf_map(), and get_nonfeature_map() cannot get the map you want to save, because the results obtained by these functions are not global, but only partial. As part of the map, if you want to save the global map, you cannot just call these functions.

Yeager-101 avatar Jan 23 '24 08:01 Yeager-101

image I got a map using get_***_map( ). it is sparse and only retains some feature points

creeper5820 avatar Aug 09 '24 16:08 creeper5820