Giter Site home page Giter Site logo

Comments (35)

annb3 avatar annb3 commented on August 20, 2024 1

I have the same problem in Humble both in 20.04 and in 22.04 Ubuntu versions.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on August 20, 2024 1

Thanks very much for the reports. I have highlighted it to my Intel RealSense colleagues.

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024 1

I would go for that.

from realsense-ros.

jerinbenny avatar jerinbenny commented on August 20, 2024 1

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

Screenshot from 2024-06-19 13-34-33

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024 1

Ok, I am backed before this PR, waiting for the stable one in Debian.
Thanks a lot for the support @SamerKhshiboun.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on August 20, 2024

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

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

I am already into the development branch :( @MartyG-RealSense I try to do additional verifications.

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

@MartyG-RealSense I try to uninstall and install again everything. Nothing changes. Same problem also with Jetson installation, linked only to Debian modality.

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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

image

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

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..
Screenshot from 2024-06-18 15-48-51

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

can you screenshot your git log output ?

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

Screenshot from 2024-06-18 15-55-09
Of course: here it is!

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

please run these 2 commands and screenshot the outputs:

dpkg -l | grep realsense
ldconfig -p | grep realsense

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

Screenshot from 2024-06-18 16-03-29

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

then please retry colcon build your ROS2 workspace.

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

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*?

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

Nothing is solved. Same issue.
Screenshot from 2024-06-18 16-51-06

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

Screenshot from 2024-06-19 10-07-03
Here the errors

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

did you install the newest code like this ?

cd librealsense
mkdir build
cmake ..
make -j 4
sudo make install

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

I have followed the guidelines: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md switching into the development branch.

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

please print the output of this command from your ros working space:
grep '2\.5' ./build/realsense2_camera/CMakeFiles/realsense2_camera.dir/build.make

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

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?
Screenshot from 2024-06-19 11-57-33

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

try edit the realsense-ros/realsense2_camera/CMakeLists.txt

image

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

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

no way :( It continues installing the 2.55 version

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

You need the latest librealsense2/development branch to be available inside the docker.
You can do this in two different ways I think:

  • expose the installed librealsense2.56 to the docker (might required advanced docker commands and understanding..)
  • run the docker, and reinstall (make + make install) librealsense2/development from source inside it, then rerun colcon build.

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

yes, already done way 2, this morning, without apparently success.
I'll try again in some hours.

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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)

from realsense-ros.

annb3 avatar annb3 commented on August 20, 2024

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.

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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

from realsense-ros.

SamerKhshiboun avatar SamerKhshiboun commented on August 20, 2024

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.

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on August 20, 2024

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

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on August 20, 2024

Case closed due to no further comments received.

from realsense-ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.