ROS报错处理(3)RLException: [display_mrobot_chassis_urdf.launch] is neither a launch file in package [mro

问题:

roslaunch mrobot_description display_mrobot_chassis_urdf.launch

但是红色报错:

RLException: [display_mrobot_chassis_urdf.launch] is neither a launch file in package [mrobot_description] nor is [mrobot_description] a launch file name
The traceback for the exception was written to the log file

解决:

首先我认为打开终端的位置错了,原本在~/catkin_ws/src/ros_exploring-master/robot_mrobot/mrobot_description/launch打开的终端,于是到~/catkin_ws打开终端,再次执行了运行launch文件的指令,可以打开launch文件了,但是有报错和警告如下:

[WARN] [1721288956.380755]: The 'use_gui' parameter was specified, which is deprecated.  We'll attempt to find and run the GUI, but if this fails you should install the 'joint_state_publisher_gui' package instead and run that.  This backwards compatibility option will be removed in Noetic.
[ERROR] [1721288956.382017]: Could not find the GUI, install the 'joint_state_publisher_gui' package
[joint_state_publisher-2] process has died [pid 78660, exit code 1, cmd /opt/ros/melodic/lib/joint_state_publisher/joint_state_publisher __name:=joint_state_publisher __log:=/home/hrj/.ros/log/3ab06ec8-44da-11ef-ae93-000c29b49a7a/joint_state_publisher-2.log].
log file: /home/hrj/.ros/log/3ab06ec8-44da-11ef-ae93-000c29b49a7a/joint_state_publisher-2*.log
================================================================================REQUIRED process [rviz-4] has died!
process has finished cleanly
log file: /home/hrj/.ros/log/3ab06ec8-44da-11ef-ae93-000c29b49a7a/rviz-4*.log
Initiating shutdown!
================================================================================

猜测是因为没有gui的package,于是安装:(这里melodic换成自己的版本!)

sudo apt-get install ros-melodic-joint-state-publisher-gui

就可以打开文件了,也有gui界面了,但是还有黄色警告。

参考方案:https://blog.csdn.net/qq_39400324/article/details/125011497?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522172128899716800184159430%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=172128899716800184159430&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-2-125011497-null-null.142^v100^pc_search_result_base5&utm_term=Could%20not%20find%20the%20GUI%2C%20install%20the%20joint_state_publisher_gui%20package&spm=1018.2226.3001.4187

在display_mrobot_chassis_urdf.launch这个文件中所有的joint_state_publisher用joint_state_publisher_gui替换掉,记得保存。警告也消失了!

  • 7
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一路相送

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值