Skip to content

Commit

Permalink
refactor: Change ROS 2 import of Python library
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Feb 17, 2024
1 parent 107e7be commit 38802b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Type "help", "copyright", "credits" or "license" for more information.
>>> driver.shutdownMotor()
```

In case you installed the package through ROS 2 the package name will be `myactuator_rmd` instead of `myactuator_rmd_py`.
In case you installed the package through ROS 2 the shared library will be inside the `myactuator_rmd` package so you need to import with `from myactuator_rmd.myactuator_rmd_py import Driver`.

For more information you might also inspect the contents of the module inside Python 3 with `help(myactuator_rmd_py)`.

Expand Down
2 changes: 1 addition & 1 deletion myactuator_rmd/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from myactuator_rmd.myactuator_rmd_py import *
from myactuator_rmd import myactuator_rmd_py

0 comments on commit 38802b1

Please sign in to comment.