introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.83k stars 787 forks source link

Consistent Segfault on rtabmap-noEventsExample #1367

Open iamrebecca opened 3 weeks ago

iamrebecca commented 3 weeks ago

I'm using MacBook Pro, M1, 2020 and am trying to run the ./rtabmap-noEventsExample 20 2 10 stereo_20Hz stereo_20Hz stereo_20Hz/left stereo_20Hz/right and all I get out of the response is:

Odometry update rate = 10 Hz
Map update rate = 1 Hz
[1]    79584 segmentation fault  ./rtabmap-noEventsExample 20 2 10 stereo_20Hz stereo_20Hz stereo_20Hz/left 

When I try to run it on lldb, it just keeps. printing the help message

$ lldb -- ./rtabmap-noEventsExample 20 2 10 stereo_20Hz stereo_20Hz stereo_20Hz/left
(lldb) target create "./rtabmap-noEventsExample"
Current executable set to '/Users/rebecca/Downloads/rtabmap/build/bin/rtabmap-noEventsExample' (arm64).
(lldb) settings set -- target.run-args  "20" "2" "10" "stereo_20Hz" "stereo_20Hz" "stereo_20Hz/left"
(lldb) run
Process 81183 launched: '/Users/rebecca/Downloads/rtabmap/build/bin/rtabmap-noEventsExample' (arm64)

Usage:
rtabmap-noEventsExample camera_rate odom_update map_update calibration_dir calibration_name path_left_images path_right_images
Description:
    camera_rate          Rate (Hz) of the camera.
    odom_update          Do odometry update each X camera frames.
    map_update           Do map update each X odometry frames.

Example:
     (with images from "https://github.com/introlab/rtabmap/wiki/Stereo-mapping#process-a-directory-of-stereo-images") 
     $ rtabmap-noEventsExample 20 2 10 stereo_20Hz stereo_20Hz stereo_20Hz/left stereo_20Hz/right
       Camera rate = 20 Hz
       Odometry update rate = 10 Hz
       Map update rate = 1 Hz
Process 81183 exited with status = 1 (0x00000001)

Any help here would be appreciated.

matlabbe commented 3 weeks ago

How did you build it on mac? Following https://github.com/introlab/rtabmap/wiki/Installation#source ? If so, I may retry here again in case the dependencies changed and are now causing issues.

You may also do:

brew install rtabmap