-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
I run the roslaunch realsense2_camera rs_camera.launch and this error pop up... #2216
Comments
I am currently use Ubuntu18.04 and ros-melodic, realsense-sdk 2.42.2 and realsense-ros 2.2.22 |
Hi @leowang19 There was a previous case of this set of errors in IntelRealSense/librealsense#6451 (comment) where the errors disappeared after updating the librealsense SDK and RealSense ROS wrapper version. Which method did you use to install the librealsense SDK and ROS wrapper, please? Did you build the SDK and librealsense separately, or install them together from packages with the wrapper's Method 1 installation process, please? If librealsense and the ROS wrapper are built separately then librealsense must be installed first and the wrapper secondly afterwards. If librealsense and the wrappr are built separately, whenever librealsense is updated then the wrapper must be built again afterwards. |
Dear MartyG, Sorry for being late. I just reviewed all the detailed processes.
This is actually a weird issue because my ROS wrapper has been working well since April 2021, and it suddenly failed recently. Consolidate compiler generated dependencies of target realsense2_camera |
The possible reason for the recent failure that I can think of is that I modified some settings in software & updates. This may affect some software sources? I am not sure how would this affect my working Librealsense and Ros wrapper tbh. |
BTW, I can give a shot with the solution that you mentioned in the previous post, which is to update both Realsense SDK and Ros-wrapper. I am wondering do I need to do a clean uninstall of Librealsense with: Then recompile from source? Then find and recompile the matched Realsense-ros. Please let me know your thoughts, really appreciate ur time and efforts. Cheers |
If you previously built librealsense from source code then yes, go to the build folder of librealsense that you created when originally installing the SDK and perform sudo make uninstall && make clean to uinstall librealsense and clean the CMake cache. If librealsense was built from Debian packages instead of built from source code then you can uninstall all librealsense packages with the instruction below.
Once librealsense is successfully installed then build the correct match of RealSense ROS wrapper from source code. You could alternatively build the librealsense SDK and ROS wrapper together at the same time from packages using the ROS wrapper's Method 1 instructions. https://github.com/IntelRealSense/realsense-ros#method-1-the-ros-distribution I am not familiar with Ubuntu's Software & Updates interface as I am primarily a Windows user, so I do not have advice regarding how changes in that interface might affect librealsense or the ROS wrapper. I have not heard it mentioned in the past in relation to RealSense problems. |
Hi @leowang19 Do you require further assistance with this case, please? Thanks! |
I am facing the same issue mentioned above. I am on librealsense 2.48 and I'm trying to build realsense-ros from source release 2.3.1. When I tried deleting source code and installing the debian package, it works. However, when I run the cameras, the computer freezes and I have to ultimately power-cycle it. Fixed |
Hi @mm-nasr Thanks so much for the update about your solution and sharing it with the RealSense ROS community! |
@MartyG-RealSense @mm-nasr Sorry for late, I will try this solution and close this issue for now. Really appreciate the help! |
You are very welcome, @leowang19 - thanks very much for the update! |
just to add on. Worked on this issue yesterday. It works by a clear uninstallation of Librealsense, and reinstalling the latest Librealsense V2.50 + Realsense 2.3.2. The new Librealsense was installed from source code. |
@leowang19 I'm very pleased to hear that a clean install resolved your problem. @mm-nasr Thanks again for your advice in this case! |
[ERROR] [1641735761.239121470]: Failed to load nodelet [/camera/realsense2_camera] of type [realsense2_camera/RealSenseNodeFactory] even after refreshing the cache: Failed to load library /home/wx/livox_ws/devel/lib//librealsense2_camera.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = librealsense2.so.2.48: cannot open shared object file: No such file or directory)
[ERROR] [1641735761.239194405]: The error before refreshing the cache was: Failed to load library /home/wx/livox_ws/devel/lib//librealsense2_camera.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = librealsense2.so.2.48: cannot open shared object file: No such file or directory)
[FATAL] [1641735761.239454208]: Failed to load nodelet '/camera/realsense2_camera
of type
realsense2_camera/RealSenseNodeFactoryto manager
realsense2_camera_manager'[camera/realsense2_camera-3] process has died [pid 21570, exit code 255, cmd /opt/ros/melodic/lib/nodelet/nodelet load realsense2_camera/RealSenseNodeFactory realsense2_camera_manager __name:=realsense2_camera __log:=/home/wx/.ros/log/038aa71e-7152-11ec-b7ee-9cb6d0610e2f/camera-realsense2_camera-3.log].
log file: /home/wx/.ros/log/038aa71e-7152-11ec-b7ee-9cb6d0610e2f/camera-realsense2_camera-3*.log
The text was updated successfully, but these errors were encountered: