Hi,
I have a component with a property file which contains the following:
control.
After I run my program, the contents of the property file are changed to:
control.
so for some reason, my property vector is expanded, even though I only _read
in_ the property (I am sure of this). Is this a bug?
I think it is related in some way to the "name" attribute.
When I remove all "name" attributes in the "simple" tags,
the vector is only expanded by one element.
There is still a "name" attribute but only in the "struct" tag. Obviously I
cannot delete that name attribute.
What to do about this? Is there an error in my property file? It used to be
fine in older versions. My "current solution" is to copy back the original
property files each time I restart the program.
Thanks!
Best regards,
Diederik
Property files get messed up in rtt 1.4.99?
On Thursday 21 August 2008 14:23:53 Diederik Verscheure wrote:
> The position Prop feedback gain for velocity resolved 100 100 100 100 100 100
> Hi,
>
> I have a component with a property file which contains the following:
>
>
>
>
>
> control.
>
>
>
>
>
>
>
The name=... property for the 'array' type has been dropped. Each element's
value is now determined by the order in the file.
> >
> The position Prop feedback gain for velocity resolved 100 100 100 100 100 100
> After I run my program, the contents of the property file are changed to:
>
>
>
>
>
> control.
>
>
>
>
>
>
You should delete the six lines above
>100 100 100 100 100 100
>
>
>
>
>
and keep these.
>
> >
> so for some reason, my property vector is expanded, even though I only
> _read in_ the property (I am sure of this). Is this a bug?
Normally, reading should not change the file. so you are calling the wrong
function or it is a bug.
> I think it is related in some way to the "name" attribute.
> When I remove all "name" attributes in the "simple" tags,
> the vector is only expanded by one element.
> There is still a "name" attribute but only in the "struct" tag. Obviously I
> cannot delete that name attribute.
>
> What to do about this? Is there an error in my property file? It used to be
> fine in older versions. My "current solution" is to copy back the original
> property files each time I restart the program.
Try my suggestion with nameless elements.
Peter
Property files get messed up in rtt 1.4.99?
On Friday 22 August 2008 13:41:59 Peter Soetens wrote:
> On Thursday 21 August 2008 14:23:53 Diederik Verscheure wrote:
> > After I run my program, the contents of the property file are changed to:
> > 100 100 100 100 100 100 The position Prop feedback gain for velocity resolved 100 100 100 100 100 100
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> You should delete the six lines above
>
> >
> >
> > control.
> >
> >
> >
> >
> >
> >
>
> and keep these.
>
If I do this, the next time I run the program I get the following
control.
So then the array is expanded with one element (a simple) which does get a
name. It is worth noting that none of this happened in rtt 1.4.
> > so for some reason, my property vector is expanded, even though I only
> > _read in_ the property (I am sure of this). Is this a bug?
>
> Normally, reading should not change the file. so you are calling the wrong
> function or it is a bug.
>
Okay I was unclear here, I meant that there are no assignments happening, the
values and dimensions of the properties are not changed in my code.
But there is a writeProperties call when the component is shut down.
> > I think it is related in some way to the "name" attribute. elements.
> > When I remove all "name" attributes in the "simple" tags,
> > the vector is only expanded by one element.
> > There is still a "name" attribute but only in the "struct" tag. Obviously
> > I cannot delete that name attribute.
>
> Try my suggestion with nameless
I did, see above.
>
> Peter
>
> --
> Peter Soetens -- FMTC --
Thanks,
Best regards,
Diederik
Property files get messed up in rtt 1.4.99?
On Friday 22 August 2008 15:07:12 Diederik Verscheure wrote:
> > > 100 100 100 100 100 100 The position Prop feedback gain for velocity resolved 100 100 100 100 100 100 The position Prop feedback gain for velocity resolved 100 100 100 100 100 100 100
> On Friday 22 August 2008 13:41:59 Peter Soetens wrote:
> > On Thursday 21 August 2008 14:23:53 Diederik Verscheure wrote:
> > > After I run my program, the contents of the property file are changed
> > > to:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > You should delete the six lines above
> >
> > >
> > >
> > > control.
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > and keep these.
>
> If I do this, the next time I run the program I get the following
>
>
>
> control.
>
>
>
>
>
>
>
>
Both cases are definately wrong. Can you submit a bug report and attach the
output of orocos.log with ORO_LOGLEVEL=7 ? Also could you specify with which
functions you are reading and writing the property file ?
Peter