thien94 / orb_slam3_ros_wrapper

A ROS wrapper for ORB-SLAM3. Focus on portability and flexibility.
166 stars 76 forks source link

Gtk conflicting error #16

Closed ani-4nirudh closed 1 year ago

ani-4nirudh commented 1 year ago

Hello Thien, The command roslaunch orb_slam3_ros_wrapper orb_slam3_euroc_mono.launch is giving the following output:

(ORB-SLAM3: Current Frame:26263): Gtk-ERROR **: 19:39:01.227: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
[orb_slam3_mono-1] process has died [pid 26263, exit code -5, cmd /home/xxx/ros1_ws/devel/lib/orb_slam3_ros_wrapper/orb_slam3_ros_wrapper_mono /camera/image_raw:=/usb_cam/image_raw __name:=orb_slam3_mono __log:=/home/xxx/.ros/log/618a0dba-294d-11ed-acd5-79ec372d828f/orb_slam3_mono-1.log].
log file: /home/xxx/.ros/log/618a0dba-294d-11ed-acd5-79ec372d828f/orb_slam3_mono-1*.log
[ WARN] [1661967556.988548827]: No transform between frames /world and /camera available after 20.002753 seconds of waiting. This warning only prints once.

I tried searching for the answers for this gtk conflict, but haven't found anything useful. Another note, the ROS node for ORBSLAM3 viewer is working completely fine.

Any help would be appreciated. Thanks :)

thien94 commented 1 year ago

Hi @ani-4nirudh , I have not encountered this error before so I am not sure what is the real issue.

Firstly, maybe you can try to install gtk and gtk3 module sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

The issue might be related to opencv, as suggested in this discussion and this one. Hopefully you can find some helpful pointers from them.

ani-4nirudh commented 1 year ago

Hey @thien94, thanks for your reply. You were correct it seems, that there are some OpenCV compatibility issues. For the ORBSLAM_3 it is better to use release 4.4.0.

Another useful source, here.

So, I will go ahead and close this issue. Thanks again for all the help :)