Ask Your Question

How to add dynamically a package in the manifest.xml file in python?

asked 2012-01-24 01:14:44 -0600

BeuBeu gravatar image

updated 2014-01-28 17:11:11 -0600

ngrennan gravatar image

Hello, I program in python and javascript. Firstly, my node make a list of all published topics and their types. Then, after a human interaction in JavaScript, it subscribes to a topic and imports the library necessary to define the subscriber. My question is how include this package in the manifest.xml file of this node during its execution.

Waiting for earing from u,

Have fun with ROS


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-01-24 06:38:11 -0600

kwc gravatar image

you can call roslib.load_manifest(package_name) of any package to add it to the sys.path of your node's execution.

edit flag offensive delete link more


Works perfectly. Thank you
BeuBeu gravatar imageBeuBeu ( 2012-01-24 21:09:10 -0600 )edit

answered 2012-01-24 01:21:17 -0600

dornhege gravatar image

I have no idea if that works or is safe at all, but what about modifying manifest.xml from the script and calling load_manifest again? Even if that works, I'd probably only use it in production code if one of the roslib developers signs of on that.

There is some documentation on the manifest page that hints at a cleaner functionality. Maybe you can followup from there.

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

[hide preview]

Question Tools


Asked: 2012-01-24 01:14:44 -0600

Seen: 237 times

Last updated: Jan 24 '12