Toriyung

导航

ROS2:报错:package 'turtle_tf2_py' not found

在学习tf坐标变换的乌龟小实验中,运行乌龟仿真程序出现的报错

问题分析:原因还是没有先source一下

解决:首先

source /opt/ros/galactic/setup.bash

  然后再运行乌龟

ros2 launch turtle_tf2_py turtle_tf2_demo.launch.py

 

 参考:github上的一个老哥的回答

 

 

 

顺带一提,一开始CSDN一篇文章提出了这种解决方法,虽然没成功,但是以防万一以后可能会用到,这个方法思路是和python有关的

https://blog.csdn.net/qq_34994476/article/details/121932064

posted on 2024-05-12 21:02  Toriyung  阅读(42)  评论(0编辑  收藏  举报