From 38802b1419569b034921dfb86361133efe3057df Mon Sep 17 00:00:00 2001 From: Tobit Flatscher <53856473+2b-t@users.noreply.github.com> Date: Sat, 17 Feb 2024 00:45:16 +0000 Subject: [PATCH] refactor: Change ROS 2 import of Python library --- ReadMe.md | 2 +- myactuator_rmd/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index 5392e1a..0410bfe 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -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)`. diff --git a/myactuator_rmd/__init__.py b/myactuator_rmd/__init__.py index 697558c..a6ba185 100644 --- a/myactuator_rmd/__init__.py +++ b/myactuator_rmd/__init__.py @@ -1 +1 @@ -from myactuator_rmd.myactuator_rmd_py import * +from myactuator_rmd import myactuator_rmd_py