panda_autograsp.functions.functions.download_model

panda_autograsp.functions.functions.download_model(model, model_output='/home/ricks/panda_autograsp_ws/src/panda_autograsp/src/models', download_script_path='/home/ricks/panda_autograsp_ws/src/panda_autograsp/gqcnn/scripts/downloads/models/download_models.sh')[source]

This function downloads the Pretrained CNN models that are used in the panda_autograsp package, when they are not yet present on the system.

Parameters:
  • model (str) – Name of the model you want to download.
  • model_output (str, optional) – Path to the folder in which you want to place the downloaded models, by default DEFAULT_MODELS_PATH
  • download_script_path (str, optional) – Path to the download description script, by default GQCNN_DOWNLOAD_SCRIPT_PATH
Returns:

Error code Description
0 Model download successfull.
1 Model name invalid.
2 Model download error.
3 Model unzip error.
4 Something else went wrong.

Return type:

int