Skip to content

Running lego_loam_bag with Livox Mid-360 crashes with exit code -11 #48

@shimuajie

Description

@shimuajie

Dear Author,

It's my great honor to use your open-source navigation framework!

After recording a point cloud bag with the Livox Mid-360 lidar, I attempted to build a map by running:
ros2 launch lego_loam_bor lego_loam_bag_mid360.launch

No matter how I adjust the parameters, the process consistently crashes with the following error:
[ERROR] [lego_loam_bag-1]: process has died [pid 42516, exit code -11, cmd '/root/dddmr_navigation/install/lego_loam_bor/lib/lego_loam_bor/lego_loam_bag --ros-args --params-file /root/dddmr_navigation/install/lego_loam_bor/share/lego_loam_bor/config/loam_bag_mid360_config.yaml'].

I have also tried using point cloud bags from GitHub (official/test bags), but the same error persists.

Could you please provide some guidance or suggestions to resolve this issue?

Thank you very much for your time and help!

Here are my parameter settings.

bag_reader:
ros__parameters:
use_sim_time: true
bag_file_dir: "/root/bag8"
point_cloud_topic: "/livox/lidar"
odometry_topic: "/odom"
skip_frame: 2

lego_loam_ip:
ros__parameters:
use_sim_time: true
# leishen16
laser:
odom_type: "laser_odometry" #wheel_odometry/laser_odometry
baselink_frame: "base_link"
num_vertical_scans: 32
num_horizontal_scans: 1000
vertical_angle_bottom: -7.0 # degrees
vertical_angle_top: 52.0 # degrees
scan_period: 0.1 # seconds

imageProjection:
    segment_valid_point_num: 5
    segment_valid_line_num: 2
    segment_theta: 60.0                      # decrese this value may improve accuracy
    minimum_detection_range: 0.5
    maximum_detection_range: 100.0            # point cloud within this range will be used to project image
    distance_for_patch_between_rings: 1.0    # patch ground between rings within this range, i.e. ring0 and ring1 is smaller than 1 meter, patch them
    stitcher_num: 3                          # for non-repetitive scan lidar use 2~4 (i.e. mid360)
    trt_model_path: ""                       # provide trt engine for yolo
    projected_image_stack_size: 1            # Stack this number of image for yolo11n to inference as time elapsed yolo (only work when TRT is loaded)
    
    ground_fov_bottom: -0.2617994 # -15deg
    ground_fov_top: -0.087266 # -5deg
    ground_positive_start: 0.0
    ground_positive_stop: 3.1415926
    ground_negative_start: 0.0
    ground_negative_stop: -3.1415926

lego_loam_fa:
ros__parameters:
use_sim_time: true
featureAssociation:
edge_threshold: 0.1
surf_threshold: 0.1
nearest_feature_search_distance: 3.0

mapping:
    to_map_optimization: true

lego_loam_mo:
ros__parameters:
use_sim_time: true
mapping:

    distance_between_key_frame: 1.0
    angle_between_key_frame: 1.0

    enable_loop_closure: true

    surrounding_keyframe_search_num: 20
    history_keyframe_search_radius: 12.0
    history_keyframe_search_num: 5
    history_keyframe_fitness_score: 0.5
    
    ground_voxel_size: 0.3
    ground_edge_threshold_num: 50

bag8.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions