From: Sebastian R. <seb...@go...> - 2011-01-18 13:05:59
|
Hi, I am trying to run the client in non-threaded mode as I have set up an own thread for it anyway, but then I am facing some problems: pull mode seems to be okay but push does not seem to have ever any valid data read (the robot does move without evaluating sensor reading in Stage 4.0.1). So is there anything I miss in my client code (see below)? What is actually the difference between PUSH and PULL, I mean for practical reasons. When I have devices with different refresh rates, e.g. 0.1 and 0.025 seconds, is there an advantage of PUSH over PULL? Thanks for any clues. Sebastian // Client code: playerClient = new PlayerClient (host, port); playerClient.setNotThreaded(); playerClient.requestDataDeliveryMode(PlayerConstants.PLAYER_DATAMODE_PUSH); [...] void onUpdate() { playerClient.requestData(); playerClient.readAll(); } |