custom messages fail to import in python
I catkinized xsens_mti_ros_node package and did 'source devel/setup.bash'. Thete is no error message after comping the package. Probably compiled correctly because I can call the messages in the folder of custom_msgs.msg. With running the file of mtdevice.py, i can see the stream of mti-g-700. However, I get the following error when I run the package (mtnode.py). Error: ImportError: No module named custom_msgs.msg I have wasted a couple of days but I could not solve the problem. How can I figure this out?
What do you mean by "call the messages in the folder of..."? And "when I run the package (mtnode.py)"? And I suggest you Google the error message you got; there are several similar question threads some of which might give you a hint.