[Bug 715] New: KDL Plugin webpage not mention how to write to vectors, rotations, etc

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=715

Summary: KDL Plugin webpage not mention how to write to
vectors, rotations, etc
Product: KDL
Version: kdl-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Plugin
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

On the web page

http://people.mech.kuleuven.be/~orocos/pub/stable/documentation/rtt/v1.0...

there is no mention of how to write to vector or rotation values, except by
constructor. How do you set v.x or v(0). The "[]" operator doesn't work in the
context of "set v[0] = 1.0" for instance.

Also, the page mentions the double6d type, which appears to be at least
partially commented out of the KDL plugin on trunk.

Lastly, the page should probably mention (as the RTT page does), that
constructions of the form

var vector v = vector(1,2,3)

or

var vector v
v = vector(1,2,3)

are not real-time.

[Bug 715] KDL Plugin webpage not mention how to write to vectors

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=715

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |peter [..] ...

--- Comment #1 from Peter Soetens <peter [..] ...> 2009-10-23 16:28:01 ---
(In reply to comment #0)
> On the web page
>
> http://people.mech.kuleuven.be/~orocos/pub/stable/documentation/rtt/v1.0...
>
> there is no mention of how to write to vector or rotation values, except by
> constructor. How do you set v.x or v(0). The "[]" operator doesn't work in the
> context of "set v[0] = 1.0" for instance.

The only legal way I'm aware of is by using a factory function, or using the
constructor as in:

set v = vector(1.0, v[1], v[2]);

We need to open a new bug (or rename this one) report to fix the case:

set v[0] = 1.0;

>
> Also, the page mentions the double6d type, which appears to be at least
> partially commented out of the KDL plugin on trunk.
>
> Lastly, the page should probably mention (as the RTT page does), that
> constructions of the form
>

> var vector v = vector(1,2,3)
> 

>
> or
>
>
> var vector v
> v = vector(1,2,3)
> 

>
> are not real-time.

As said in bug #714, this is not true. It is always real-time.

Peter

[Bug 715] KDL Plugin webpage not mention how to write to vectors

On Oct 23, 2009, at 10:28 , Peter Soetens wrote:

> https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=715
>
>
> Peter Soetens <peter [..] ...> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |
> peter [..] ...
>
>
>
>
> --- Comment #1 from Peter Soetens <peter [..] ...>
> 2009-10-23 16:28:01 ---
> (In reply to comment #0)
>> On the web page
>>
>> http://people.mech.kuleuven.be/~orocos/pub/stable/documentation/rtt/v1.0...
>>
>> there is no mention of how to write to vector or rotation values,
>> except by
>> constructor. How do you set v.x or v(0). The "[]" operator doesn't
>> work in the
>> context of "set v[0] = 1.0" for instance.
>
> The only legal way I'm aware of is by using a factory function, or
> using the
> constructor as in:
>
> set v = vector(1.0, v[1], v[2]);
>
> We need to open a new bug (or rename this one) report to fix the case:
>
> set v[0] = 1.0;

I'll open a new one.
Stephen