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

Unable to colcon build rtabmap_sync package #1253

Open
sa32953 opened this issue Dec 10, 2024 · 3 comments
Open

Unable to colcon build rtabmap_sync package #1253

sa32953 opened this issue Dec 10, 2024 · 3 comments

Comments

@sa32953
Copy link

sa32953 commented Dec 10, 2024

Hi, I am trying to build from source as mentioned here in ros2 branch of the repo: https://github.com/introlab/rtabmap_ros/tree/ros2.

I am building it on Ubuntu 22.04 on a VM with ROS2 Humble as distribution. I am unable to build a specific pakcages i.e. rtabmap_sync.
When I try to build it, it completes 21% and the system freezes every time. Here's the colcon command I am running in the workspace.

colcon build --symlink-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DRTABMAP_SYNC_USER_DATA=ON -DCMAKE_BUILD_TYPE=Release --packages-select rtabmap_sync

Any hints what could be the reason for this?

I also tried building by limiting the parallel workers using the below command. Same issue persists!

colcon build --symlink-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DRTABMAP_SYNC_USER_DATA=ON -DCMAKE_BUILD_TYPE=Release --packages-select rtabmap_sync --parallel-workers 2

@matlabbe
Copy link
Member

You may ran out of RAM. Try:

export MAKEFLAGS="-j1"

before doing colcon build. Increase number of threads accordingly to your RAM.

@sa32953
Copy link
Author

sa32953 commented Dec 21, 2024

Hey @matlabbe. Thanks for the reply. I will try that out.
Do you recommend any optimal systems requirements for compiling and runtime?
Also I dont have a GPU, do you recommend running it without GPU?

@matlabbe
Copy link
Member

GPU is not required, unless you want to visualize 3D point clouds live. The underlaying visual odometry and loop closure / grpah optimization performance should be fairly the same without GPU.

With an i7, it would work as expected at runtime. For compilation, having at least 4 GB of RAM is necessary (when using make -j1), but having 16GB or 32 GB you can build more files in parallel.

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