美文网首页
2018-01-05:如何下载Gazebo模型并安装

2018-01-05:如何下载Gazebo模型并安装

作者: ShapeYourself | 来源:发表于2018-01-05 09:14 被阅读0次

参考文献

wget -l 2 -nc -r "http://models.gazebosim.org/" --accept gz

cd models.gazebosim.org

for i in *
do
  tar -zvxf "$i/model.tar.gz"
done

cp -vfR * "$HOME/.gazebo/models/"

或者直接写成.sh脚本执行:
gazebo_models.sh

#!/bin/sh

# Download all model archive files
wget -l 2 -nc -r "http://models.gazebosim.org/" --accept gz

# This is the folder into which wget downloads the model archives
cd "models.gazebosim.org"

# Extract all model archives
for i in *
do
  tar -zvxf "$i/model.tar.gz"
done

# Copy extracted files to the local model folder
cp -vfR * "$HOME/.gazebo/models/"

相关文章

网友评论

      本文标题:2018-01-05:如何下载Gazebo模型并安装

      本文链接:https://www.haomeiwen.com/subject/andjnxtx.html