ImportError: No module named <name>.msg

asked 2017-09-03 05:22:38 -0500

hvn gravatar image

updated 2017-09-03 09:26:06 -0500

Hi,

I've created my own package and added my own message file. First, both package name and message file were the same which gave no problem. Then I wanted to split the content of the message file into 2 message files, e.g. message.msg and message2.msg. Here, I started to get the mentioned error. Then, going through the tutorials I found that using the (almost) same name for both package and message wasn't a good idea. So I renamed the message files, changed the names in both CMakeLists.txt and the package and ran catkin_make, catkin_make install, source devel/setup.bash and tried to run the publisher and subscriber again. Again I got the ImportError. When I'm trying to get message info using "rosmsg package <packagename>" it is listed including both renamed messages and "rosmsg show <messagename>" shows the message and data in it as well. So what am I doing wrong?

hvn

edit retag flag offensive close merge delete