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

How do I integrate thirdparty Python Dependencies?

asked 2011-07-05 04:23:33 -0600

Bradley Powers gravatar image

updated 2011-07-05 12:43:08 -0600

kwc gravatar image

Hello,

I'd like to make my package have a dependency on a Python package called pymorph. Is there a supported way to require a dependency like this?

Thanks, Bradley Powers

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2011-07-05 04:56:38 -0600

kwc gravatar image

updated 2011-07-05 12:38:27 -0600

You could either wrap the source for pymorph in a ROS package, or you could write a script in the rosdep.yaml that downloads and installs Pymorph. You can see rosdep.yaml examples here: http://www.ros.org/wiki/rosdep/rosdep.yaml#Examples

If you use the rosdep solution, please see the first two tutorials on the rosdep page:

http://www.ros.org/wiki/rosdep

They will walk you through adding a rosdep dependency and declaring support for it in your OS. NOTE: rosdep dependencies should be ones that are easily available via package managers like apt and macports.

edit flag offensive delete link more

Comments

So, I certainly know how to add a regular dependency in the manifest.xml file, but the issue is that pymorph isn't available via apt...
Bradley Powers gravatar image Bradley Powers  ( 2011-07-05 07:03:55 -0600 )edit
You could either wrap the source for pymorph in a ROS package, or you could write a script in the rosdep.yaml that downloads and installs Pymorph. You can see rosdep.yaml examples here: http://www.ros.org/wiki/rosdep/rosdep.yaml#Examples
kwc gravatar image kwc  ( 2011-07-05 07:05:23 -0600 )edit
Can you make this comment an answer so that I can mark it as answered? Thank you!
Bradley Powers gravatar image Bradley Powers  ( 2011-07-05 12:28:55 -0600 )edit
Thank you for updating the answer!
Bradley Powers gravatar image Bradley Powers  ( 2011-07-05 13:02:45 -0600 )edit
1

answered 2011-07-05 04:40:14 -0600

makokal gravatar image

You can add the dependency like this

<rosdep name="pymorph"/>

in the manifest.xml file of the package.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-05 04:23:33 -0600

Seen: 1,545 times

Last updated: Jul 05 '11