Closed b-adkins closed 1 day ago
I have the same problem in Humble both in 20.04 and in 22.04 Ubuntu versions.
Thanks very much for the reports. I have highlighted it to my Intel RealSense colleagues.
My colleagues responded that the ros2-development ROS wrapper now needs the development branch of librealsense rather than the master due to recent changes in the API.
https://github.com/IntelRealSense/librealsense/tree/development
I am already into the development branch :( @MartyG-RealSense I try to do additional verifications.
@MartyG-RealSense I try to uninstall and install again everything. Nothing changes. Same problem also with Jetson installation, linked only to Debian modality.
Hi @annb3, Are you sure you fetched and pulled latest changes from development ?
Make sure you are cloning the latest: git clone https://github.com/IntelRealSense/librealsense -b "development"
or run
git fetch origin
git pull
and make sure to rebuild again (if you are running your private fork, make sure to merge from upstream and rebuild)
These are the latest commits from today that you should see in your git log
Yes, I am sure :) @SamerKhshiboun I have uninstall and install again everything also to be sure enough.
Is there a way to be sure to have eliminate all the dependencies? I have done everything found online..
can you screenshot your git log
output ?
Of course: here it is!
please run these 2 commands and screenshot the outputs:
dpkg -l | grep realsense
ldconfig -p | grep realsense
As I see you have multiple librealsense2 version that were manually installed.
What I suggest is to run sudo make uninstall
from each ../librealsense/build
directory you have.
Or you can remove these files manually.
Make sure to have the latest (2.56) only
then please retry colcon build
your ROS2 workspace.
I don't have the builds anymore, as I have already run this command before.. so strange. Do you suggest to eliminate this file directly from /usr/local/lib/libreaslsense*
?
I would go for that.
Nothing is solved. Same issue.
can you please run these commands and print the output ?
source /opt/ros/humble/setup.bash
cd <your_ros_workspace>
rm -rf log/ install/ build/
colcon build
Here the errors
did you install the newest code like this ?
cd librealsense
mkdir build
cmake ..
make -j 4
sudo make install
I have followed the guidelines: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md switching into the development branch.
please print the output of this command from your ros working space:
grep '2\.5' ./build/realsense2_camera/CMakeFiles/realsense2_camera.dir/build.make
I'm still pretty sure that the current version that the ROS finds (even if it says 2.56) is not the latest compiled one.
Please retry to make install
and sudo make install
latest code of development
I am actually working on a docker environment and by default it doesn't take the version 2.56 of the pc but every time install again the 2.55 from the dipendencies of the realsense-ros package how can I fix it?
try edit the realsense-ros/realsense2_camera/CMakeLists.txt
change the numbers to 2.56.0
find_package(realsense2 2.56.0)
find_package(realsense2-gl 2.56.0)
then try to rebuild again with these steps:
source /opt/ros/humble/setup.bash
cd <your_ros_workspace>
rm -rf log/ install/ build/
colcon build
source ./install/setup.bash
no way :( It continues installing the 2.55 version
You need the latest librealsense2/development branch to be available inside the docker. You can do this in two different ways I think:
yes, already done way 2, this morning, without apparently success. I'll try again in some hours.
Anyway, I will submit a PR for updating the CMakeLists.txt to 2.56.0 since the realsense2_camera node needs the latest development branch [2.56] (which can be built only manually for now, because it is still not formally released to ROS apt)
Cloning these 2 repositories for sdk and wrapper and following the documentation,I got the no errors. librealsense sdk: git clone https://github.com/IntelRealSense/librealsense -b "development" ros2 wrapper : git clone https://github.com/IntelRealSense/realsense-ros.git -b ros2-development
The problem is that into the docker environment I encountered several problems in installing from build. The same in the Jetson. Is it possible to do it from Debian packages specifying the development installation of the librealsense2? I think it is the real problem.
There is still no formal release as Debian from our side to librealsense2 2.56 (the latest one we released into ROS apt is 2.55.1) You can work with earlier realsense-ros/ros2-development if you want, which can work with librealsense2 2.55.
cd realsense-ros
git checkout d1684b4e53111f5eb3237f76299e83a864ce929d
cd <your_ros_ws>
colcon build
or you can use the latest realsense2_camera released (4.55.1) from ROS apts
sudo apt install sudo apt install ros-humble-realsense2-camera
this way you don't need to colcon/build source code.
Ok, I am backed before this PR, waiting for the stable one in Debian. Thanks a lot for the support @SamerKhshiboun.
Hi @annb3 Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
Issue Description
In summary, some C++ types related to calibration are not found by the build system, and I believe that this commit has introduced a new dependency that needs to be either properly documented or registered for rosdep.
I experienced this error with the
HEAD
ofros2-development
,68473b
at time of reporting,d30980f8
(when PR #3125 was merged), andec8ef1
("support calib config read/write services"), but not the previous commit,d1684b
.I am working with an existing codebase that builds the realsense ROS2 node from scratch. I followed the instructions to install
realsense-ros
for Ubuntu 22.02 via apt, using theros-humble-librealsense2*
.The full error log: