[Trac] [AllemaniACs] #64: Opening interface via RemoteBlackBoard does not work reliably

AllemaniACs trac-notifications at lists.kbsg.rwth-aachen.de
Wed Jul 30 14:00:05 CEST 2008


#64: Opening interface via RemoteBlackBoard does not work reliably
----------------------+-----------------------------------------------------
 Reporter:  tim       |       Owner:  tim           
     Type:  defect    |      Status:  new           
 Priority:  critical  |   Milestone:  Basic Platform
Component:  Fawkes    |    Keywords:  BlackBoard    
----------------------+-----------------------------------------------------
 Sometimes if one tries to open an interface via the !RemoteBlackBoard an
 exception is thrown showing an invalid message ID. This is caused by the
 Fawkes process (holding the BlackBoard) which sends out notifications
 before it sends out the "open successful" message.

 In that case the {{{enqueue_and_wait()}}} in remote.cpp returns too early,
 because it is triggered already by the notification. It can happen now
 that the "interface opened" message has not yet been processed, thus
 leading to the false alarm. A workaround is to place a {{{sleep()}}} just
 after {{{enqueue_and_wait()}}}.

 A realy solution has to be found, probably using a !WaitCondition inside
 the !RemoteBlackBoard to properly synchronize on the "interface opened"
 message.

-- 
Ticket URL: <https://lechuck.informatik.rwth-aachen.de:2342/trac/ticket/64>
AllemaniACs <http://robocup.rwth-aachen.de>
AllemaniACs Trac


More information about the fawkes-trac mailing list