因为在安装ROS的时候用命令rosdep update老timeout,所以干脆写个无线循环的脚本,一直执行,安装好了我打断即可。

用while实现无限循环

try.sh

#!/bin/bash
while true
do
rosdep update
done
sh try.sh