-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Use the C++ cupoch package directly #24
Comments
So i've managed to piece together that what was missing was:
However, now I am running into an issue with memory allocation. given the function that converts ROS2 sensor_msgs::msgs::Pointcloud2 Messages to cupoch::geometry::Pointcloud (I wrote this, but i think you also have such a function hidden somewhere? ) :
now using:
Error:
|
Hi @Shipborn , Thank you for your feedback. For the error, please initialize the allocator when you run the program. cupoch::utility::InitializeAllocator(); |
dear Neka, Thank you for your reply. The implementation is:
The function I'm trying to call repeatedly is your RegistrationICP method.
this works, but only the first loop. I am running this function multiple times and it always executes fine the first loop. but then crashes somewhere in the 2 - 4th loop. The error thrown is:
or:
I do call your initializer in the main function:
I would like to know where the error comes from when the function runs for a second time? I assumed that the end of the function it is all properly freed and garbage collected? Greetings and thank you very much for your time. |
Thank you for the feedback! |
If it's difficult to share the code, is it possible to use gdb or something similar to find out more about debugging information? |
how to use the cupoch c++ librarythe following steps work in ubuntu1804 install cupoch with 3rdparty libsadd some install command to
I will not use the python interface so
write a new cmake fileset vars
using the cupoch
todoYou can write a FindCUPOCH.cmake as well |
thank you ,but I still can't use Cupoch directly, The error is that there is a problem with RMM. Do you have a similar problem? |
You could find it more in perception_cupoch Thanks. |
@xiaopeige Hi, the compiling issue with RMM happens when you use cupoch that > 0.1.7, which upgrade thirdparty of rmm. You could use this fat source of cupoch, which based on the version of 0.1.7 Thanks. Edit, with cupoch over 0.1.7, you could linking without librmm, so you could remove |
Dear @neka-nat, I was wondering if there has been a change to having "official" support for "sudo make install" of your package and then using it in C++ projects? Ideally, one would only need to
Our intend is to use your libraries inside a docker container while using ROS2. Greetings |
@dHofmeister your requirement is related with ZhenshengLee/perception_cupoch#3 https://github.com/ZhenshengLee/perception_cupoch/tree/noetic#cupoch this will help to use cupoch with ros2 and cpp. ros2cuda/cupoch-fat@20d9cb5 I'll try to find sometime to merge this. |
@ZhenshengLee Thank you. I will try and compile it in the nvidia/cuda:11.2.0-devel-ubuntu18.04 docker image |
Dear @neka-nat,
My main question is: I was wondering if it is possible to use the cupoch c++ library directly in my own projects? If so, how do I structure my Cmakelists.txt and what do i link to where?
WHAT I TRIED:
Installing:
but I was hoping i could also add the command:
to place it in my
usr/....
to make it findable for my own package.Using:
I tried importing the cupoch package in my Cmakelists.txt as:
Yet this doesnt work as it cannot find cupoch.
if i simply comment the find_package(cupoch REQUIRED) command, then it fails to find the fmt and flann libraries:
Greetings and thank you for your time.
The text was updated successfully, but these errors were encountered: