[Bug 755] New: Parameters are empty when calling program-script function connected to via CORBA

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

Summary: Parameters are empty when calling program-script
function connected to via CORBA
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Scripting
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

I have an exported function in a program script, loaded into a component in
deployer-corba. In a remote C program, I connect to the command corresponding
to that function. When I call that function with parameters, the parameters
come through as 0.

Test case attached (needs OCL for the HMIConsoleOuptut component). Demonstrated
in Snow Leopard and CentOS 5.4.

To reproduce:
shell1> Run deployer-corba with test.xml - see top of test.xml
shell2> ./test -- see top of testBug.cpp

You get 0,0 in the deployer, where you should get 6, 10

[Bug 755] Parameters are empty when calling program-script funct

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

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

What |Removed |Added
----------------------------------------------------------------------------
Resolution| |FIXED
Status|ASSIGNED |RESOLVED

--- Comment #4 from Peter Soetens <peter [..] ...> 2010-02-22 14:25:48 ---
Patch confirmed here. Found a similar bug in the TaskBrowser by the way, which
also forgot to call readArguments when manually dispatching a command object.

Peter

[Bug 755] Parameters are empty when calling program-script funct

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

--- Comment #3 from Peter Soetens <peter [..] ...> 2010-02-22 12:53:54 ---
Created an attachment (id=589)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=589)
Adds the missing call to readArguments

Patch not tested yet, but very likely to solve this issue.

[Bug 755] Parameters are empty when calling program-script funct

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

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

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #2 from Peter Soetens <peter [..] ...> 2010-02-22 12:42:15 ---
(In reply to comment #0)
> I have an exported function in a program script, loaded into a component in
> deployer-corba. In a remote C program, I connect to the command corresponding to
> that function. When I call that function with parameters, the parameters come
> through as 0.

function/command parameters are read in by a call to 'readArguments' in the
CommandInterface. Program scripts do this before they call execute().

This clearly has been omitted somewhere in the execution path of the the
Command<Sig> version. Can't be hard to fix, looking into it...

Peter

>
> Test case attached (needs OCL for the HMIConsoleOuptut component). Demonstrated
> in Snow Leopard and CentOS 5.4.
>
> To reproduce:
> shell1> Run deployer-corba with test.xml - see top of test.xml
> shell2> ./test -- see top of testBug.cpp
>
> You get 0,0 in the deployer, where you should get 6, 10

[Bug 755] Parameters are empty when calling program-script funct

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

--- Comment #1 from S Roderick <kiwi [dot] net [..] ...> 2010-02-09 23:31:51 ---
Created an attachment (id=582)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=582)
Test files