ROS中 ERROR: cannot launch node of type [joint_state_publisher/joint_state_publisher]: joint_state_pu

ROS中 ERROR: cannot launch node of type [joint_state_publisher/joint_state_publisher]: joint_state_publisher

)

问题如下

ERROR: cannot launch node of type [joint_state_publisher/joint_state_publisher]: joint_state_publisher
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/fulei/ares/src
ROS path [2]=/opt/ros/melodic/share

问题原因

原因是缺少依赖包robot_state_publisher

解决方法

我的是ubuntu18.04,ros版本为melodic

终端输入:
sudo apt-get install ros-melodic-robot-state-publisher

如果提示定位不到的话,建议检查一下ros的源,原因大部分是源不对,或者再添加一遍密钥就行了。

sudo sh -c 'echo "deb https://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

最后更新一下

sudo apt-get update
  • 5
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 11
    评论
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值