Harvard-REACT / WSR-Toolbox-cpp

Core C++ code repo for WSR toolbox with Cython wrapper.
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Segmentation fault during forward-backward matching #14

Closed ninja-hu closed 3 years ago

ninja-hu commented 3 years ago
============ Starting WSR module ==============
log [calculate_AOA_profile]: Parsing CSI Data 
Reading from file : 
/home/jadhav/REACT-Projects/WSR-Toolbox-Dataset/Dataset-2/Line-of-sight/1_RX_1_TX/2D_Trajectories/RX_SAR_robot_Position_Changing/RX_P1_TX_P0//csi_rx_2021-03-04_172904.dat
log [Utils]: file size : 221184
log [Utils]: Completed reading data packets
log [Utils]: Exiting CSI File Read
log [calculate_AOA_profile]: Neighbouring TX robot IDs count = 1
log [calculate_AOA_profile]: Detected MAC ID = 00:21:6A:3E:F5:7E, Packet count: = 965
log [calculate_AOA_profile]: Getting AOA profiles
log [calculate_AOA_profile]: =========================
log [calculate_AOA_profile]: Profile for RX_SAR_robot MAC-ID: 00:21:6A:53:89:D2, TX_Neighbor_robot MAC-ID: 00:21:6A:3E:F5:7E
Reading from file : 
/home/jadhav/REACT-Projects/WSR-Toolbox-Dataset/Dataset-2/Line-of-sight/1_RX_1_TX/2D_Trajectories/RX_SAR_robot_Position_Changing/RX_P1_TX_P0//csi_tx1_2021-03-04_172904.dat
log [Utils]: file size : 221184
log [Utils]: Completed reading data packets
log [Utils]: Exiting CSI File Read
log [calculate_AOA_profile]: Detected MAC ID = 00:21:6A:C5:FC:0, Packet count: = 965
log [calculate_AOA_profile]: Packets for TX_Neighbor_robot collected by RX_SAR_robot : 965
log [calculate_AOA_profile]: Packets for RX_SAR_robot collected by TX_Neighbor_robot : 0
log [calculate_AOA_profile]: Calculating forward-reverse channel product using Counter 
Segmentation fault (core dumped)
ninja-hu commented 3 years ago

This is the mac-id of the RX_SAR_robot robot collected by the TX_Neighbor_robot :

log [calculate_AOA_profile]: Detected MAC ID = 00:21:6A:C5:FC:0, Packet count: = 965

However, the one in config file is :

Profile for RX_SAR_robot MAC-ID: 00:21:6A:53:89:D2, TX_Neighbor_robot MAC-ID: 00:21:6A:3E:F5:7E
Reading from file

Correcting the mac-id in the config file fixes the issue

    "input_RX_channel_csi_fn":{
        "desc":"Reverse channel csi File stored on the RX robot which is performing 3D SAR",
        "value":{           
            "mac_id":"00:21:6A:C5:FC:0",
            "mac_id_val":"00:16:EA:12:34:56",
            "csi_fn":"/REACT-Projects/WSR-IROS-2021/DataSet/Dataset3-Multirobot-Counter-TDMA/0610/csi_rx_2021-06-10_115700.dat"
        }
    },