How to create streams for ports added through a service

Hi,

I've developped a service plugin to which I added some ports. These ports are
available through the service in the taskbrowser. But I haven't been able to
create a stream for these ports yet.
createStream("ComponentName","ServiceName.PortName",ConnPolicy), nor
createStream("ComponentName.ServiceName","PortName",ConnPolicy) work.

Is this a bug, or is the deployer just not able to handle this use-case.

Ruben

How to create streams for ports added through a service

On Tue, Sep 21, 2010 at 5:07 PM, Ruben Smits
<ruben [dot] smits [..] ...> wrote:
>  Hi,
>
> I've developped a service plugin to which I added some ports. These ports are
> available through the service in the taskbrowser. But I haven't been able to
> create a stream for these ports yet.
> createStream("ComponentName","ServiceName.PortName",ConnPolicy), nor
> createStream("ComponentName.ServiceName","PortName",ConnPolicy) work.
>
> Is this a bug, or is the deployer just not able to handle this use-case.

It's a feature I couldn't yet add to the deployer before the 2.0 release.
It's trivial to add, once we agree on the syntax (ie line 1 or line 2 above).

Peter
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Ruben Smits's picture

How to create streams for ports added through a service

On Tuesday 21 September 2010 17:14:35 Peter Soetens wrote:
> On Tue, Sep 21, 2010 at 5:07 PM, Ruben Smits
>
> <ruben [dot] smits [..] ...> wrote:
> > Hi,
> >
> > I've developped a service plugin to which I added some ports. These ports
> > are available through the service in the taskbrowser. But I haven't been
> > able to create a stream for these ports yet.
> > createStream("ComponentName","ServiceName.PortName",ConnPolicy), nor
> > createStream("ComponentName.ServiceName","PortName",ConnPolicy) work.
> >
> > Is this a bug, or is the deployer just not able to handle this use-case.
>
> It's a feature I couldn't yet add to the deployer before the 2.0 release.
> It's trivial to add, once we agree on the syntax (ie line 1 or line 2
> above).

I don't really care which version is chosen, but if I had to choose I would go
for line 1.

Do you have time to add the feature? Or would it be rather easy for me to add
this feature?

Ruben

How to create streams for ports added through a service

On Tue, Sep 21, 2010 at 05:20:41PM +0200, Ruben Smits wrote:
> On Tuesday 21 September 2010 17:14:35 Peter Soetens wrote:
> > On Tue, Sep 21, 2010 at 5:07 PM, Ruben Smits
> >
> > <ruben [dot] smits [..] ...> wrote:
> > > Hi,
> > >
> > > I've developped a service plugin to which I added some ports. These ports
> > > are available through the service in the taskbrowser. But I haven't been
> > > able to create a stream for these ports yet.
> > > createStream("ComponentName","ServiceName.PortName",ConnPolicy), nor
> > > createStream("ComponentName.ServiceName","PortName",ConnPolicy) work.
> > >
> > > Is this a bug, or is the deployer just not able to handle this use-case.
> >
> > It's a feature I couldn't yet add to the deployer before the 2.0 release.
> > It's trivial to add, once we agree on the syntax (ie line 1 or line 2
> > above).
>
> I don't really care which version is chosen, but if I had to choose I would go
> for line 1.

Why not:

createStream("ComponentName","ServiceName","PortName",ConnPolicy) ?

Also requires least parsing internally.

Markus

How to create streams for ports added through a service

On Tuesday 21 September 2010 17:25:49 Markus Klotzbuecher wrote:
> On Tue, Sep 21, 2010 at 05:20:41PM +0200, Ruben Smits wrote:
> > On Tuesday 21 September 2010 17:14:35 Peter Soetens wrote:
> > > On Tue, Sep 21, 2010 at 5:07 PM, Ruben Smits
> > >
> > > <ruben [dot] smits [..] ...> wrote:
> > > > Hi,
> > > >
> > > > I've developped a service plugin to which I added some ports. These
> > > > ports are available through the service in the taskbrowser. But I
> > > > haven't been able to create a stream for these ports yet.
> > > > createStream("ComponentName","ServiceName.PortName",ConnPolicy), nor
> > > > createStream("ComponentName.ServiceName","PortName",ConnPolicy) work.
> > > >
> > > > Is this a bug, or is the deployer just not able to handle this
> > > > use-case.
> > >
> > > It's a feature I couldn't yet add to the deployer before the 2.0
> > > release. It's trivial to add, once we agree on the syntax (ie line 1
> > > or line 2 above).
> >
> > I don't really care which version is chosen, but if I had to choose I
> > would go for line 1.
>
> Why not:
>
> createStream("ComponentName","ServiceName","PortName",ConnPolicy) ?
>
> Also requires least parsing internally.

That would be then more like:
createServiceStream("ComponentName","ServiceName","PortName",ConnPolicy)

Peter