-
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
No GPU usage on jetson xavier NX #2326
Comments
So after removing a previous installation (
|
Hi @Camilochiang It is a known issue that align and pointcloud can have problems such as heavy FPS lag or missing color on Jetson boards specifically. The problem does not usually occur on non-Jetson computers such as desktop and laptop PCs. #1967 discusses the Jetson pointcloud problem, though the align problem began at around the same time. A couple of RealSense ROS users in that case resolved the pointcloud issue using librealsense 2.43.0 and wrapper 2.2.23 - as described at #1967 (comment) - so it may be worth trying that configuration to see whether it resolves the align problem too, since it began at around the same time as the pointcloud problem. Currently, using the older configuration described in #1967 (comment) is the best known solution. In regard to the error undefined symbol: _ZN2cv3MatC1Ev, if you have built the ROS wrapper from source then can you make sure that you have ddynamic_reconfigure installed by using the command below, please:
|
Hei @MartyG-RealSense . Yes, I had the I retry with the following configuration and no success. Error undefined symbol: _ZN2cv3MatC1Ev still present
Specs:
|
Something that call my attention is that meanwhile installing opencv from source all libraries were installed to
Meanwhile when installing the ros-wrapper with
I suspect that manually coping that file to |
Okay, please do let me know how your manual file-copying goes. |
Camilochiang Maybe I found a solution try adding/modifying to CMakeLists in realsense2_camera. Now im testing this solution but it looks promising. (even work with -DFORCE_RSUSB_BACKEND:=false):
|
Thanks so much @koralm for sharing your possible solution with @Camilochiang and the RealSense ROS community :) |
Hei @MartyG-RealSense . The suggested solution from @koralm did the trick. I guess that should also work with more recent versions but so far is working (more than 15 aligned FPS) in:
|
It's excellent to hear that the solution of @koralm worked for you - thanks very much for the update! |
Hello @Camilochiang and @MartyG-RealSense. I'm facing the same problem but using ROS Galactic, I can change the firmware and the librealsense versions you say, but what about the 2.2.23 wrapper version in ROS2? |
Hi @edgarcamilocamacho The 2.2.23 wrapper is for ROS1. The equivalent ROS2 wrapper for matching to SDK 2.43.0 is 3.1.5 but ROS2 Galactic support was not introduced until wrapper 3.2.2 which is designed for matching with SDK 2.48.0. |
Thanks, @MartyG-RealSense. I am using that one right now, and modified the CMakeList to accept galactic. Just some problems with TF naming, but after manually setting them it is working. It can be a temporal solution while one the 3.X.X or 4.X.X version is fixed. |
Thanks so much @edgarcamilocamacho for sharing your workaround solution for ROS2 with the RealSense ROS community! |
I tried this and I'm getting the same symbol issue error. I'm using an AGX Orin. Does anyone have any ideas? Here's my cmakelists: Click to expand/collapsecmake_minimum_required(VERSION 2.8.3) find_package( OpenCV REQUIRED ) option(BUILD_WITH_OPENMP "Use OpenMP" OFF) add_definitions(-D_CRT_SECURE_NO_WARNINGS) find_package(catkin REQUIRED COMPONENTS if(BUILD_WITH_OPENMP) if(SET_USER_BREAK_AT_STARTUP) if (WIN32) if(NOT realsense2_FOUND) if(NOT CMAKE_BUILD_TYPE) string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) if (WIN32) add_message_files( add_service_files( generate_messages( set(CMAKE_NO_SYSTEM_FROM_IMPORTED true) RealSense ROS Nodecatkin_package( add_library(${PROJECT_NAME} add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_generate_messages_cpp) target_include_directories(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME} if(WIN32) Install nodelet libraryinstall(TARGETS ${PROJECT_NAME} Install header filesinstall(DIRECTORY include/realsense2_camera Install launch filesinstall(DIRECTORY launch/ Install rviz filesinstall(DIRECTORY rviz/ Install xml filesinstall(FILES nodelet_plugins.xml EDIT: Perhaps I was a bit hasty to complain. However, this problem comes and goes for whatever reason. Sometimes it works, sometimes it doesn't. I have no idea why. Though, it only started to kind of work after I made this OpenCV modification. Any ideas? |
why this not included by default? |
Hei. I recently move to a jetson xavier NX and tried to use GPU to get better results of alignment, but after checking with jtop there is 0 GPU usage and the aligned topic only give 1.5 FPS, meanwhile color and depth give the right values (in this case 15 FPS)
Here my steps:
Specs:
I check This question but not sure why it may be failing. Any suggestions people? @MartyG-RealSense ?
The text was updated successfully, but these errors were encountered: