Bootstrap

运行roslaunch turtle_tf turtle_tf_demo.launch时出现的问题记录

在学习ros的时候,运行小海龟的程序roslaunch turtle_tf turtle_tf_demo.launch时出现了

No module named ytml

的问题。

后续各种魔改安装,结果和

【ROS 踩坑记录】ImportError: No module named yaml - Introduction to tf_夏小正的鲜小海的博客-CSDN博客类似,一个个问题连续出现

但是我安装

sudo apt install python-is-python3

的时候会出现E:找不到不啦不啦的错误

出现

ImportError: dynamic module does not define module export function (PyInit__tf2)

错误的时候,按照ImportError: dynamic module does not define module export function (PyInit__tf2) - ROS Answers: Open Source Q&A Forum这里的说法应该是我的基本环境是Python3,但是melodic中使用Python2,我突然想到自己现在在conda的base环境中。

按照

如何删除、关闭anaconda的base环境_anaconda删除base环境_cvyoutian的博客-CSDN博客的方法关掉base环境中 使用which Python命令发现系统默认版本到了Python2.7

然后运行命令就可以正常运行了

;