Changes between Version 1 and Version 2 of Python Quagents Client


Ignore:
Timestamp:
Aug 24, 2011 2:42:58 PM (13 years ago)
Author:
xwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python Quagents Client

    v1 v2  
    77=== Command.py ===
    88This file contains the Command class and the individual command classes that inherit from the Command class. Each individual command takes in a different number of parameters and has a unique opcode. Each command must be attached to a client which is done by calling the setExecuter() function. The command can then be executed by calling execute(). [[BR]]
    9 NOTE: All the execute() function does is send the command to the server and then calls recv to wait for a response. I'm not sure if this is the correct way to do this. Executing multiple commands causes the received data to get screwed up at times so I included a time.sleep(0.05) after executing each command. There is also a bug with the responses from the radar command. The response seems to be broken up into two messages. The first message only contains the first line of the response and the second message contains everything else. The way execute() is implemented now only the first message is received.
     9NOTE: Executing multiple commands too fast causes the received data to get screwed up at times so the program sleeps for a brief period after each command.
    1010
    1111=== Example Code ===