ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2020-12-17 23:07:26 -0500 | received badge | ● Famous Question (source) |
2016-01-29 02:57:32 -0500 | received badge | ● Notable Question (source) |
2015-09-10 01:26:04 -0500 | received badge | ● Popular Question (source) |
2015-09-09 08:19:13 -0500 | answered a question | custom messages fail to import in python Addition to the src folder, there is another folder called custom_msgs and under custom_msgs there is a subfolder called msg. When I run the rosmsg ($rosmsg show baroSample.msg), I get back the correct response. In the src folder, there are three python files (mtdef.py, mtdevice.py, mtnode.py). When I run mtdevice.py ($rosrun xsens_driver mtdevice.py), I get back the data from IMU and streaming on the screen. When I run the mtnode.py ($rosrun xsens_driver mtnode.py), the following error occurs: Traceback (most recent call last) File ...mtnode.py, line 14, in <module> from custom_msgs.msg import baroSample ImportError: No moduled named custom_msgs.msg github adreeses of the driver: https://github.com/xsens/xsens_mti_ro... besides, I did google the problem, but I could not find the solution or hint. |
2015-09-09 07:22:54 -0500 | asked a question | 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? |