Import external modules python3 and ROS2
Hi Guys,
I am quite new of ROS2 world. I am trying to develop a python node but I am addressing some issues importing external modules. In particular, I am using dynamixel-controller python module. While I am able to import the module in a python3 or a ros (1) node, I am not able to do the same in the ROS2 python node. I load the module in the following way:
from dynio import *
Running the code with ros2 run command, I received the "ModuleNotFoundError" error code. I have added the dependency to the package.xml file as well. I was wondering if there is a missing step in my approach.
I am using Ubuntu 20.04 with Foxy ROS2. strong text
Asked by pacifica on 2023-01-04 18:48:12 UTC
Comments