Skip to content

ARG-NCTU/arg_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arg_utils

Python package mangement in ros package example

Put your python moudle into /include/for_example/ or new a folder inside include.

Add a add_path.py where your main code want to be.

Then code like this...

If you want to new a python module, just add the following code to your add_path.py

sys.path.append(
    os.path.join(os.path.dirname(os.path.abspath(__file__)),
                 '<path>'))

and make sure your < path > is pointing correctly to your python package.

testing python package

after runing the docker

$ cd ~/LoCoBot-RSA/low_cost_ws/src/rostest_example/scripts/
$ pytest test_import_me.py
$ python3 testing_pypkg_from_arg_utils.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •