This is the main working code and model for TerraPN, the paper found here: https://ieeexplore.ieee.org/document/9981942
-
Install ROS Melodic.
-
Setup the conda environment using terrapn.yaml inside the conda folder.
-
Setup RGB image stream from a camera. outdoor_dwa contains the ros callback function to subscribe to images, and velocities from the robot's odometry and output a "surface costmap".
-
Run outdoor_dwa.py within the terrapn conda environment.
-
The training code, and associated txt files needed to read the dataset can be found in the model folder along with the network model.
-
Our dataset to train a new model can be found here.
- Go to the terrapn package
- Please install Nvidia container runtime if it is not already installed here
- Run the following command for RTX 20** GPUs (might work on other GPUs as well)
sudo docker build -t terrapn --build-arg conda_file=terrapn -f terrapnDockerfile .
- Run the following command for a series GPUs
sudo docker build -t terrapn --build-arg conda_file=terrapn-a -f terrapnDockerfile .
- Run the following command
sudo docker run -it --net=host --runtime=nvidia --gpus=all terrapn
python scripts/dataset_preparation.py /path/to/bagfile --show
Without Images -
python scripts/dataset_preparation.py /path/to/bagfile