ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

WARNING: TexturedBackground (PROTO): Cannot download

asked 2022-07-02 13:57:49 -0600

adroit.levees.0r gravatar image

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:
image description
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

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2022-07-12 09:36:16 -0600

ygoumaz gravatar image

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.

edit flag offensive delete link more

Comments

1

I'm sorry for late reply. I updated ros2 and the error disappeared.

adroit.levees.0r gravatar image adroit.levees.0r  ( 2022-08-20 13:06:10 -0600 )edit

Thank you, needed this for use with rolling.

Levinin gravatar image Levinin  ( 2022-09-05 09:39:56 -0600 )edit
0

answered 2022-07-02 18:16:36 -0600

ljaniec gravatar image

Maybe it is a problem on the side of Webots installation?

https://www.cyberbotics.com/doc/guide...

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.

edit flag offensive delete link more
0

answered 2022-07-04 01:49:53 -0600

updated 2022-07-04 02:32:48 -0600

ljaniec gravatar image

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.

edit flag offensive delete link more

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...

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

adroit.levees.0r gravatar image adroit.levees.0r  ( 2022-07-10 14:48:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-07-02 13:57:49 -0600

Seen: 1,170 times

Last updated: Jul 12 '22