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

what is dependency?

asked 2015-01-14 00:17:28 -0500

Akali gravatar image

updated 2015-01-14 00:17:52 -0500

  1. when the package create, dependencies can be selected by needs. I don't get why package needs dependencies. Somebody plz explain about it...

  2. Is system dependency same with dependency? I mean System dependency is referred at This page plz help me out..

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-14 02:17:07 -0500

Wolf gravatar image

A package does not "need" dependencies. You can have a package without dependencies. However, if you want to develop something you might want to reuse some code/knowlegde of others. E. g. you might want to use message of service definitions or libraries created by others and maintained in other packages. In this case your package will "depend" on the other package that contains the message/service/library definitions and thereby you have to state those packages as dependencies. Creating packages without dependencies basically means that you have to reinvent every wheel you need for the development by yourself.

System dependencies are like ros-dependencies -> you use libraries created by others to speed up your development. However, in this case the library is not in a ros package but is installed as library on your computer, e. g. zlib for compression or opencv for image processing....

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-01-14 00:17:28 -0500

Seen: 177 times

Last updated: Jan 14 '15