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

Humble apt/source conflict? #2973

Closed
martinerk0 opened this issue Jan 12, 2024 · 12 comments
Closed

Humble apt/source conflict? #2973

martinerk0 opened this issue Jan 12, 2024 · 12 comments
Labels

Comments

@martinerk0
Copy link

martinerk0 commented Jan 12, 2024


Required Info
Camera Model D455
Firmware Version 5.15.1
Operating System & Version Ubuntu 22.04.3 LTS
Kernel Version (Linux Only) 5.15.122-tegra
Platform Jetson Orin Nano devkit
Librealsense SDK Version latest main branch from source
Language -
Segment -
ROS Distro humble
RealSense ROS Wrapper Version latest main branch from source / apt

Issue Description

I don't know if it's bug but surely some people might get confused, I installed SDK by script https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh on Orin, but then when I wanted to install ros wrapper by apt:
sudo apt install ros-humble-realsense2-* as in Step 3 of installation, it also installs ros-humble-librealsense2 which I guess is SDK for humble? And then you get conflicts in the sense IntelRealSense/librealsense#12566 where the viewer (and everything) runs only with sudo.

EDIT: When you build ROS wrapper from source it's fine since ros-humble-librealsense2 is not installed/built.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 12, 2024

Hi @martinerk0 Yes, there is the potential for conflicts between two librealsense installations if librealsense is installed first and then a ROS wrapper install procedure that installs both librealsense and the wrapper at the same time is used.

If the RealSense Viewer tool is required then the ideal method to follow is to install librealsense first from packages or source code, and then build the ROS wrapper from source afterwards to ensure that librealsense is not installed a second time.

@MartyG-RealSense
Copy link
Collaborator

Hi @martinerk0 Do you require further assistance with this case, please? Thanks!

@martinerk0
Copy link
Author

@MartyG-RealSense can I ask what is the purpose of ros-humble-librealsense2?

The documentation is still misleading, if in step 2 people install librealsense2 by apt or source, and then in step 3 by apt ros-humble-librealsense2 they will have these weird permission problems due to both packages/libs installed.

@MartyG-RealSense
Copy link
Collaborator

ros-humble-librealsense2 installs the ROS2 wrapper and necessary files using Debian packages instead of compiling the wrapper from source code.

I understand and appreciate that the instructions can be somewhat unclear in regards to performing a package installation with Option 1. The same is true for the ROS1 wrapper and its Method 1 package instructions.

@graham-fleming
Copy link

Will the instructions be updated? also having problems installing on a similar environment.

Three steps with 5 different options plus these extra instruction pages is unclear.

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_jetson.md
https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 24, 2024

I am not aware of any plans to adjust how the ROS wrapper's package / source instructions are presented.

The librealsense SDK needs be able to work on multiple different computing hardware platforms but one guide will not work for all of those platforms. This is why there are different sets of instructions.

The installation_jetson.md instructions are for installation on Nvidia Jetson computing boards only, whilst the libuvc_installation.sh instructions help to enable a successful installation when other methods have been tried and not worked and are especially suited for installing on Raspberry Pi boards with the Ubuntu operating system.

If you are using a Jetson board then the only official Intel instruction page that should be used is installation_jetson.md. There are also some unofficial guides contributed by Jetson users, such as the source code installation one at IntelRealSense/librealsense#6964 (comment) and JetsonHacks build scripts are also popular.

@MartyG-RealSense
Copy link
Collaborator

Hi @martinerk0 and @graham-fleming Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

@martinerk0
Copy link
Author

I think documentation should be reviewed, since more people are having same problems IntelRealSense/librealsense#12735

What do you think @MartyG-RealSense ?

@MartyG-RealSense
Copy link
Collaborator

Hi @martinerk0 I have hughlighted this issue to the RealSense ROS team for their consideration.

@SamerKhshiboun
Copy link
Collaborator

Readme was updated in #3056

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @SamerKhshiboun

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

4 participants