Ask Your Question
0

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

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

BeuBeu gravatar image

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

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

Benoit

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

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

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

Comments

Works perfectly. Thank you BeuBeu ( 2012-01-24 21:09:10 -0500 )edit
0

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

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]

Stats

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

Seen: 214 times

Last updated: Jan 24 '12