IntelRealSense / realsense-ros

ROS Wrapper for Intel(R) RealSense(TM) Cameras
http://wiki.ros.org/RealSense
Apache License 2.0
2.43k stars 1.71k forks source link

"package 'realsense2_camera' not found #3142

Open alonsnir opened 6 days ago

alonsnir commented 6 days ago

Required Info
Camera Model D435
Firmware Version 5.14.0
Operating System & Version Linux (Ubuntu 22)
Kernel Version (Linux Only) 6.5.0-41-generic
Platform PC
Librealsense SDK Version 2.2
Language python
Segment Robot
ROS Distro Humble

"package 'realsense2_camera' not found

Option 2: Install librealsense2 (without graphical tools and examples) debian package from ROS servers (Foxy EOL distro is not supported by this option):

sudo apt install ros-humble-librealsense2*

Then the error:

ros2 launch realsense2_camera rs_launch.py depth_module.depth_profile:=1280x720x15 rgb_camera.color_profile:=1280x720x15 align_depth.enable:=True
Package 'realsense2_camera' not found: "package 'realsense2_camera' not found, searching: ['/opt/ros/humble']"
MartyG-RealSense commented 6 days ago

Hi @alonsnir Is this the same problem that you described at https://github.com/IntelRealSense/realsense-ros/issues/3139#issuecomment-2191631794 please or a different issue?

alonsnir commented 1 day ago

Hi @MartyG-RealSense it's sort of the same, as that's the same hardware spec, but I'm trying to get it to work with the default Ubuntu 22.04 kernels 6.5, so the OS setup is different

MartyG-RealSense commented 1 day ago

sudo apt install ros-humble-librealsense2* should install the current latest 2.55.1 version of the librealsense SDK from the rOS server. 2.55.1 supports kernel 6.5.

I note that the camera firmware driver version listed at the top of this case is 5.14. That firmware was designed for librealsense version 2.53.1. If you have librealsense 2.55.1 installed then your firmware driver needs to be 5.16.0.1.

alonsnir commented 1 day ago

I suggest to ignore camera firmware at this point, as I get this error when, intentionally, no camera been connected. See Step 2, Option 2, same is Step 3, option 1 after completing all three steps librealsense and the the wrapper should be installed, while I'm getting that error message:

ros2 launch realsense2_camera rs_launch.py depth_module.depth_profile:=1280x720x15 rgb_camera.color_profile:=1280x720x15 align_depth.enable:=True
Package 'realsense2_camera' not found: "package 'realsense2_camera' not found, searching: ['/opt/ros/humble']"
MartyG-RealSense commented 17 hours ago

When installing with the sudo apt install method, only the two installation instructions below should be used after the Ubuntu sources have been configured with the instructions at http://wiki.ros.org/Installation/Ubuntu/Sources

1. Install librealsense2 sudo apt install ros-humble-librealsense2*

2. Install ROS2 wrapper sudo apt install ros-humble-realsense2-*


Source code and apt package builds of librealsense should not be made on the same computer, as you could end up with more than one librealsense installation, with conflicts between the two.