Re: [ros-users] Importing external srv in Python

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Ken Conley
Dato:  
Til: ros-users
Emne: Re: [ros-users] Importing external srv in Python
Hi Sacha,

Your package needs to have a <depend package="model"/> in the
manifest.xml that points to the model package. This tutorial here:

http://www.ros.org/wiki/ROS/Tutorials/WritingPublisherSubscriber%28python%29

as well as here:

http://www.ros.org/wiki/ROS/Tutorials/CreatingPackage

Should provide any other details you may need.

Hope this helps,
Ken

On Fri, Jul 9, 2010 at 6:54 AM, Sacha Aury <> wrote:
> Hi all,
>
> I have some trouble to find how to import a .srv file in Python. The
> problem is that my Python code and my srv are not in the same package :
> the srv is in a "model" package and Python is used to build a GUI, so I
> separated it from the model.
>
> Does anyone know how to do that, or even if it is possible ?
>
> Cheers
>
> Sacha
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>