Commit 46a45959 authored by Nafis A Abeer's avatar Nafis A Abeer
Browse files

set up mono script, it needs to be modified with Zanes new phone image directory

parent 58fee5d8
Loading
Loading
Loading
Loading
(6 KiB)

File changed.

No diff preview for this file type.

run_vslam_mono.sh

0 → 100644
+29 −0
Original line number Diff line number Diff line
#!/bin/bash

# Define the script that runs the VSLAM implementation
MATLAB_SCRIPT="/src/main/java/vslam/vslam_implementation_rgbd.m"

# Check if the correct number of arguments was provided
if [ "$#" -ne 1 ]; then
    echo "Usage: $0 {tum_rgbd_dataset|imperial_college_london}"
    exit 1
fi

# Determine which dataset to use based on the argument provided
if [ "$1" = "tum_rgbd_dataset" ]; then
    DATASET_NAME="tum_rgbd_dataset"
elif [ "$1" = "imperial_college_london" ]; then
    DATASET_NAME="imperial_college_london"
else
    echo "Invalid dataset name. Choose either 'tum_rgbd_dataset' or 'imperial_college_london'"
    exit 2
fi

# Navigate to the MATLAB script directory (assuming MATLAB can be called from command line)
cd src/main/java/vslam

# Run the MATLAB script with the dataset path
matlab -batch "vslam_implementation('${DATASET_NAME}')"

echo "VSLAM processing complete"
(6 KiB)

File changed.

No diff preview for this file type.

(6 KiB)

File changed.

No diff preview for this file type.

(8 KiB)

File changed.

No diff preview for this file type.

Loading