ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.