Robotics StackExchange | Archived questions

Cannot import custom message

Hi all,

I am having a really trivial problem. I defined a .msg file under mypackage/msg and I did everything to the package.xml and the CMakeLists.txt file that the tutorial says. I rebuilt the package and then proceeded to code.

In my python code, i have

from mypackage.msg import my_msg

and i receive the error:

ImportError: No module named mypackage.msg

I checked the the PYTHONPATH environment variable, and it was looking for something under /devel/lib/python2.7/dist-packages but that directory does not exist.

Any suggestions?

Asked by Robocop87 on 2013-12-07 18:23:38 UTC

Comments

Answers