当前位置:网站首页>【问题解决】新版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非常多
边栏推荐
- SQLite loads CSV files and performs data analysis
- Unity C # e-learning (VIII) -- www
- # 粒子滤波 PF——三维匀速运动CV目标跟踪(粒子滤波VS扩展卡尔曼滤波)
- [file] VFS four structs: file, dentry, inode and super_ What is a block? difference? Relationship-- Editing
- 【TcaplusDB知识库】TcaplusDB系统用户组介绍
- [tcapulusdb knowledge base] Introduction to tcapulusdb general documents
- 整理了一批脚本标准的函数模块(2021版)
- Beijing Fangshan District specialized special new small giant enterprise recognition conditions, with a subsidy of 500000 yuan
- Notes on brushing questions (19) -- binary tree: modification and construction of binary search tree
- RestCloud ETL抽取动态库表数据实践
猜你喜欢

Don't remove custom line breaks on reformat

HR export data Excel VBA

1. accounting basis -- several major elements of accounting (general accounting theory, accounting subjects and accounts)

Evaluate:huggingface评价指标模块入门详细介绍

【微信小程序】事件绑定,你搞懂了吗?
![[tcapulusdb knowledge base] Introduction to tcapulusdb data structure](/img/64/4d7ec393d8469cdadc89078a8cf4b1.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb data structure

A blog to thoroughly master the theory and practice of particle filter (PF) (matlab version)
![[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

评价——TOPSIS

【ceph】cephfs caps简介
随机推荐
Principle of TCP reset attack
JS events
[file] VFS four structs: file, dentry, inode and super_ What is a block? difference? Relationship-- Editing
Learning memory barrier
Unity C# 网络学习(九)——WWWFrom
学习内存屏障
音视频学习(三)——sip协议
How to handle 2gcsv files that cannot be opened? Use byzer
买股票通过券商经理的开户二维码开户资金是否安全?想开户炒股
Seurat to h5ad summary
Smoothing data using convolution
Function: crypto JS encryption and decryption
Using restcloud ETL shell component to schedule dataX offline tasks
Sikuli 基于图形识别的自动化测试技术
Particle filter PF - 3D CV target tracking with uniform motion (particle filter vs extended Kalman filter)
夏令营来啦!!!冲冲冲
【TcaplusDB知识库】TcaplusDB数据构造介绍
Restcloud ETL resolves shell script parameterization
【SNMP】snmp trap 介绍、安装、命令|Trap的发送与接收代码实现
PHP file upload 00 truncation