Ask Your Question
2

Unary stack

asked 2011-11-28 08:11:28 -0500

Aditya gravatar image

I have successfully wrapped an external library into ROS framework following instructions in the tutorial. However, I have used a stack and a package to acheive this. I would like to switch to using a unary stack instead. I am not sure about how to create a unary stack. I do not use CMakeLists.txt in my package for wrapping the external library and as such CMakeLists.txt files in stack and package are not a problem. However, what should be done about the Makefile(s) in stack and package in order to create a unary stack from current stack-package. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-11-28 12:10:24 -0500

kwc gravatar image

updated 2012-06-12 05:54:20 -0500

In order to be a unary stack, just take your package and add a stack.xml file as well -- i.e. use the CMakeLists.txt and Makefile from the package. The only thing you need to add is version information to the stack.xml or CMakeLists.txt, which is described in REP 109:

http://ros.org/reps/rep-0109.html#stack-version

This works as of Electric.

edit flag offensive delete link more

Comments

Thanks a lot! In general, is the use of unary stacks recommended?
Aditya gravatar image Aditya  ( 2011-11-28 12:33:55 -0500 )edit
Not necessarily in general. In your case of wrapping a single external library it probably makes sense. That way the package can be released by itself.
joq gravatar image joq  ( 2011-11-28 13:01:57 -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: 2011-11-28 08:11:28 -0500

Seen: 269 times

Last updated: Jun 12 '12