Gazebo | Ignition | Community
Ask Your Question

ljaniec's profile - activity

2022-11-19 06:09:47 -0500 received badge  Famous Question (source)
2022-11-15 15:14:57 -0500 marked best answer Ubuntu 22.04 and Gazebo Classic not working

Hello,

I upgraded Ubuntu 20.04 to the 22.04 version. I installed ROS2 Humble (sudo apt install ros-humble-desktop-full) and I wanted to use Gazebo Classic with Nav2 simulations, but I cannot use it - my packages have unmet dependencies, that I couldn't fix. Please hint me what I should do now.

My terminal logs:

  • When I tried normal sudo apt install gazebo:
ljaniec@ljaniec-PC:~$ gazebo

Command 'gazebo' not found, but can be installed with:

sudo apt install gazebo

ljaniec@ljaniec-PC:~$ sudo apt install gazebo

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:


The following packages have unmet dependencies:

 gazebo : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.12.0-1~focal is to be installed

E: Unable to correct problems, you have held broken packages.
  • When I tried sudo apt install ros-humble-gazebo-ros-pkgs:
ljaniec@ljaniec-PC:~$ sudo apt install ros-humble-gazebo-ros-pkgs 

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

 gazebo : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.12.0-1~focal is to be installed

 gz-tools2 : Conflicts: gazebo (>= 11.0.0) but 11.10.2+dfsg-1 is to be installed

 libgazebo-dev : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.12.0-1~focal is to be installed

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

ljaniec@ljaniec-PC:~$ sudo apt install libgazebo11

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

libgazebo11 is already the newest version (11.12.0-1~focal).

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Best Łukasz

2022-11-15 15:14:51 -0500 answered a question Ubuntu 22.04 and Gazebo Classic not working

This problem was resolved, description: https://github.com/gazebosim/gazebo-classic/issues/3277 # Check what is going t

2022-11-14 11:38:35 -0500 received badge  Notable Question (source)
2022-11-14 01:51:30 -0500 commented answer Which Gazebo versions Supported for Ubuntu 22.04(Jammy)

This solution with sudo apt install gazebo doesn't work for me (https://answers.gazebosim.org/question/28361/how-to-inst

2022-11-14 01:51:04 -0500 commented answer Which Gazebo versions Supported for Ubuntu 22.04(Jammy)

This solution doesn't work for me (https://answers.gazebosim.org/question/28361/how-to-install-gazebo-for-ubuntu-2204-wi

2022-11-13 23:29:04 -0500 received badge  Popular Question (source)
2022-11-12 20:58:07 -0500 asked a question Ubuntu 22.04 and Gazebo Classic not working

Ubuntu 22.04 and Gazebo Classic not working Hello, I upgraded Ubuntu 20.04 to the 22.04 version. I installed ROS2 Humbl

2022-03-20 20:28:01 -0500 marked best answer Services calls [/shadow_caster_material_name] and [/shadow_caster_render_back_faces] timed out, cannot use Gazebo

Setup: Ubuntu 20.04, ROS 2 Galactic, Gazebo (11.10.1-1~focal)

With the update to the gazebo11 (ver 11.10.1) in the last ROS 2 Galactic sync my launch files and Gazebo overall stopped working correctly (services are timed out).

After starting gazebo --verbose I got:

~$ gazebo --verbose
Gazebo multi-robot simulator, version 11.10.1
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
Gazebo multi-robot simulator, version 11.10.1
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.10.103
[Msg] Loading world file [/usr/share/gazebo-11/worlds/empty.world]
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.10.103
[Err] [Scene.cc:227] Service call[/shadow_caster_material_name] timed out
[Err] [Scene.cc:249] Service call[/shadow_caster_render_back_faces] timed out
[Wrn] [Scene.cc:462] Ignition transport [/scene_info] service call failed, falling back to gazebo transport [scene_info] request.

Reverting to the old version of Gazebo packages didn't help, but I am not sure if I did it correctly too (maybe I have missed some dependent ROS packages). I have used:

sudo apt-get install gazebo11=11.9.0-1~focal gazebo11-common=11.9.0-1~focal gazebo11-plugin-base=11.9.0-1~focal libgazebo11=11.9.0-1~focal libgazebo11-dev=11.9.0-1~focal

Gazebo and launcher still won't work even after that. I tried to reinstall everything, Gazebo, ROS2, my GPU drivers (latest recommended nvidia-driver-510).

It starts with empty.world scene, but any launcher (mine or from Nav2 repository and nav2_bringup package, branch" galactic, commit: 4bfedb8) cannot call any services.

When starting gzserver --verbose I am getting standard output, gzclient --verbose gives me every time the same timed-out error.

What is exactly happening? Does anybody have encountered this problem before? How can I solve it? Everything was working before...

I put this issue there already + I haven't found anything more than some issues of the problems with Ogre3d about this kind of services timing out...

There is my ogre.logtoo: https://controlc.com/9061c918

2022-03-20 20:28:01 -0500 received badge  Scholar (source)
2022-03-20 20:27:53 -0500 answered a question Services calls [/shadow_caster_material_name] and [/shadow_caster_render_back_faces] timed out, cannot use Gazebo

There was an update to the Gazebo 11 and luckily I found out what a solution - I had to reset the Firewall settings in U

2022-03-01 01:34:46 -0500 received badge  Famous Question (source)
2022-02-23 07:01:22 -0500 received badge  Notable Question (source)
2022-02-23 07:01:22 -0500 received badge  Popular Question (source)
2022-02-18 11:06:38 -0500 asked a question Services calls [/shadow_caster_material_name] and [/shadow_caster_render_back_faces] timed out, cannot use Gazebo

Services calls [/shadow_caster_material_name] and [/shadow_caster_render_back_faces] timed out, cannot use Gazebo Setup:

2021-12-28 05:37:45 -0500 received badge  Enthusiast