WARNING: TexturedBackground (PROTO): Cannot download
I'm following this tutorial: Setting up a robot simulation
And when I run the simulation, the textures are not loaded properly. Instead of a chess board I have this:
The warnings below are:
WARNING: CircleArena (PROTO) > BrushedAluminium (PROTO) > ImageTexture: Cannot download https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/appearances/protos/textures/brushed_aluminium/brushed_aluminium_base_color.jpg: Error opening https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/appearances/protos/textures/brushed_aluminium/brushed_aluminium_base_color.jpg
Although, the file https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/appearances/protos/textures/brushed_aluminium/brushed_aluminium_base_color.jpg
certainly exists - I can open it in the browser
Asked by adroit.levees.0r on 2022-07-02 13:57:49 UTC
Answers
Maybe it is a problem on the side of Webots installation?
https://www.cyberbotics.com/doc/guide/installation-procedure
Especially the part with adding the webots
repository. Can you open Webots and check the standard example projects to see if this problem exists there as well? This texture is used in many of the robot models.
It seems that the latest Webots build is still for the Ubuntu 20.04 (with ROS Foxy/Galactic), you are using Ubuntu 22.04 and ROS 2 Humble Hawksbill, right? I think this may be in a way a problem that you can address in an issue in the Webots team repository.
Asked by ljaniec on 2022-07-02 18:16:36 UTC
Comments
I believe this is a problem with libssl. Webots R2022a is linked against libssl version 1.1.1f which is not compatible with the one of Ubuntu 22.04 which is version 3.0.2. You can fix the problem by either:
Using the nightly build of Webots R2022b (which is compatible with Ubuntu 22.04).
Installing the version of libssl version 1.1.1f on your Ubuntu 22.04 (in the /usr/local/webots/lib/webots/ folder) which includes libcrypto.so.1.1 and libssl.so.1.1.
Recompiling Webots R2022a from the sources.
Downgrading to Ubuntu 20.04.
Asked by Olivier Michel on 2022-07-04 01:49:53 UTC
Comments
Sorry for late reply.
Installation of Webots R2022b didn't help (night build from GitHub).
Also, I can open Webots using webots
command in the terminal and examples I opened there are without errors.
I think my error happens because I installed Webots through sudo apt install ros-humble-webots-ros2-driver
(from tutorial) and it's not the same Webots as opened using webots
command.
Yes, I run Ubuntu 22.04 and ROS 2 Humble Hawksbill
UPD: Also, recomplining Webots-ROS from this instruction didn't help: https://github.com/cyberbotics/webots_ros2/wiki/Build-and-Install
UPD: I tried to install libssl version 1.1.1 (though not f, but q):
sudo cp -r /home/my_user/Downloads/openssl-1.1.1q/* /usr/local/webots/lib/webots
Also, I tried to install from make
. It didn't help, not sure I did as you expected
Asked by adroit.levees.0r on 2022-07-10 14:48:31 UTC
As explained by @Olivier Michel, it is probably a problem with libssl, so Webots R2022a is not directly compatible with Ubuntu 22.04.
You can still use the version installed automatically by ROS2 (located in $HOME/.ros/webotsR2022a/
), but you have to fix this one. I think you have fixed the one located in /usr/local/bin
, while ROS2 runs the other one.
To fix libssl for the ROS2 Webots installation, follow these steps:
wget https://cyberbotics.com/files/repository/dependencies/linux64/release/libssl_1.1.tar.xz -O /tmp/libssl_1.1.tar.xz
tar xvf /tmp/libssl_1.1.tar.xz -C /tmp
mv /tmp/openssl-1.1/* $HOME/.ros/webotsR2022a/webots/lib/webots/
$HOME/.ros/webotsR2022a/webots/lib/webots/
is the default installation path. Please verify that it is the same on your machine.
The next version of the webots_ros2
package will come with Webots R2022b and will fully support Ubuntu 22.04.
Asked by ygoumaz on 2022-07-12 09:32:58 UTC
Comments
I'm sorry for late reply. I updated ros2 and the error disappeared.
Asked by adroit.levees.0r on 2022-08-20 13:06:10 UTC
Thank you, needed this for use with rolling.
Asked by Levinin on 2022-09-05 09:39:56 UTC
Comments