Ask Your Question

package installation

asked 2020-11-17 16:14:13 -0500

hank880907 gravatar image

Hi there,

I am using ROS noetic on a ubuntu 20.04.1.

I am new to ROS and I am so confused about the package installation. For example, if I want to install the robot localization package, Do I just git clone it using the following command into my workspace?

$git clone -b noetic-devel

I notice that package can be install through apt, but how can I know that apt command for the package I want?

edit retag flag offensive close merge delete



sudo apt-get install ros-neotic-robot-localization

Usually, I do sudo apt-get install ros-neotic-robot and then search the available packages using tab.

praskot gravatar image praskot  ( 2020-11-17 22:01:37 -0500 )edit

See #q320046 for a related Q&A.

Summarising: do not build from source, unless there is an absolute need.

gvdhoorn gravatar image gvdhoorn  ( 2020-11-18 08:49:41 -0500 )edit

3 Answers

Sort by » oldest newest most voted

answered 2020-11-18 00:59:19 -0500

mgruhler gravatar image

You can check if a specific package is released for a specific distro using the Status Pages. Choose the appropriate distro and architecture. I.e. for Noetic, go for ros_noetic_default. Then you can search if a package is released and which version has been synced to which package repository (testing, main).

To install packages, basically what @praskot said, is: sudo apt install ros-<DISTRO>-<PKG> with all underscores in the package name converted to dashes -.

edit flag offensive delete link more


That's very helpful!! Thank you.

hank880907 gravatar image hank880907  ( 2020-11-18 16:04:46 -0500 )edit

answered 2020-11-18 03:50:13 -0500

updated 2020-11-18 03:52:36 -0500

If you want to build a package from source, you need to follow the following steps -

  • Clone the package to your catkin workspace
  • Install all the requisite dependencies using rosdep (link)
  • Build your package (using catkin build or catkin_make command)
  • Source your catkin workspace (using source ~/catkin_ws/devel/setup.bash)
edit flag offensive delete link more


This is also very helpful as well, thank you!

hank880907 gravatar image hank880907  ( 2020-11-18 16:05:55 -0500 )edit

answered 2020-11-17 18:55:59 -0500

ivanpotm gravatar image

Yeah, I think you can clone a repository and use on your workspace:


maybe someone has a more complete answer, I'm also new in ROS.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-11-17 16:12:15 -0500

Seen: 662 times

Last updated: Nov 18 '20