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

How to make ROS Indigo work with Gazebo 4? [closed]

asked 2014-08-28 09:34:55 -0500

rmoreno gravatar image

Hi,

I have been trying to make ROS Indigo work with Gazebo 4.0.0 so I installed a full desktop ROS (ros-indigo-desktop-full) first on a fresh Ubuntu 14.04.1 LTS (Trusty Tahr) and then installed Gazebo 4.0.0 (Online Install). Both seem to work fine by themselves but when I try to install:

sudo apt-get install ros-indigo-gazebo-ros-pkgs ros-indigo-gazebo-ros-control

I get the following error:

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:
 ros-indigo-gazebo-ros-control : Depends: gazebo2 but it is not going to be installed
                                 Depends: libsdformat1 but it is not going to be installed
                                 Depends: ros-indigo-gazebo-ros but it is not going to be installed
 ros-indigo-gazebo-ros-pkgs : Depends: ros-indigo-gazebo-plugins but it is not going to be installed
                              Depends: ros-indigo-gazebo-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

What could the problem be? Do I have to use a different version of Gazebo?

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by rmoreno
close date 2016-07-28 18:15:49.513526

9 Answers

Sort by ยป oldest newest most voted
5

answered 2014-08-28 12:00:54 -0500

Airuno2L gravatar image

If you scroll down to "Project Status" on this page, you'll see that Gazebo 2.2 is the recommended version to use with ROS Indigo (ROS I).

edit flag offensive delete link more

Comments

Thanks Airuno2L do I need to remove Gazebo 4 to install Gazebo 2.2? how can I completely remove Gazebo 4 from Ubuntu?

rmoreno gravatar image rmoreno  ( 2014-08-28 13:13:22 -0500 )edit

As mentioned here, try:sudo apt-get remove gazebo4

Airuno2L gravatar image Airuno2L  ( 2014-08-28 14:09:44 -0500 )edit
4

answered 2014-08-31 21:41:30 -0500

Rick Armstrong gravatar image

I ran into the same issue attempting to install ros-indigo-gazebo-ros: I'd previously been working through the Gazebo tutorials and had installed Gazebo 4, per the instructions. Then came to realize that Indigo needs Gazebo 2, as explained here. As a previous post mentioned, you need to remove Gazebo 4 and install Gazebo 2:

sudo apt-get remove gazebo4
sudo apt-get install libsdformat1
sudo apt-get install gazebo2

Not sure if the second step was actually necessary; I was just chasing the dependency warnings. Hope that helps.

Rick

edit flag offensive delete link more

Comments

Hi, I uninstalled gazebo4 using "sudo apt-get remove gazebo4" and then tried to install gazebo2 by following the tutorials on the gazebo homepage but ran into a similar dependency problem so I actually reinstalled Ubuntu and ROS and realized that gazebo2 is already installed with ROS.

rmoreno gravatar image rmoreno  ( 2014-09-02 06:51:15 -0500 )edit
2

answered 2014-09-02 06:25:01 -0500

peci1 gravatar image

This is what I see in my Ubuntu 14.04:

~$ dpkg -s ros-indigo-gazebo
ros-indigo-gazebo4-msgs
ros-indigo-gazebo4-plugins
ros-indigo-gazebo4-prerelease-msgs
ros-indigo-gazebo4-prerelease-plugins
ros-indigo-gazebo4-prerelease-ros
ros-indigo-gazebo4-prerelease-ros-control
ros-indigo-gazebo4-prerelease-ros-pkgs
ros-indigo-gazebo4-ros
ros-indigo-gazebo4-ros-control
ros-indigo-gazebo4-ros-pkgs
ros-indigo-gazebo-msgs
ros-indigo-gazebo-plugins
ros-indigo-gazebo-ros
ros-indigo-gazebo-ros-control
ros-indigo-gazebo-ros-pkgs

So it seems there are some indigo-gazebo4 packages. Did you try that (like apt-get remove ros-indigo-gazebo-* && apt-get install ros-indigo-gazebo4-*)?

I don't wanna try and hassle my own system, though, so sorry for I haven't tried that before posting the answer.

edit flag offensive delete link more
1

answered 2015-04-11 07:17:15 -0500

Mos gravatar image

It should be possible , follow below link:

http://gazebosim.org/tutorials/?tut=r...

edit flag offensive delete link more
0

answered 2016-05-18 10:32:06 -0500

Mr. Kro gravatar image

updated 2016-05-18 10:44:14 -0500

Maybe you should run ROS indigo with gazebo2.

They say ROS indigo works best with gazebo2, which is difficult to install because of dependency. It requires libsdformat-dev (and therefore libsdformat1) that has version >=1.4.11-1 but <2.0.0 which is almost unable to satisfy. However I found those versions of those dependencies that perfectly matches and allow you to install gazebo2.

https://launchpad.net/ubuntu/trusty/a...

https://launchpad.net/ubuntu/trusty/a...

However remember to remove the existing updated versions of those libraries before installing packages above:

sudo apt-get remove libsdformat-dev
sudo apt-get remove libsdformat1

Otherwise Ubuntu Software Center would tell you about dependency problems and won't allow you to install.

After installing the 2 libs above you can now install gazebo2 which is supposed to work best with ROS indigo.

sudo apt-get install gazebo2
sudo apt-get install ros-indigo-desktop-full
edit flag offensive delete link more
0

answered 2014-11-22 16:12:47 -0500

John Nagle gravatar image

I had a similar problem, but just installing Gazebo 2 per the directions.

I'd had Gazebo running on Ubuntu 12.04 LTS. I wanted to upgrade Ubuntu to 14.04. The Ubuntu upgrade failed, due to a package conflict in ROS/Gazebo. (Ref: https://bugs.launchpad.net/ubuntu/+so... ). So I had to uninstall ROS/Gazebo to upgrade Ubuntu. The Ubuntu upgrade went fine.

Then I tried to re-install ROS/Gazebo, following the directions at "http://wiki.ros.org/indigo/Installation/Ubuntu".

This produced errors: ... (Reading database ... 95% (Reading database ... 100% (Reading database ... 311085 files and directories currently installed.) Preparing to unpack .../libsdformat1_1.4.11-1ubuntu0.1_amd64.deb ... Unpacking libsdformat1:amd64 (1.4.11-1ubuntu0.1) ... dpkg: error processing archive /var/cache/apt/archives/libsdformat1_1.4.11-1ubuntu0.1_amd64.deb (--unpack): trying to overwrite '/usr/share/sdformat/1.4/projector.sdf', which is also in package sdformat 1.4.11-1~precise dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../libsdformat-dev_1.4.11-1ubuntu0.1_amd64.deb ... Unpacking libsdformat-dev:amd64 (1.4.11-1ubuntu0.1) ... dpkg: error processing archive /var/cache/apt/archives/libsdformat-dev_1.4.11-1ubuntu0.1_amd64.deb (--unpack): trying to overwrite '/usr/include/sdformat-1.4/sdf/SDFImpl.hh', which is also in package sdformat 1.4.11-1~precise Errors were encountered while processing: /var/cache/apt/archives/libsdformat1_1.4.11-1ubuntu0.1_amd64.deb /var/cache/apt/archives/libsdformat-dev_1.4.11-1ubuntu0.1_amd64.deb Error in function: dpkg: dependency problems prevent configuration of gazebo2: gazebo2 depends on libsdformat-dev (>= 1.4.11-1osrf1); however: Package libsdformat-dev:amd64 is not installed. gazebo2 depends on libsdformat-dev (<< 2.0.0); however: Package libsdformat-dev:amd64 is not installed.

dpkg: error processing package gazebo2 (--configure): dependency problems - leaving unconfigured

This put the package manager into an endless loop of trying to repair, failing to repair, and asking to try to repair again. I had to reboot and do "apt-get remove gazebo2" to get the package system into a valid state again.

Now what?

edit flag offensive delete link more
0

answered 2015-01-19 15:40:23 -0500

DevonW gravatar image

Do you need Gazebo 4 for your project? What project, and to what extent do yo need to use the features that are exclusively in Gazebo 4?

edit flag offensive delete link more

Comments

@DevonW, I too need to use Gazebo4 and Indigo. Gazebo4 is for DRC. What are the steps that need to be taken to upgrade Indigo functionality from Gazebo 2.2 to Gazebo 4.0?

Juan gravatar image Juan  ( 2015-02-11 01:45:06 -0500 )edit
0

answered 2015-09-27 02:14:02 -0500

130s gravatar image

updated 2017-01-09 08:26:31 -0500

As in the link @Mos provided, Gazebo team provides a way to have newer version (Gazebo6 here) side-by-side with Gazebo2.x, which was announced here.

UPDATE; Looks like no side-by-side installation is possible yet with the method in the link above.

UPDATE2: Using Gazebo of the higher version than 2.x on Indigo is an FAQ. See Migration Note for ROS Indigo.

edit flag offensive delete link more
-1

answered 2015-01-19 09:45:50 -0500

I actually would need to install Gazebo 4 for running the DRCsim demo : http://gazebosim.org/tutorials?tut=dr... but when I follow the tutorial, it requires to remove ros-indigo-desktop-full to install the package drcsim. Anyone manage to get that working ? (I'm using Ubuntu 14.04 and ROS Indigo)

edit flag offensive delete link more

Comments

2

Better to ask this as a separate question rather than as an answer. No one will likely see it here.

Airuno2L gravatar image Airuno2L  ( 2015-02-02 03:35:02 -0500 )edit

I made work Gazebo 2 with DRCsim 3.2, I looked and tried versions until it worked. I hope it helps. To remove Gazebo 4 you can use --purge and then install with 'sudo apt-get install ros-indigo-gazebo-ros'.

lizyazpin gravatar image lizyazpin  ( 2016-07-27 09:31:11 -0500 )edit

Question Tools

4 followers

Stats

Asked: 2014-08-28 09:34:55 -0500

Seen: 11,459 times

Last updated: Jan 09 '17