Properties from Services not visible in taskbrowser

Hi,

I've got a service which contains properties:

service->addProperty()

If I try to inspect the service interface in the taskbrowser I only see the
sub-services, and attributes, but not the properties. Is this intentional or a
bug?

Ruben

Ruben Smits's picture

Properties from Services not visible in taskbrowser

On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
> Hi,
>
> I've got a service which contains properties:
>
> service->addProperty()
>
> If I try to inspect the service interface in the taskbrowser I only see the
> sub-services, and attributes, but not the properties. Is this intentional
> or a bug?

update, they are also not available in the taskbrowser. I cannot change any of
the values, the taskbrowser tells me that the method is not available in the
service's parent component.

Ruben
---
Dr. Ir. Ruben Smits
Mechatronics & Robotics Research Group
Department of Mechanical Engineering
Katholieke Universiteit Leuven

Properties from Services not visible in taskbrowser

On Thursday 30 September 2010 16:00:25 Ruben Smits wrote:
> On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
> > Hi,
> >
> > I've got a service which contains properties:
> >
> > service->addProperty()
> >
> > If I try to inspect the service interface in the taskbrowser I only see
> > the sub-services, and attributes, but not the properties. Is this
> > intentional or a bug?
>
> update, they are also not available in the taskbrowser. I cannot change any
> of the values, the taskbrowser tells me that the method is not available
> in the service's parent component.

Can you show what you type + the output ?

Peter

Ruben Smits's picture

Properties from Services not visible in taskbrowser

On Thursday 30 September 2010 16:15:14 Peter Soetens wrote:
> On Thursday 30 September 2010 16:00:25 Ruben Smits wrote:
> > On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
> > > Hi,
> > >
> > > I've got a service which contains properties:
> > >
> > > service->addProperty()
> > >
> > > If I try to inspect the service interface in the taskbrowser I only see
> > > the sub-services, and attributes, but not the properties. Is this
> > > intentional or a bug?
> >
> > update, they are also not available in the taskbrowser. I cannot change
> > any of the values, the taskbrowser tells me that the method is not
> > available in the service's parent component.
>
> Can you show what you type + the output ?

creation of the Service interface:

m_service->doc(std::string("Services for youBot motor control board 
")+std::string(m_datap->name));
    m_service->addPort(m_command_port).doc("Motor Command");
    m_service->addPort(m_position_port).doc("Measured position");
    m_service->addPort(m_status_port).doc("Motor Status");
 
    m_service->addProperty("max_current",m_max_current).doc("Maximum current 
(mA)");
    m_service->addProperty("transmission",m_transmission).doc("motor -> joint 
transmission");
    m_service-
>addProperty("nominal_max_speed",m_nominal_max_speed).doc("nominal max speed 
(r/s)");
    m_service->addAttribute("enable",m_enable);
    m_service->addAttribute("control_mode",m_control_mode);
    m_service->addAttribute("reset_encoder",m_reset_encoder);

in the TaskBrowser( the service name is Slave_1002, the parent component is
SoemMaster):
--------
In Task SoemMaster[S]
(type 'ls' for context info) :ls Slave_1002

Listing Service Slave_1002 :

Provided Interface:
Attributes :
bool enable = false
bool control_mode = false
bool reset_encoder = false

Operations : (none)

Services:
cmd ( No description set for this Port. Use .doc() to document
it. )
position ( No description set for this Port. Use .doc() to document
it. )
status ( No description set for this Port. Use .doc() to document
it. )
-----------

As you can see the attributes are listed and available, the properties aren't
If I try to check one of the properties's value I get:

------
In Task SoemMaster[S]
(type 'ls' for context info) :Slave_1002.max_current
Got :Slave_1002.max_current
No method "max_current" registered for the object or task
"DataCall::SoemMaster".
-----

Ruben

> Peter

Properties from Services not visible in taskbrowser

On Thursday 30 September 2010 16:23:35 Ruben Smits wrote:
> On Thursday 30 September 2010 16:15:14 Peter Soetens wrote:
> > On Thursday 30 September 2010 16:00:25 Ruben Smits wrote:
> > > On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
> > > > Hi,
> > > >
> > > > I've got a service which contains properties:
> > > >
> > > > service->addProperty()
> > > >
> > > > If I try to inspect the service interface in the taskbrowser I only
> > > > see the sub-services, and attributes, but not the properties. Is
> > > > this intentional or a bug?
> > >
> > > update, they are also not available in the taskbrowser. I cannot change
> > > any of the values, the taskbrowser tells me that the method is not
> > > available in the service's parent component.
> >
> > Can you show what you type + the output ?
>
> creation of the Service interface:

...

I'm on it. Both taskbrowser and parser were not yet adapted to the fact that
properties and ports could live in services...

Peter

Properties from Services not visible in taskbrowser

This problem also appears on a task context in orocos 1.8 and 1.12

Michael

> -----Message d'origine-----
> De : orocos-users-bounces [..] ... [mailto:orocos-users-
> bounces [..] ...] De la part de Peter Soetens
> Envoyé : 30 septembre 2010 10:57
> À : ruben [dot] smits [..] ...
> Cc : orocos-users [..] ...
> Objet : Re: [Orocos-users] Properties from Services not visible in
> taskbrowser
>
> On Thursday 30 September 2010 16:23:35 Ruben Smits wrote:
> > On Thursday 30 September 2010 16:15:14 Peter Soetens wrote:
> > > On Thursday 30 September 2010 16:00:25 Ruben Smits wrote:
> > > > On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
> > > > > Hi,
> > > > >
> > > > > I've got a service which contains properties:
> > > > >
> > > > > service->addProperty()
> > > > >
> > > > > If I try to inspect the service interface in the taskbrowser I
> only
> > > > > see the sub-services, and attributes, but not the properties.
> Is
> > > > > this intentional or a bug?
> > > >
> > > > update, they are also not available in the taskbrowser. I cannot
> change
> > > > any of the values, the taskbrowser tells me that the method is
> not
> > > > available in the service's parent component.
> > >
> > > Can you show what you type + the output ?
> >
> > creation of the Service interface:
>
> ...
>
> I'm on it. Both taskbrowser and parser were not yet adapted to the fact
> that
> properties and ports could live in services...
>
> Peter
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>
> Ce message entrant est certifié sans virus connu.
> Analyse effectuée par AVG - www.avg.fr
> Version: 9.0.856 / Base de données virale: 271.1.1/3168 - Date:
> 09/30/10 02:34:00

Properties from Services not visible in taskbrowser

On Fri, Oct 1, 2010 at 5:37 PM, Michaël Presseau <presseaum [..] ...> wrote:
> This problem also appears on a task context in orocos 1.8 and 1.12

In 1.x, services don't have any properties[1] nor data ports, so there
it's right not to show them.

Peter

[1] They have properties hidden in the AttributeRepository, but no
part of RTT/OCL takes advantage of that, nor is it documented.

>
> Michael
>
>> -----Message d'origine-----
>> De : orocos-users-bounces [..] ... [mailto:orocos-users-
>> bounces [..] ...] De la part de Peter Soetens
>> Envoyé : 30 septembre 2010 10:57
>> À : ruben [dot] smits [..] ...
>> Cc : orocos-users [..] ...
>> Objet : Re: [Orocos-users] Properties from Services not visible in
>> taskbrowser
>>
>> On Thursday 30 September 2010 16:23:35 Ruben Smits wrote:
>> > On Thursday 30 September 2010 16:15:14 Peter Soetens wrote:
>> > > On Thursday 30 September 2010 16:00:25 Ruben Smits wrote:
>> > > > On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
>> > > > >  Hi,
>> > > > >
>> > > > > I've got a service which contains properties:
>> > > > >
>> > > > > service->addProperty()
>> > > > >
>> > > > > If I try to inspect the service interface in the taskbrowser I
>> only
>> > > > > see the sub-services, and attributes, but not the properties.
>> Is
>> > > > > this intentional or a bug?
>> > > >
>> > > > update, they are also not available in the taskbrowser. I cannot
>> change
>> > > > any of the values, the taskbrowser tells me that the method is
>> not
>> > > > available in the service's parent component.
>> > >
>> > > Can you show what you type + the output ?
>> >
>> > creation of the Service interface:
>>
>> ...
>>
>> I'm on it. Both taskbrowser and parser were not yet adapted to the fact
>> that
>> properties and ports could live in services...
>>
>> Peter
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>>
>> Ce message entrant est certifié sans virus connu.
>> Analyse effectuée par AVG - www.avg.fr
>> Version: 9.0.856 / Base de données virale: 271.1.1/3168 - Date:
>> 09/30/10 02:34:00
>
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Properties from Services not visible in taskbrowser

On Fri, Oct 1, 2010 at 5:37 PM, Michaël Presseau <presseaum [..] ...> wrote:
> This problem also appears on a task context in orocos 1.8 and 1.12

In 1.x, services don't have any properties[1] nor data ports, so there
it's right not to show them.

Peter

[1] They have properties hidden in the AttributeRepository, but no
part of RTT/OCL takes advantage of that, nor is it documented.

>
> Michael
>
>> -----Message d'origine-----
>> De : orocos-users-bounces [..] ... [mailto:orocos-users-
>> bounces [..] ...] De la part de Peter Soetens
>> Envoyé : 30 septembre 2010 10:57
>> À : ruben [dot] smits [..] ...
>> Cc : orocos-users [..] ...
>> Objet : Re: [Orocos-users] Properties from Services not visible in
>> taskbrowser
>>
>> On Thursday 30 September 2010 16:23:35 Ruben Smits wrote:
>> > On Thursday 30 September 2010 16:15:14 Peter Soetens wrote:
>> > > On Thursday 30 September 2010 16:00:25 Ruben Smits wrote:
>> > > > On Thursday 30 September 2010 15:56:21 Ruben Smits wrote:
>> > > > >  Hi,
>> > > > >
>> > > > > I've got a service which contains properties:
>> > > > >
>> > > > > service->addProperty()
>> > > > >
>> > > > > If I try to inspect the service interface in the taskbrowser I
>> only
>> > > > > see the sub-services, and attributes, but not the properties.
>> Is
>> > > > > this intentional or a bug?
>> > > >
>> > > > update, they are also not available in the taskbrowser. I cannot
>> change
>> > > > any of the values, the taskbrowser tells me that the method is
>> not
>> > > > available in the service's parent component.
>> > >
>> > > Can you show what you type + the output ?
>> >
>> > creation of the Service interface:
>>
>> ...
>>
>> I'm on it. Both taskbrowser and parser were not yet adapted to the fact
>> that
>> properties and ports could live in services...
>>
>> Peter
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>>
>> Ce message entrant est certifié sans virus connu.
>> Analyse effectuée par AVG - www.avg.fr
>> Version: 9.0.856 / Base de données virale: 271.1.1/3168 - Date:
>> 09/30/10 02:34:00
>
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users