——————<INDEX>———————


출처

Including a Python module in a ROS2 package - ROS Answers: Open Source Q&A Forum

요약 :

  1. setup.py의 packages=[’<package_name>’‘<package_name>/<sub_dir_name>’/ …]
  2. entry_points의 executer는 <package_name>.<sub_dir(module)_name>.<file_name>:main

Including a Python module in a ROS2 package edit

asked Dec 16 '20

edesta51 ●2 ●2 ●4

Hey you all I have been scratching at my head for a solid day trying to figure out why this is proving to be such a problem.

So i have a python ROs2 package. Inside my package i have a node trying to reference a submodule i have included. It keeps saying there is no module in package. I have tried to look at the setup.py file and still have had no luck trying to add it as part of the path.