Re: [Orocos-users] back to rttlua again

Matthias Goldhoorn <[email protected]>
Newsgroups gmane.science.robotics.orocos.devel
Organization University of Bremen
Message-ID <[email protected]>
Just debugged into it, it seems that the operation call isActive failed 
itself.

in the OCL lib i added some debug output to the c++ part lua/rtt.cpp in 
function TaskContext_getState

The code get's called and returns normally.
Also in the case section my printf's were written.
So it seems that the results were not padded correctly back to LUA?
Since i'm new to LUA i getting stucked again.



Matthias


On 27.05.2013 16:16, Matthias Goldhoorn wrote:
> Ping? ;)
>
> On 23.05.2013 14:41, Matthias Goldhoorn wrote:
>> ...since weeks i'm back on the road for using rttlua within rock...
>> I'm still at the beginning, and would like so say sorry for some
>> beginner faults/questions...
>>
>> I try to do the examples given in
>> http://www.orocos.org/wiki/orocos/toolchain/LuaCookbook
>> Unfortunately i getting some early error that prevent me to do something
>> more.
>> Already the stat() call failed, and some other things later too (see
>> foot of this email)
>>
>> I'm read the short tutorial too, what i don't understand if it's
>> possible to get throught Corba already running TaskContexts?
>>    From my understanding by calling  getPeer() i get only child taks from
>> myself?!
>>
>> also how registers my task-context on the corba nameserver to get an
>> outer control of myself?
>>
>> Maby some can clarify my mind in these section ;).
>>
>> Greetings,
>> Matthias
>>
>>
>>
>> [14:36:47 goldhoorn dev-limes]$ rttlua-gnulinux
>> Real-time memory: 517904 bytes free of 524288 allocated.
>> 0.004 [ ERROR  ][DeploymentComponent::import] No such package or
>> directory found in search path: ocl. Search path is:
>> 0.004 [ ERROR  ][DeploymentComponent::import] :.
>> 0.004 [ ERROR  ][DeploymentComponent::import] ./ocl
>> 0.004 [ ERROR  ][DeploymentComponent::import] ./gnulinux/ocl
>> OROCOS RTTLua 1.0-beta5 / Lua 5.1.5 (gnulinux)
>>     Use Ctrl-d to quit.
>>    >   rttlib.stat()
>> stdin:1: attempt to index global 'rttlib' (a nil value)
>> stack traceback:
>>        stdin:1: in main chunk
>>        [C]: ?
>>    >   require("rttlib")
>>    >   rttlib.stat()
>> Name                                    State               isActive
>> Period
>> ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:715:
>> Operation.call: 'isActive', failed to build DSB for return value of type
>> 'unknown_t'
>> stack traceback:
>>        [C]: in function 'getOperation'
>>        ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:715: in
>> function 'isActive'
>>        ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:680: in
>> function 'func'
>>        ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:649: in
>> function '__mappeers'
>>        ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:653: in
>> function 'mappeers'
>>        ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:686: in
>> function 'stat'
>>        stdin:1: in main chunk
>>        [C]: ?
>>    >   tc = rtt.getTC()
>>    >   =tc
>> error calling 'print'
>> (...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:433:
>> Operation.call: 'isActive', failed to build DSB for return value of type
>> 'unknown_t')
>>    >   pin = rtt.InputPort("string")
>> ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:737:
>> InputPort.new: unknown type string
>> stack traceback:
>>        [C]: in function 'new'
>>        ...hoorn/dev-limes/install/usr/share/lua/5.1/rttlib.lua:737: in
>> function 'InputPort'
>>        stdin:1: in main chunk
>>        [C]: ?
>>    >
>>
>>
>> *ENV SNIPP*
>>
>> [14:41:23 goldhoorn message_producer]$ printenv | grep LUA
>> LUA_PATH=;;;/home/goldhoorn/dev-limes/install/usr/share/lua/5.1/?.lua
>> LUA_CPATH=;;;/home/goldhoorn/dev-limes/install/usr/share/lua/5.1/?.so
>>
>>
>>
>


-- 
  Dipl.-Inf. Matthias Goldhoorn
  Space and Underwater Robotic

  Universität Bremen
  FB 3 - Mathematik und Informatik
  AG Robotik
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Tel.:     +49 421 178 45-4193
  Zentrale: +49 421 178 45-6550
  Fax:      +49 421 178 45-4150
  E-Mail:   [email protected]

  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.