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

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

Benoit

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

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

Comments

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

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

Question Tools

Stats

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

Seen: 374 times

Last updated: Jan 24 '12