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 compile realsense-ros on Ubuntu 22.04 running Docker #3233

Closed
kushal2507 opened this issue Oct 25, 2024 · 3 comments
Closed

Unable to compile realsense-ros on Ubuntu 22.04 running Docker #3233

kushal2507 opened this issue Oct 25, 2024 · 3 comments
Labels

Comments

@kushal2507
Copy link


Required Info
Camera Model D435i
Firmware Version 5.16.0.1
Operating System & Version Ubuntu 22
Kernel Version (Linux Only) 6.8.0-47-generic
Platform PC
Librealsense SDK Version 2.56.2
ROS Distro Humble
RealSense ROS Wrapper Version 4.56.1

Issue Description

I am running docker with Ubuntu 22.04 having kernel 6.8.0.47-generic. The host PC on which the docker is running has the same properties. I followed the instructions mentioned here to clone and compile librealsense. In my ros2_ws I have cloned realsense-ros with tag 4.56.1. Upon running colcon build I get the following error and I am unable to compile it.

Screenshot from 2024-10-25 10-45-41

I am running my docker container with the following runArgs :

"runArgs": [
"--network=host",
"--cap-add=SYS_PTRACE",
"--security-opt=seccomp:unconfined",
"--security-opt=apparmor:unconfined",
"--ipc=host",
"--pid=host",
"--gpus=all",
"--env=NVIDIA_DRIVER_CAPABILITIES=all",
"--env=DISPLAY",
"--privileged",
"--volume=/dev:/dev",
"--device-cgroup-rule=c 189:* rmw",
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
]

@MartyG-RealSense
Copy link
Collaborator

Hi @kushal2507 There was a recent case of the Can't create temporary cache file /etc/ld.so.cache~: Permission denied error at #3197 (comment) and the apparent cause of the problem in that particular case was that the ROS wrapper was not the only data in the catkin workspace folder. The RealSense user in that case had installed librealsense into the catkin folder too.

Can you confirm if the ROS wrapper is the only data installed in your ros2_ws/src folder please?

@kushal2507
Copy link
Author

Indeed, I had the librealsense folder inside my src/ folder. After moving it out, I am able to compile it. I have however run into different issue snow for which I will open a new issue.
Thank you for your help!

@MartyG-RealSense
Copy link
Collaborator

You are very welcome. I'm pleased to hear that moving librealsense's location worked for you. :)

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

No branches or pull requests

2 participants