ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ImportError: No module named msg - standard ROS message

asked 2019-06-10 04:48:22 -0500

Hypomania gravatar image

Hi,

I am trying to use geodesypackage https://github.com/ros-geographic-inf...

I have installed the stack using apt-get.

I can include the messages in .cpp files however in Python I get this:

import rospy
import geodesy.utm

rospy.init_node('gd_test')

Results in:

Traceback (most recent call last):
  File "gd_test.py", line 2, in <module>
    import geodesy.utm
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/geodesy/utm.py", line 54, in <module>
    from geographic_msgs.msg import GeoPoint
ImportError: No module named msg

I don't see setup.py in geodesy package, could it be possible that the Python environment is not set up right? Can this package be used as a standard package or do I have to clone it into my catkin_ws?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-10 05:09:53 -0500

Hypomania gravatar image

Solved by adding rospy in package.xml and CMakeLists.txt.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-06-10 04:48:22 -0500

Seen: 1,627 times

Last updated: Jun 10 '19