Robotics StackExchange | Archived questions

How to install default packages?

I've installed ROS kinetic with gazebo8 by running :

sudo apt-get ros-kinetic-gazebo8-ros-pkgs

After the installation , I found this command won't install default packages, such as turtlesim,rviz, that kinetic-desktop-full version have.

I need these packages, but I don't know what these packages exactly are, and it's a huge work to install them one by one.

So, is there any way I can install all the default packages?

Thanks in advance.

----update----

It won't work to use:sudo apt-get install ros-kinetic-desktop-full

Reading package lists... Done
Building dependency tree       
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:
 ros-kinetic-desktop-full : Depends: ros-kinetic-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Asked by JohnBT on 2018-05-01 10:57:10 UTC

Comments

I tried running: rosdep install --from-paths src/ --ignore-src there is an error:

    ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install ros-kinetic-hector-gazebo-plugins] failed

Asked by JohnBT on 2018-05-01 11:02:04 UTC

@JohnBT: @PeteBlackerThe3rd is correct, that is how you would install "the rest" of ROS, provided you've followed the regular installation instructions.

rosdep install .. is only ever used if you're building from source, which you are not.

Asked by gvdhoorn on 2018-05-02 01:39:45 UTC

@gvdhoorn it seems that some dependencies are not compatible with Gazebo8....

Asked by JohnBT on 2018-05-03 03:22:55 UTC

desktop_full includes simulators which will depend on the default Gazebo version for Kinetic, which is 7.

You have two options:

  1. uninstall Gazebo 8 (and the related pkgs), then install desktop_full and then install Gazebo 8 (which will remove Gazebo 7)
  2. keep what you have ..

Asked by gvdhoorn on 2018-05-03 04:45:51 UTC

.. and install what desktop_full would install, but manually.

See REP-142 for what is contained in the metapackages. You could opt to install desktop, perception and urdf_tutorial using apt.

You might run into issues again though, but the ..

Asked by gvdhoorn on 2018-05-03 04:47:52 UTC

.. solution would be similar: figure out what is already installed and where that came from. Remove it or install only those parts that don't conflict.

Note also that the tutorial that you probably followed to install Gazebo 8 warned you about this (ie: possible conflicts).

Asked by gvdhoorn on 2018-05-03 04:48:35 UTC

I chose to uninstall gazebo8

Asked by JohnBT on 2018-05-10 09:53:14 UTC

Answers

sudo apt-get install ros-kinetic-desktop-full should do the trick.

Asked by PeteBlackerThe3rd on 2018-05-01 13:39:55 UTC

Comments

thanks, but this solution seems not to work. I've updated my question.

Asked by JohnBT on 2018-05-03 03:19:42 UTC