当前位置: 代码迷 >> 综合 >> 【ROSGAZEBO】解决“is neither a launch file in package ”的问题
  详细解决方案

【ROSGAZEBO】解决“is neither a launch file in package ”的问题

热度:30   发布时间:2023-11-21 21:26:27.0

这两天有小伙伴问到在安装完rotors后出现如下问题:
请添加图片描述

这个问题其实是ros环境没有配置好,运行下面的命令,将catkub_ws加入ros的工作空间

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace  # initialize your catkin workspace
wstool initcd ~/catkin_ws/
catkin init  # If you haven't done this before.
catkin build
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

一定要提前初始化catkin_ws和配置环境

再运行下面命令,可以找到rotors包,就说明没有问题了

rospack find rotors_gazebo

参考:https://blog.csdn.net/zhelijun/article/details/88868993

喜欢的朋友可以点个赞,关注微信公众号相互交流:Reed UAV
在这里插入图片描述

  相关解决方案