- To let the project know where is map and experiment folder, you need to set environment vairables:
NUPLAN_DATA_ROOT
,NUPLAN_DATA_ROOT
andNUPLAN_DATA_ROOT
First, we need to know the parent_dir of the downloaded NuPlan dataset, in the README example:
${HOME}/nuplan
The parent_dir
is ${HOME}
. In case your parent_dir
is something else, just replace the path with parent_dir
below:
export NUPLAN_DATA_ROOT="parent_dir/nuplan/dataset"
export NUPLAN_MAPS_ROOT="parent_dir/nuplan/dataset/maps"
export NUPLAN_EXP_ROOT="parent_dir/nuplan/exp"
For example, you can have
export NUPLAN_DATA_ROOT="$HOME/nuplan/dataset"
export NUPLAN_MAPS_ROOT="$HOME/nuplan/dataset/maps"
export NUPLAN_EXP_ROOT="$HOME/nuplan/exp"
-
Open your shell configuration file in
nano
.nano ~/.bashrc
-
Add the following lines (according to the example) at the end of the file:
export NUPLAN_DATA_ROOT="$HOME/nuplan/dataset" export NUPLAN_MAPS_ROOT="$HOME/nuplan/dataset/maps" export NUPLAN_EXP_ROOT="$HOME/nuplan/exp"
Save the changes by pressing Ctrl + O
, then press Enter to confirm the filename. Exit nano by pressing Ctrl + X
.
- Apply the changes by reloading the configuration file:
source ~/.bashrc