ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Can we update the package.xml from a python script?

asked 2018-05-02 01:29:06 -0600

updated 2018-05-05 11:49:01 -0600

Is there a way to update a package.xml from a python script? I know that you can catkin_pkg to parse a package.xml and retrieve it's contents as a catkin_pkg.Package. I'm wondering if there's a method to go the opposite way - if I have a catkin_pkg.Package and I want to create a new package.xml. Better still update the existing one with my changes from the script.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-02 01:44:35 -0600

gvdhoorn gravatar image

A package manifest is just an xml file, so any Python xml parsing library that is able to serialise back to XML should work.

I'm not aware of any support for writing our package.xml files in catkin_pkg or any of the other libraries.

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

Question Tools

1 follower


Asked: 2018-05-02 01:29:06 -0600

Seen: 292 times

Last updated: May 05 '18