Import shared library of SampleUffMaskRCNN in a ros node

Description

i want to setup a ros node for inference of the sample maskrcnn of the tensorrt git repo, the SampleUffMaskRCNN is by default built as an executable, allowing for inference via terminal, i built this as a shared library and hope to add it into the ros node

Environment

TensorRT Version: 8.2
GPU Type: 1650Ti
Nvidia Driver Version: 470
CUDA Version: 11.4
CUDNN Version: 8.2
Operating System + Version: ubuntu 20
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files

Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)

Steps To Reproduce

Please include:

  • Exact steps/commands to build your repro
  • Exact steps/commands to run your repro
  • Full traceback of errors encountered

Hi,
Please refer to the below link for Sample guide.

Refer to the installation steps from the link if in case you are missing on anything

However suggested approach is to use TRT NGC containers to avoid any system dependency related issues.

In order to run python sample, make sure TRT python packages are installed while using NGC container.
/opt/tensorrt/python/python_setup.sh

In case, if you are trying to run custom model, please share your model and script with us, so that we can assist you better.
Thanks!