-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phmap::parallel_flat_hash_map to manage lidar pointcloud? #265
Comments
Well, you can use However, the big gain is to use many threads and use If you have a working example of a C++ program you can share that implements one of the algorithms you are interested in, I can make further suggestions. |
#pragma once #define HASH_PRIME 116101 class Hash_3D_key {
}; // Hash value template <typename data_type = float, typename T = void *>
}; My relevant project code looks like above: the above code is developed based on std::unordered_map。Now change std::unordered_map to phmap::p arallel_flat_hash_map, how should the corresponding implementation of the reserve() insert() if_exist() clear all_data() erase_data_out_of_range() and erase_data() functions be rewritten? Looking forward to your reply, thank you |
The main function to be realized is: based on ROS, receive real-time point cloud data of each frame, insert it into the point cloud map that m_map_3d_hash_map maintain, and output the inserted point cloud map in real time @greg7mdp |
@maomao0220 please include a piece of code that I can compile by itself and I'll look into it. The code you posted above has a lot of issues like empty |
Hello, when using std::unordered_map to store lidar point clouds, it is very time-consuming and CPU-intensive for traversing, inserting, and deleting. Now I want to use phmap::parallel_flat_hash_map storage and manage the point cloud data of LiDAR, how can I use it? Is there a guidance document for storing lidar data? At present, it mainly uses functions such as traversing the stored historical point cloud points, deleting a point, inserting a frame point cloud, and clearing.
The text was updated successfully, but these errors were encountered: