INNER CODE UNIT · Python

request

unrealcv/unrealcv · client/python/unrealcv/__init__.py:556

    def request(self, message, timeout=15, response_format=None):
        """
        Send a request to server and wait util get a response from server or timeout.

        Parameters
        ----------
        message : str or list
            UnrealCV command to interact with the game. 
            When message is a list of commands, the commands will be sent in batch.
            More info can be seen from http://docs.unrealcv.org/en/latest/reference/commands.html

        timeout : int
            when timeout is larger than 0, the request will be sent synchronously, and the response will be returned
            when timeout is -1, the request will be sent asynchronously, and no response will be returned
        Returns
        -------
        str
            plain text message from server

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…