当前位置:网站首页>【问题解决】新版webots纹理等资源文件加载/下载时间过长
【问题解决】新版webots纹理等资源文件加载/下载时间过长
2022-06-26 15:19:00 【None072】
环境: WSL2 + Ubuntu 22.04 + ROS2 + Webots-2022b
前言:
Webots 在 2021a 版本后为了缩小文件大小,将纹理、声音等资源文件设置成通过网络下载。然而这对大陆用户非常不友好,在使用时的加载时间通常非常漫长。以下是我搜集到的解决方法。
参考:
https://www.bilibili.com/read/cv14807701?spm_id_from=333.999.0.0
https://blog.csdn.net/sunlianglong/article/details/98469382
以及官方GitHub留言
解决方法一:
方法比较简单,但不好用,适合应急,所以不多赘述。
在终端中输入
sudo gedit /etc/hosts
添加以下内容
151.101.84.133 raw.githubusercontent.com
151.101.76.133 raw.githubusercontent.com
199.232.28.133 raw.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
保存并关闭即可
解决方法二:
首先先去 GitHub 克隆 webots 到本地
git clone https://github.com/cyberbotics/webots.git
在我的电脑中,下载到了此路径\\wsl.localhost\Ubuntu-22.04\home\zhouhr\downloads
然后,在终端中输入以下内容来开启一个简易的http服务
sudo python3 -m http.server 80
在浏览器中进入网址 http://localhost ,可以看到如下画面
在VS Code里选择打开 webots 的项目文件夹,路径一般为\usr\local\webots\projects
然后查找https://raw.githubusercontent.com/cyberbotics/webots/你的版本号/
全部替换成http://http://localhost/downloads/webots/,注意,这里要替换成你的webots路径
替换后 ,如果直接保存通常会报错,这是权限的问题。
在终端中输入
sudo chown -R 你的用户名 你的projects路径如/usr/local/webots/projects
即可。
最后,让我们打开 webots ,发现下载资源文件只是瞬间的事情。
解决方法三:
在 Ubuntu 22.04 中推荐使用开发版 2022b,而不是稳定版 2022a。
注:实测不行,而且强烈不建议使用 2022b,bug非常多
边栏推荐
- [CEPH] cephfs internal implementation (I): Concept -- undigested
- Analysis of ble packet capturing debugging information
- High frequency interview 𞓜 Flink Shuangliu join
- Restcloud ETL extracting dynamic library table data
- Notes on brushing questions (19) -- binary tree: modification and construction of binary search tree
- Mr. Du said that the website was updated with illustrations
- [tcapulusdb knowledge base] Introduction to tcapulusdb data structure
- HR export data Excel VBA
- 数据库-完整性约束
- Compile configuration in file
猜你喜欢

1.会计基础--会计的几大要素(会计总论、会计科目和账户)

Applet: uniapp solves vendor JS is too large

【TcaplusDB知识库】TcaplusDB常规单据介绍

Analysis of ble packet capturing debugging information
![[CEPH] cephfs internal implementation (I): Concept -- undigested](/img/5c/ca666118848b4f3042b834fb79d27f.png)
[CEPH] cephfs internal implementation (I): Concept -- undigested
![[tcapulusdb knowledge base] Introduction to tcapulusdb general documents](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb general documents
![[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area

RestCloud ETL抽取动态库表数据实践
![[C language practice - printing hollow upper triangle and its deformation]](/img/56/6a88b3d8de32a3215399f915bba33e.png)
[C language practice - printing hollow upper triangle and its deformation]

粒子滤波 PF——在机动目标跟踪中的应用(粒子滤波VS扩展卡尔曼滤波)
随机推荐
Deployment of kubernetes' controller
Restcloud ETL resolves shell script parameterization
评价——TOPSIS
Database - integrity constraints
[graduation season · advanced technology Er] what is a wechat applet, which will help you open the door of the applet
MySQL数据库基本SQL语句教程之高级操作
Applicable and inapplicable scenarios of mongodb series
On which platform is it safe to buy shares and open an account? Ask for guidance
RestCloud ETL抽取動態庫錶數據實踐
[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction
Comparative analysis of restcloud ETL and kettle
一键分析硬件/IO/全国网络性能脚本(强推)
小程序:uniapp解决 vendor.js 体积过大的问题
【TcaplusDB知识库】TcaplusDB数据构造介绍
Sorted out a batch of script standard function modules (version 2021)
Sikuli automatic testing technology based on pattern recognition
Database - sequence
【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍
北京房山区专精特新小巨人企业认定条件,补贴50万
Unity C # e-learning (IX) -- wwwfrom