geturin / OAFD_Monocular

Master Thesis
MIT License
49 stars 8 forks source link

problem when running slam.launch ( Gtk-ERROR **: 16:37:00.038: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported) #11

Closed DigitalDungeon01 closed 6 months ago

DigitalDungeon01 commented 6 months ago

Loading ORB Vocabulary. This could take a while... Traceback (most recent call last): File "/home/arief/FYPworkspaces/catkin_ws_OAFD/src/OAFD_Monocular/src/get_odom.py", line 5, in import ros_numpy File "/opt/ros/noetic/lib/python3/dist-packages/ros_numpy/init.py", line 7, in from . import point_cloud2 File "/opt/ros/noetic/lib/python3/dist-packages/ros_numpy/point_cloud2.py", line 224, in def get_xyz_points(cloud_array, remove_nans=True, dtype=np.float): File "/home/arief/.local/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr Traceback (most recent call last): File "/home/arief/FYPworkspaces/catkin_ws_OAFD/src/OAFD_Monocular/src/depthmap_calibration.py", line 9, in raise AttributeError(__former_attrs__[attr]) from simple_tf import * AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations File "/home/arief/FYPworkspaces/catkin_ws_OAFD/src/OAFD_Monocular/src/simple_tf.py", line 6, in

import ros_numpy

File "/opt/ros/noetic/lib/python3/dist-packages/ros_numpy/init.py", line 7, in from . import point_cloud2 File "/opt/ros/noetic/lib/python3/dist-packages/ros_numpy/point_cloud2.py", line 224, in def get_xyz_points(cloud_array, remove_nans=True, dtype=np.float): File "/home/arief/.local/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr raise AttributeError(former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations [pcd_pub-2] process has died [pid 10928, exit code 1, cmd /home/arief/FYPworkspaces/catkin_ws_OAFD/src/OAFD_Monocular/src/depthmap_calibration.py name:=pcd_pub log:=/home/arief/.ros/log/46d8b71c-1a6b-11ef-9e37-8949fe58c0f8/pcd_pub-2.log]. log file: /home/arief/.ros/log/46d8b71c-1a6b-11ef-9e37-8949fe58c0f8/pcd_pub-2*.log [odom_pub-3] process has died [pid 10929, exit code 1, cmd /home/arief/FYPworkspaces/catkin_ws_OAFD/src/OAFD_Monocular/src/get_odom.py __name:=odom_pub log:=/home/arief/.ros/log/46d8b71c-1a6b-11ef-9e37-8949fe58c0f8/odom_pub-3.log]. log file: /home/arief/.ros/log/46d8b71c-1a6b-11ef-9e37-8949fe58c0f8/odom_pub-3*.log Vocabulary loaded!

Creation of new map with id: 0 Creation of new map with last KF id: 0 Seq. Name:

Camera Parameters:

ORB Extractor Parameters:

geturin commented 6 months ago

For the numpy issue, my environment had numpy version 1.17.4 at that time. You can try rolling back to this version or modify the code to change the deprecated np.datatype. For the GTK issue, you can refer to this:

https://github.com/thien94/orb_slam3_ros_wrapper/issues/19 https://github.com/UZ-SLAMLab/ORB_SLAM3/issues/286

It looks like you need to recompile OpenCV

DigitalDungeon01 commented 6 months ago

https://github.com/Mauhing/ORB_SLAM3/blob/master/README.md i follow this in order to build openCV package but use opencv 4.4.0

just follow this instructions : https://github.com/thien94/orb_slam3_ros_wrapper/issues/16#issuecomment-1234179588

for the numpy, i downgrade the version to version 1.17.4

then all good! thank you sir for your help !