First time here? Check out the FAQ!


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 Jul 5 '11

Bradley Powers gravatar image

updated Jul 5 '11

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
5

answered Jul 5 '11

kwc gravatar image

updated Jul 5 '11

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.

Preview: (hide)

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  ( Jul 5 '11 )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  ( Jul 5 '11 )edit
Can you make this comment an answer so that I can mark it as answered? Thank you!
Bradley Powers gravatar image Bradley Powers  ( Jul 5 '11 )edit
Thank you for updating the answer!
Bradley Powers gravatar image Bradley Powers  ( Jul 5 '11 )edit
1

answered Jul 5 '11

makokal gravatar image

You can add the dependency like this

<rosdep name="pymorph"/>

in the manifest.xml file of the package.

Preview: (hide)

Question Tools

Stats

Asked: Jul 5 '11

Seen: 1,545 times

Last updated: Jul 05 '11