Skip to content
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

3D Map is not loaded #690

Open
Everest829 opened this issue Feb 22, 2021 · 9 comments
Open

3D Map is not loaded #690

Everest829 opened this issue Feb 22, 2021 · 9 comments

Comments

@Everest829
Copy link

Everest829 commented Feb 22, 2021

hareware:jetson Xavier NX
OS:Ubuntu 18.04,ROS Melodic
Environment:CUDA 10.2.89 ; Opencv 4.4.0;ZED 2;ZED-SDK:ZED_SDK_Tegra_JP45_v3.4.0.run

I can't view the 3D Map generated when I launch the zed2.launch. The commands I executed are listed as follows:
$roslaunch zed_wrapper zed2.launch camera_model:=zed2;
$roslaunch rtabmap_ros rtabmap.launch rtabmap_args:="--delete_db_on_start" rgb_topic:=/zed2/zed_node/rgb/image_rect_color depth_topic:=/zed2/zed_node/depth/depth_registered camera_info_topic:=/zed2/zed_node/rgb/camera_info frame_id:=base_link approx_sync:=false visual_odometry:=false odom_topic:=/zed2/zed_node/odom.
Finally,the result I got is shown as in the figure.
Thanks in advance!
result

@matlabbe
Copy link
Member

Unfortunately, this is an issue with the jetpack with incompatible VTK versus Qt libraries. See #427

I recommend to use RVIZ instead for visualization on the jetson. If you are on many computers and you want to use rtabmapviz, you could launch rtabmapviz on a laptop.

@Everest829
Copy link
Author

I have followed the method #427 ,but I got a new question when I input the shell command _cmake -DVTK_Group_Qt=ON -DVTK_QT_VERSION=4 -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
I have remove all Qt5 related vtk libraries installed in /usr/lib/aarch64-linux-gnu,and I install qt4
qt

@matlabbe
Copy link
Member

Which VTK version is used? PCL/Rtabmap won't build with VTK>=9. It looks like cmake is looking for QtWebkit, which is not installed.

@Everest829
Copy link
Author

I built vtk 6.3.0 from source,but I couldn‘t make it.The Qt version I've installed is Qt5.I followed the method you recommended,then I uninstalled Qt5 and I installed Qt4 successfully。In Part2,I can not execut the last step Cmake. Error occured,
error1.
So The place occured error is commented out
comment
Finally,I executed '_cmake -DVTK_Group_Qt=ON -DVTK_QT_VERSION=4 -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..',I got the result
Uploading error2.png…

@matlabbe
Copy link
Member

Your error2.png failed to be uploaded

@matlabbe
Copy link
Member

matlabbe commented Nov 3, 2021

Another solution is to use the docker image, see https://github.com/introlab/rtabmap/wiki/Installation#rtab-map-desktop-ubuntu-1804-2004 (updated from this issue #776), the 3D Map view is working properly.

@YXH11111
Copy link

YXH11111 commented Apr 10, 2023

Have you ever been in this situation? I follow(https://github.com/introlab/rtabmap/wiki/Installation#rtab-map-desktop-ubuntu-1804-2004) .

root@robot-desktop:~# mkdir rtanmap3d
root@robot-desktop:~# cd rtabmap3d
root@robot-desktop:~/rtabmap3d# touch Dockerfile
root@robot-desktop:~/rtabmap3d# gedit Dockerfile
root@robot-desktop:~/rtabmap3d# docker build -t rtabmap3d .
Sending build context to Docker daemon  2.048kB
Step 1/5 : FROM introlab3it/rtabmap:bionic
 ---> 1af0d1efdfa7
Step 2/5 : ENV NVIDIA_VISIBLE_DEVICES     ${NVIDIA_VISIBLE_DEVICES:-all}
 ---> Running in efe9d8ec9c57
Removing intermediate container efe9d8ec9c57
 ---> 4ccac62f37c3
Step 3/5 : ENV NVIDIA_DRIVER_CAPABILITIES     ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
 ---> Running in b7548ffb38c0
Removing intermediate container b7548ffb38c0
 ---> ca036938154b
Step 4/5 : RUN mkdir -p /root/Documents/RTAB-Map
 ---> Running in df2799737116
Removing intermediate container df2799737116
 ---> 4e7e43c6b258
Step 5/5 : ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/tegra
 ---> Running in f0149eabcc12
Removing intermediate container f0149eabcc12
 ---> 0ae38ee7acf8
Successfully built 0ae38ee7acf8
Successfully tagged rtabmap3d:latest
root@robot-desktop:~/rtabmap3d#  export XAUTH=/tmp/.docker.xauth
root@robot-desktop:~/rtabmap3d#  touch $XAUTH
root@robot-desktop:~/rtabmap3d#  xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
root@robot-desktop:~/rtabmap3d# docker run -it --rm \
>    --privileged \
>    --env="DISPLAY=$DISPLAY" \
>    --env="QT_X11_NO_MITSHM=1" \
>    --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
>    --env="XAUTHORITY=$XAUTH" \
>    --volume="$XAUTH:$XAUTH" \
>    --runtime=nvidia \
>    --network host \
>    -v ~/Documents/RTAB-Map:/root/Documents/RTAB-Map \
>    rtabmap3d \
>    rtabmap
**docker: Error response from daemon: OCI runtime create failed: failed to create NVIDIA Container Runtime: failed to construct OCI spec modifier: failed to construct discoverer: failed to create Xorg discoverer: failed to locate libcuda.so: pattern libcuda.so.*.*.* not found: unknown**.

@matlabbe
Copy link
Member

Which computer are you using? the docker error contain cuda not found libraries, this is not rtabmap related.

@YXH11111
Copy link

YXH11111 commented Apr 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants