Hi, I'm using Ubuntu 18.04 and ROS melodic. I first got this error when I tried to import tf2_ros, and I followed this instruction to install the tf2_ros. Since the other packages have to be compiled using catkin build, I made some modifications. Below are commands I used to compile it for python3
After doing these, when I imported tf2_ros, I still get the same error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/yanjun/catkin_ws/src/geometry2/tf2_ros/src/tf2_ros/__init__.py", line 38, in <module>
from tf2_py import *
File "/home/yanjun/catkin_ws/src/geometry2/tf2_py/src/tf2_py/__init__.py", line 38, in <module>
from ._tf2 import *
ModuleNotFoundError: No module named 'tf2_py._tf2'
Hi, I'm using Ubuntu 18.04 and ROS melodic. I first got this error when I tried to import tf2_ros, and I followed this instruction to install the tf2_ros. Since the other packages have to be compiled using
catkin build
, I made some modifications. Below are commands I used to compile it for python3After doing these, when I imported tf2_ros, I still get the same error