ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

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


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

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

Question Tools


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

Seen: 354 times

Last updated: Jan 24 '12