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

What's the meaning of “There can be no more than one package in each folder”?

asked 2017-04-19 03:04:12 -0600

little_bob gravatar image

According to this tutorial,it says:"There can be no more than one package in each folder. This means no nested packages nor multiple packages sharing the same directory."But next to this, a catkin-work space can have many packages,how can it be explained?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
4

answered 2017-04-19 05:02:44 -0600

updated 2017-04-20 00:16:19 -0600

According to the official doc: http://wiki.ros.org/ROS/Tutorials/Cre...

you can have in your workspace several packages(package means here a ROS project with one or more executable applications)

what you are not allowed to do is: putting package1 and package2 in the same folder image description

edit flag offensive delete link more

Comments

sorry to response so late to you.But actually,package1 and package2 are in the same folderworkspace_folder/src/.Sorry to bother you.

little_bob gravatar image little_bob  ( 2017-04-20 01:24:25 -0600 )edit

see the image and realize that packages inside workspace_folder/src/ are ok ALWAYS, but you CAN NOT put inside package_1 another 2 packages.....

ΦXocę 웃 Пepeúpa ツ gravatar image ΦXocę 웃 Пepeúpa ツ  ( 2017-04-20 07:16:57 -0600 )edit
3

answered 2017-04-19 05:09:37 -0600

In your catkin_workspace you can have multiple packages. What it says that in one of those packages if you want to have more than one package it is basically called a meta packages. However each metapackage can contain be a package itself. You can't make a metapackage of a metapackage.

So inside your catkin_workspace

  • Package 1
  • Package 2

    • Meta Package 1 (cant nest further)
    • Meta Package 2
  • Package 3

edit flag offensive delete link more

Comments

1

Thanks for your answer, I love this Q&A community.Learning ROS is a little hard for me.Hope I can get clear about my questions during learning.

little_bob gravatar image little_bob  ( 2017-04-20 01:28:02 -0600 )edit

No problem, the community is for co-existing and learning from each other.

arunavanag gravatar image arunavanag  ( 2017-04-20 03:14:05 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-04-19 03:04:12 -0600

Seen: 1,411 times

Last updated: Apr 20 '17