Re: Program hangs when entering commands from HMIConsoleInput
Peter Soetens <[email protected]> Tue, 17 Aug 2004 13:25:26 +0200
| Newsgroups | gmane.science.robotics.orocos.user |
|---|---|
| Organization | KU Leuven |
| Message-ID | <[email protected]> |
On Friday 13 August 2004 12:23, rizzi gianpaolo wrote:
> Hello Peter
>
> I get a total system freeze and I am forced to switch off the PC power.
>
> I tried the console_output.display("Hello") it works fine.
>
> Can you suggest me any test usefull to identify the probelm?
Hmm, did you select the component before you issued the command ?
If you do not select it, the componentStartup() method is not called and
invalid data might be in the dataobjects. Maybe this caused a crash, from
which rtai could not recover. You can also run the kernel in a
TaskNonRealtime and see what happens then. Be sure to adapt the thread
periodicities if necessary.
You can select using kernel.selectGenerator("c3gGenerator") and check it with
console_output.displayBool( kernel.usingGenerator("c3gGenerator"))
Furthermore, I would advise you to add the line
if ( this->isSelected() == false )
return false;
to your Move and MoveTo functions, to intercept commands which are not valid
if the component is not active.
Peter
--
------------------------------------------------------------------------
Peter Soetens, Research Assistant http://www.orocos.org
Katholieke Universiteit Leuven
Division Production Engineering, tel. +32 16 322773
Machine Design and Automation fax. +32 16 322987
Celestijnenlaan 300B [email protected]
B-3001 Leuven Belgium http://www.mech.kuleuven.ac.be/pma
------------------------------------------------------------------------