vortexntnu / em7180-ros-driver

ROS package for the EM7180 IMU
0 stars 3 forks source link

Change package name to import em7180.msg #9

Open droter opened 5 years ago

droter commented 5 years ago

Hi,

I am getting this error when launching DriverNode.py: Traceback (most recent call last): File "/home/ubuntu/catkin_ws/src/em7180/scripts/DriverNode.py", line 37, in from em7180.msg import Ximu ImportError: No module named msg

There are two imports with the same name: from em7180 import EM7180_Master from em7180.msg import Ximu

I changed the package name and it is working now.

Not sure if it is better to change the package name or library? Do you have a preference?

Matt

ghese commented 5 years ago

What you did is probably the better way of doing it. Although practically it's all the same. The package name probably got altered at some point when someone else in the team needed to change it for some other practical reason. Likely related to integrating em7180 to their solution at the time.