andrefdre / Dora_the_mug_finder_SAVI

Dora The Mug Finder: Detection and classification of items placed on top of a table using point cloud processing and neural networks.
GNU General Public License v3.0
5 stars 1 forks source link

Change structure of the files #17

Closed andrefdre closed 1 year ago

andrefdre commented 1 year ago

When I saw codes on the internet, they always have the main files, that will be executed, under the scripts folder and the files that are imported are under src folder. When I tried to import the code to the main file, I used the code:

from dora_the_mug_finder_bringup.src.model import Model

But it always said that the package dora_the_mug_finder_bringup doesn't exist. In the tutorials they always mention to have a file called init.py under the src path but still wasn't able to import files.

This is a nice thing to implement in the future, but not important

andrefdre commented 1 year ago

After searching more about this, we need to add the next line to the bashrc:

export PYTHONPATH="$PYTHONPATH:/home/andre/catkin_ws/src/Dora_the_mug_finder_SAVI"