Ask Your Question
2

catkin structure

asked 2014-01-20 01:47:21 -0500

ffontana gravatar image

updated 2014-01-20 02:43:53 -0500

dornhege gravatar image

Hi ros community

Im planing on migrating my packages to catkin. However I have a question regarding the structure of the catkin workspace. Currently I have this setup

/quadrotor [this is my github repro]
  /controllers
    /controller_1
      -CMakeLists.txt
      -manifest.xml
      /src
    /controller_2
      -CMakeLists.txt
      -manifest.xml
      /src
  /experiments
    /user_1
       /what_evernode_1
         -CMakeLists.txt
         -manifest.xml
         /src

So i extensively used folders to structure my ros code. Is there a way i can maintain this hierarchy in catkin? Is it possible to have metapackages of metapackages? then i could easily make for every folder which only holds packages a metapackage.

Thanks a lot for your help

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
2

answered 2014-01-20 04:25:31 -0500

Wolf gravatar image

You can have subfolders in your catkin_ws/src folder which are not valid ros packages without any problem. I think you future catkin workspace structure could be like this:

/catkin_ws
 /src
    -CmakeList.txt [symlink by catkin to toplevel cmake]
    /quadrotor [this is my github repro]
      /controllers
        /controller_1
          -CMakeLists.txt
          -package.xml
          /src
        /controller_2
          -CMakeLists.txt
          -package.xml
          /src
      /experiments
        /user_1
           /what_evernode_1
             -CMakeLists.txt
             -package.xml
             /src
  /devel
  /build
edit flag offensive delete link more
1

answered 2014-01-20 02:42:50 -0500

dornhege gravatar image

updated 2014-01-20 02:43:26 -0500

You should be able to keep this exact code structure with catkin. The only change will be to the workspace layout. The repository with the source code will exist in a dedicated subdirectory to enable out of source builds.

edit flag offensive delete link more
0

answered 2014-01-20 02:51:41 -0500

I think your new hierarchy would be:

new_catkin_ws
   /src
      /quadrotor
      ...
edit flag offensive delete link more
-1

answered 2014-01-20 02:55:08 -0500

ffontana gravatar image

thanks a lot for replying. I was worried every folder needs to be a valid ros packet. I will try and let you know.

flavio

edit flag offensive delete link more

Comments

1

Please do not create answers for discussion or comments. Instead, either edit and append to your original post or use the comment functionality.

dornhege gravatar imagedornhege ( 2014-01-20 04:15:45 -0500 )edit

ok i will thanks for the input

ffontana gravatar imageffontana ( 2014-01-20 04:36:50 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-01-20 01:47:21 -0500

Seen: 1,077 times

Last updated: Jan 20 '14