当前位置:   article > 正文

解决cannot launch node of type [robot_state_publisher/robot_state_publisher]: robot_state_publish_error: cannot launch node of type [robot_state_pub

error: cannot launch node of type [robot_state_publisher/robot_state_publish

问题显示如下:

ERROR: cannot launch node of type [robot_state_publisher/robot_state_publisher]: robot_state_publisher
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/wxw/catkin_ws/src
ROS path [2]=/opt/ros/kinetic/share

 

解决:这是robot_state_publisher包缺失导致的问题

我是kinetic版本的ros,使用此代码安装:

sudo apt-get install ros-kinetic-robot-state-publisher

如果显示无法定位此文件,则重新填一遍秘钥

  1. sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  2. sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

记住之后一定要更新一下软件包索引

sudo apt-get update

 

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/90342
推荐阅读
相关标签
  

闽ICP备14008679号