ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The answer is obvious - relative imports in scripts are not supported. Put all the shared code into a proper Python package (my_pkg/src/my_pkg/module.py) and do from my_pkg import module in the script. Of course, catkin_python_setup() has to be called from CMakeLists.txt and setup.py has to be properly set up.