Program hangs when entering commands from HMIConsoleInput
"rizzi gianpaolo" <[email protected]> Fri, 13 Aug 2004 08:04:24 +0200
| Newsgroups | gmane.science.robotics.orocos.user |
|---|---|
| Message-ID | <001801c480fb$62a9fa70$02a0a8c0@piv2ghz> |
I am going on with the application developed at Politecnico of Milano by Consonni and Cappellini.
My current goal is to modify HMIConsoleInput in order to get commands not from keyboard but from Inter Process Communication channels.
I am testing the standard HMIConsoleInput entereing commands from the keyboard.
Everything works fine with start, stop, help, quit commands.
Instead the system hangs when I issue the following command
c3gGenerator.MoveTo(double6d(0.314,0.1256,0.244222,0.366333,0.0,0.628))
I entered the above command after having entered the stop command for the running program.
The same command works fine if it is inserted in program.ops
In the c3gGenerator the following code is present.
CommandFactoryInterface* createCommandFactory(){
TemplateCommandFactory< c3gGenerator<Base> >* ret = newCommandFactory( this );
ret->add( "MoveTo",
command( &c3gGenerator<Base>::MoveTo,
&c3gGenerator<Base>::Position_Reached,
"Muove il robot",
"6 Posizioni","Le 6 posizioni da raggiungere"
) );
ret->add( "Move",
command( &c3gGenerator<Base>::Move,
&c3gGenerator<Base>::Position_Reached,
"Sposta il robot",
"6 Angoli","I 6 angoli di cui spostarsi"
) );
return ret;
}
bool MoveTo(Double6D d6dPosJoin){
// Setta il profilo di velocita' sul nuovo comando
for (int i=0; i<NUM_GIUNTI; i++)
velprof6D[i]->SetProfile(input.posMot[i]/TrasRatio6D[i],d6dPosJoin[i]);
timestamp = hbg->ticksGet();
pos_reached = false;
return true;
}
My program hangs in the function
comcon = _parser.parseCommand(comm, ee);
calle by the function evalCommand of the HMIConsoleInput
I am working with OROCOS 0.14.2 patched for double6d.
Linux 2.4.22
RTAI 24.1.13 with Adeos.
Please can you help me to find were I am wrong?
Thank you in advance.
Gianpaolo Rizzi