rosrun 之后tab补偿代码,terminator崩溃.

解决方案

该问题有可能是ros部分文件丢失,尝试在现有基础上重新覆盖安装ros.

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

sudo apt-get update

sudo rosdep init  

rosdep update

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc

source ~/.bashrc

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

如果rosdep init 出现如下错误:

ERROR: default sources list file already exists:
	/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize

根据提示删除:

sudo rm -r /etc/ros/rosdep/sources.list.d/20-default.list

ros安装:
http://wiki.ros.org/kinetic/Installation/Ubuntu
https://answers.ros.org/question/204753/weird-logs-when-using-tab-completion-on-rosrun/

你可能感兴趣的:(ros遇到的问题)