Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 49

Importing python packages into node files

$
0
0
I have set up my ROS package with the following layout: packagename CMakeLists.txt package.xml |- src/ |- packagename/ |- __init__.py |- package_file.py |- scripts/ |- node_file.py And in `node_file.py`, I'd like to be able to do from packagename import package_file But I get `cannot import name package file`. Am I laying this out correctly? How do I make my python package visible to `node_file.py`? I am using ROS Hydro in Ubuntu 12.04 LTS.

Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>