python workspace structuring
I am currently struggling to setup a python ros workspace.. I've been following this guide
http://duckietown.mit.edu/media/pdfs/...
and my src folder looks like this
src
├── CMakeLists.txt -> /opt/ros/indigo/share/catkin/cmake/toplevel.cmake
└── service
├── CMakeLists.txt
├── include
│ └── service
│ ├── __init.py__
│ └── util.py
├── package.xml
├── setup.py
└── src
└── publisher.py
When i run rosrun service publisher.py i get the error message:
line 5, in <module>
from service import util
ImportError: cannot import name util
setup.py
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['service'],
package_dir={'': 'include'},
)
setup(**setup_args)