Ask Your Question
0

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

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

BeuBeu gravatar image BeuBeu
36 7 8 12

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 delete

2 Answers

Sort by ยป oldest newest most voted
4

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

kwc gravatar image kwc
7572 29 77 126
http://kwc.org/

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 publish link more

Comments

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

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

dornhege gravatar image dornhege flag of Germany
15907 44 150 313

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 publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 135 times

Last updated: Jan 24 '12