![]() Related: For the Cpp version of this tutorial, check out how to import a Cpp header from another ROS package. In this case you’ll also have issues when trying to import the module from your node. Ex: your node is in scripts/ and your Python module in src/package_name/, inside the same package. Note: this tutorial also works when you put all Python files in the same package, but in different folders. Not successful, getting an error such as “ImportError: No module named another_package.module_to_import”. ![]() If you’re here, you might have already tried but were In another package, import the previously created module and use it.Install this Python module in your ROS environment.Create a package which contains a Python module. ![]() Tools, helper functions, utils, or other stuff like that, you may want to be able to write the code once in this package, and then be able to import it in any other package you create.Īt the end of this tutorial you’ll be able to: If you have a package which contains some common Install the Python module in your ROS environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |