如何处理rolaunch期间发生的RLException错误?

roslaunch抛出RLException

您好,我正在尝试遵循此tutorial

我遵循了教程中的所有说明,包括安装请求的软件包,直到2.5节

然后,当我输入以下oncommandomand行时,

roslaunch testbot_description testbot.launch 

我收到以下错误:

  

RLException:[testbot.launch]既不是包[testbot_description]中的启动文件,也不是[testbot_description]是启动文件名   对该异常的回溯已写入日志文件

我不知道这是怎么回事。有人可以帮我修复它吗?

<launch>
    <arg name="model" default="$(find testbot_description)/urdf/testbot.urdf" />
    <arg name="gui" default="True" />
    <param name="robot_description" textfile="$(arg model)" />
    <param name="use_gui" value="$(arg gui)" />
    <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"/>
    <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />
</launch>
  

RLException:[testbot.launch]既不是包[testbot_description]中的启动文件,也不是[testbot_description]是启动文件名   对该异常的回溯已写入日志文件

coollang12345 回答:如何处理rolaunch期间发生的RLException错误?

当您尚未获取已获取的 (source /opt/ros/MY_ROS_VERSION/setup.bash) 和编译的 (catkin_make) ROS 时,会发生这种情况。在您的 ROS 项目文件夹中,运行

source devel/setup.bash

在你roslaunch testbot_description testbot.launch 之前。 另见roslaunch: [ ] is neither a launch file in package [ ] nor is [ ] a launch file name

本文链接:https://www.f2er.com/3164630.html

大家都在问