ImportError: No module named msg
I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed the instructions in the file, so the package.xml has the right dependencies. I also followed these answers on this similar questions: https://answers.ros.org/question/1057... and https://answers.ros.org/question/2716...
But i still get the following error:
Traceback (most recent call last):
File "/home/ubuntu/catkin_ws/src/pozyx_ros_examples/src/pozyx_node.py", line 7, in <module>
from pozyx_ros_examples.msg import DeviceRange, EulerAngles
ImportError: No module named msg
My package.xml and CMakeLists.txt are in gist: https://gist.github.com/kwint/09ab135...
I'm running lubuntu 16.04 on a raspberry pi.
.
├── CMakeLists.txt
├── __init__.py
├── msg
│ ├── DeviceRange.msg
│ ├── EulerAngles.msg
│ └── __init__.py
├── package.xml
└── src
├── pozyx_node.py
└── setup_nodes
└── pozyx_configuration.py
The weird thing is that when I run this package on my local computer it works perfectly (which runs ubuntu 16.04)
did you compile the package with
catkin_make
? This is required to generate the respective python modules/C++ headers...Yes I have, also source the setup.bash file