Robotics StackExchange | Archived questions

ImportError: No module named msg

I get an error on the title. So I want you to help me

I made custom messages accordingly http://wiki.ros.org/en/ROS/Tutorials/CreatingMsgAndSrv However, an error has occurred and custom messages can not be used. myworspace / devel / lib / python 2.7 / dist-packages / myros / msg There was msg that I made (Mymsg.py). I started python from the command line and executed the following. from myros.msg import mymsg This has succeeded However after running catkinmake, running it with rosrun will result in an error. I want advice

Asked by hamada on 2018-10-04 00:29:16 UTC

Comments

Have you correctly modified your CMakeLists.txt and package.xml ? If you can edit your question to add those files it could help us. Also if you want to check if your message has been correctly created you should find it in the list of the command : rosmsg list

Asked by Delb on 2018-10-04 01:03:30 UTC

Answers