Skip to content
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

Is it possible to use Open3D and Cupoch together? #10

Closed
1939938853 opened this issue Jul 26, 2020 · 3 comments
Closed

Is it possible to use Open3D and Cupoch together? #10

1939938853 opened this issue Jul 26, 2020 · 3 comments

Comments

@1939938853
Copy link

Hello,

I tried to use Open3d and Cupoch together side-by-side for comparison. But got something redefined error. Here is my code

auto pcd_gpu = cupoch::io::CreatePointCloudFromFile("pcd1.pcd"); auto pcd = open3d::io::CreatePointCloudFromFile("pcd1.pcd");

Here is the error messages

image

Anyway to solve this issue?

Thank you!

@neka-nat
Copy link
Owner

Hi @1939938853 ,

Thank you for the reporting.
It sounds like a problem with fmt and tinyobjloader libraries.
I think the following issues are related to the tinyobjeloader one.
tinyobjloader/tinyobjloader#171
I didn't find any related issues with fmt.

@1939938853
Copy link
Author

It looks that we need to manually modify the header files of both fmt and tinyobjloader.

By the way, what is the suggestion for best covert Open3D 3D data to Cupoch and vice versa. static_cast or via the eigenvector?

Thank you!

@neka-nat
Copy link
Owner

The open3d point cloud is a std::vector.
By contrast, cupoch is a thrust::device_vector.
It can be copied by the assignment operator.
https://stackoverflow.com/questions/43982841/how-to-copy-host-vector-to-device-vector-by-thrust

open3d::geometry::PointCloud pcd_cpu;
// Initialize pcd_cpu...
cupoch::geometry::PointCloud pcd_gpu;
pcd_gpu.points_ = pcd_cpu.points_;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants