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

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

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

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

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
2

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

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

Question Tools

1 follower

Stats

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

Seen: 385 times

Last updated: May 05 '18