Melodic
1、错误信息是这样的
[WARN] [1582867522.390661]: 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] [1582867522.392212]: Could not find the GUI, install the 'joint_state_publisher_gui' package
[joint_state_publisher-2] process has died [pid 9056, exit code 1, cmd /opt/ros/melodic/lib/joint_state_publisher/joint_state_publisher __name:=joint_state_publisher __log:=/home/vtas/.ros/log/b6cbe59e-59ea-11ea-b2f1-84ef181f5770/joint_state_publisher-2.log].
log file: /home/vtas/.ros/log/b6cbe59e-59ea-11ea-b2f1-84ef181f5770/joint_state_publisher-2*.log
信息提示安装“joint_state_publisher_gui”
sudo apt-get install ros-melodic-joint-state-publisher-gui
无法下载软件包
参考:http://answers.ros.org/question/325039/apt-update-fails-cannot-install-pkgs-key-not-working/
就是把密钥换了,具体方法如下:
1、删除旧密钥
sudo apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116
2、安装新密钥
sudo -E apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
3、最后执行两个命令安装
sudo apt update
sudo apt-get install ros-melodic-joint-state-publisher-gui
提示安装成功了
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
ros-melodic-joint-state-publisher-gui 已经是最新版 (1.12.15-1bionic.20200821.031217)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 467 个软件包未被升级。
启动launch文件
roslaunch mbot_description display_mbot_base_urdf.launch
出现需要的插件
————————————————
参考:http://answers.ros.org/question/325039/apt-update-fails-cannot-install-pkgs-key-not-working/
https://blog.csdn.net/L___1/article/details/108340277
版权声明:本文为m0_55708655原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。